IVWEB Play WASM Series-WEBGL YUV Rendering Image Practice
Recently the team built a WEB player with WASM + FFmpeg.We decode videos using FFmpeg by writing C and communicate with JavaScript on browsers by compiling C to WASM.The default FFmpeg decoded data is yuv, and canvas only supports rendering rgb, so there are two ways to handle this yuv. The first one uses FFmpeg exposure to convert YUV directl ...
Added by ben14 on Wed, 04 Dec 2019 18:27:18 +0200
59 tool classes commonly used in the front end [continuous update]
Preface
Sometimes the front-end development will process some data returned from the background, or do some processing according to the data judgment; at this time, it is very necessary to encapsulate some common tool classes; This paper encapsulates 59 methods according to some commonly used tool classes, of course, there are many less used ...
Added by racerxfactor on Tue, 03 Dec 2019 23:07:38 +0200
Solve the problem that ClipboardJS fails to copy on iphone through textarea tag
Some time ago, I did the function of wechat custom sharing. There was a problem that the invitation code of the shared page failed to be copied on ios mobile phone, but there was no problem on PC and Android. Baidu for a moment, the basic solution is: ios does not simply support on, for the click elements to add empty click event: onclick = &qu ...
Added by nickminute on Mon, 02 Dec 2019 21:12:06 +0200
Svn installation and Windows environment SVN migration to Linux
SVN project backup
Use the svnadmin tool to export locally.
cd H:\Repositories
svnadmin dump H:\Repositories\test > F:\svn_dump\test.dump
svnadmin dump H:\Repositories\android > F:\svn_dump\android.dump
svnadmin dump H:\Repositories\BackEnd > F:\svn_dump\BackEnd.dump
svnadmin dump H:\Repositories\DevOps> F:\svn_dump\DevOps.dump
sv ...
Added by mndwn on Mon, 02 Dec 2019 07:20:25 +0200
iOS basic algorithm
using namespace std;
template <typename T> //Template function (generic)
/*
Selection sort
**/
void selectionSort ( T arr[] , int n ){
// 10, 39, 8, 7, 6, 5, 4, 3, 2, 1
//Take out the minimum value first and then exchange
for ( int i = 0 ; i < n ; i ++ ){
int minIndex = i;
f ...
Added by davespring on Sun, 01 Dec 2019 05:48:07 +0200
Shake sharing and authorization
Preparation
Register for appkeyIntegrated sharesdk (download address)Xcode configuration: urlScheme is the registered appkey, white list: douyinsharesdk, douyinopensdkBusiness code
Initialization
import <ShareSDK/ShareSDK.h>
[ShareSDK registPlatforms:^(SSDKRegister *platformsRegister) {
//Jitter
[platformsRegister setupDouyinByAppKey:@"ap ...
Added by dennyx on Sat, 30 Nov 2019 11:21:00 +0200
Advanced iOS Core Animation Techniques-5
9. Layer Time
Layer Time
The biggest difference between time and space is that time can't be reused--Forster Merrick
In the previous two chapters, we explored a variety of layer animations that can be implemented with CAAnimation and its subclasses.Animation takes place over a period of time, so timing is critical to the whole concept.In thi ...
Added by TGWSE_GY on Thu, 28 Nov 2019 08:46:23 +0200
UIPickerView basic use
UIPickerView is a very common UI control, which is necessary for various shopping platforms to select addresses. Let's talk about the specific use
First, UIPickerView is created. Like most controls, it allocates memory and sets the location size.
It is important to set up the agent and data source and obey the agent and data source protocol
&l ...
Added by james_cwy on Mon, 18 Nov 2019 22:36:53 +0200
Comparison of installation steps of each version of react navigation
1.x and 2.x versions
yarn add react-navigation
# or with npm
# npm install --save react-navigation
3.x version
yarn add react-navigation
# or with npm
# npm install react-navigation
yarn add react-native-gesture-handler react-native-reanimated
# or with npm
# npm install react-native-gesture-handler react-native-reanimated
1. If your version ...
Added by BuzzLY on Mon, 18 Nov 2019 08:49:22 +0200
Flutter hybrid development: a detailed guide to communication between Android and flutter
This article starts with WeChat public's "Android development tour". Welcome to pay more attention to get more dry goods.
Communication scenario
When we do mixed development of Flutter, we usually need to communicate between Flutter and Native For example, Dart calls Native's album to select pictures, and Native actively transmits pow ...
Added by intech on Fri, 15 Nov 2019 10:26:28 +0200