Source development of iOS short video MPMoviePlayerController

Article: Bugu Huize / source: Shandong Bugu Bird Network MPMoviePlayerController is used to play video, which is discarded after IOS 9 (Apple recommends AVPlayer after IOS 9, which is relatively complex but flexible). Because APP is often compatible with versions before IOS 9, all mpmovieplayercontrollers are still very important. In another ...

Posted on Tue, 19 Nov 2019 17:04:04 -0500 by steelerman99

Codeforces 1156F Card Bag (probability DP)

Let dp[i][j] indicate that the I card has been selected, the brand number includes the probability of j before j, cnt[i] indicate that there are I cards, inv[i] indicate the inverse element of I under mod, then we can consider the transfer, dp[i][j]=dp[i-1][j-1]*cnt[j]*inv[n-i+1], which only indicates the current state of successful transfer to ...

Posted on Sun, 17 Nov 2019 16:12:48 -0500 by examiz

[Trie] longest XOR value path

The exclusive or maximum value problem is Trie's strong point When you see XOR, you should think about Trie and prefix and Given a tree, all the edges on the tree have weights. The exclusive or length of a path in the tree is defined as the exclusive or sum of the weights of all the edges on the path: ⊕ is an excl ...

Posted on Sun, 17 Nov 2019 16:06:47 -0500 by ankit17_ag

How to access the resources of the component's bundle

The basic component of consists of resources such as pictures, files, etc. This page resource file can be obtained by users, not only those who use components can find these resources, but also the cracked iphone can see these resources. So if it's classified, it's not secure, it needs to be encrypted. So how to find the resourc ...

Posted on Sat, 16 Nov 2019 16:14:27 -0500 by tmharrison

Use of react native Baidu map

Use components: react-native-baidu-map Get Baidu map API Address: http://lbsyun.baidu.com, after the console successfully creates the application, you can see the api of the application key. install yarn add react-native-baidu-map Native part Android configuration react-native link react-native-baidu-map Configure the Android manifest.xml fi ...

Posted on Sat, 16 Nov 2019 15:54:04 -0500 by bubblocity

Wechat domain name anti blocking force jump to browser to open HTML page

This method can realize the jump from wechat built-in browser to other mobile browsers. Now, other methods on the Internet are just one page, which allows visitors to manually click the browser in the upper right corner to open, but this difference can be directly and automatically jump. When Android accesses, it can automatically jump to the ...

Posted on Sat, 16 Nov 2019 13:22:35 -0500 by ludjer

ionic4 pass parameters

ionic4 pass parameters Environmental Science node 10.15.0 ionic 4.12.0 cordova 9.0 # platforms cordova-android: 8.0.0 cordova-ios: 5.0.0 Routing value Mode 1 (single value) Routing definition {path: 'login/:id', loadChildren: './pages/login/login.module#LoginPageModule', data : {name: 'login'}}, Jump constructor(privat ...

Posted on Sat, 16 Nov 2019 09:44:26 -0500 by Some Poster55

ionic4 new project worker

ionic4 new project worker Environmental Science node 10.15.0 ionic 4.12.0 cordova 9.0 # platforms cordova-android: 8.0.0 cordova-ios: 5.0.0 Create project # Entry directory cd /Users/xxx/Documents/Personal/Study/ionic4 ionic start worker tabs Wait for the ionic scaffold to be created successfully After creation: Execute io ...

Posted on Sat, 16 Nov 2019 09:33:22 -0500 by bfinucan

Interact with app

function testApp(url) { var timeout, t = 1000, hasApp = true; //As long as the app is not opened, it is considered not installed, whether it is opened in safari or not setTimeout(function () { if (!hasApp) { if(brickjs.UserAgent.isiPhone){ if(!brickjs.UserAgent.safar ...

Posted on Fri, 15 Nov 2019 15:05:27 -0500 by Tremour

On h5, it is perfectly supported to input the number of digits before and after the decimal point (vue)

Support Pop up the number pad Before decimal point, you can input up to several digits (default 11 digits) After decimal point, you can enter up to several digits (4 digits by default) If the decimal point is set to 0, the decimal point is not allowed to be entered Solve the problem that the page does not recover after the IOS pop-up system ke ...

Posted on Fri, 15 Nov 2019 14:59:00 -0500 by nuttynibbles