Lenix

Wechat applet video playback, when wechat enters the background and then returns to the foreground, the live video stops playing and the problem is solved.

Add onpause=”this.play();” to the video tag. as follows <video playsinline autoplay controls style=”width: 1600px;height: 920px;” onpause=”this.play();” id=”videoid”></video> … This article is reprinted from https://blog.p2hp.com/archives/8540 This site is for inclusion only, and the copyright belongs to the original author.

ios WeChat comes with a browser, WeChat applet webrtc or video can not be automatically played (black screen) solution

Because the iOS version of WeChat browser just supports webrtc, there is only one news on March 10th that with the update of ios, the WeChat browser using wkwebview also supports webrtc, and there is no other useful information. Later, I saw a website that uses webrtc to support the ios version of WeChat browser, …

ios WeChat comes with a browser, WeChat applet webrtc or video can not be automatically played (black screen) solution Read More »

Enter text by speech on web pages – Introduction to HTML5 Web Speech API Speech Recognition

         I mentioned the Web Speech API a long time ago , and now Chrome ‘s just released version 25 has support for this API for both desktop and Android , which is definitely a landmark event for web developers because we can Using speech recognition technology natively directly in Web Apps …

Enter text by speech on web pages – Introduction to HTML5 Web Speech API Speech Recognition Read More »

uniapp develops an app, the status bar problem of the mobile phone blocks the problem, the uni app Liu Haiping adapts

Question: When using uniapp to develop a mobile app, because the application created by HBuildX is an immersive style by default, if the built-in navigation bar is removed, the page will go directly to the status bar at the top of the mobile phone. The solution is as follows: Method 1: Use the solution provided …

uniapp develops an app, the status bar problem of the mobile phone blocks the problem, the uni app Liu Haiping adapts Read More »

uni app webview zoom page implementation

Add the following code in OnReady var wv; // #ifdef APP-PLUS console.log(‘App plus2’) var currentWebview = this.$mp.page.$getAppWebview() //Get the webview object of the current page setTimeout(function() { wv = currentWebview.children()[0] wv.setStyle({scalable:true}) }, 1000); //If it is a page initialization call, you need to delay it // #endif … This article is reprinted from https://blog.p2hp.com/archives/8520 This …

uni app webview zoom page implementation Read More »

Set the title display of the uni app webview

webview的update-title设为false < template > < view > < web-view :webview-styles = ” webviewStyles ” update-title=”false” src = ” https://uniapp.dcloud.io/static/web-view.html ” > </ web-view > </ view > </ template > Add a line to “globalStyle” in pages.json: “navigationStyle”: “custom”, You can also add in onReady setTimeout(()=>{ uni.setNavigationBarTitle({ title: ‘The title to be set in the …

Set the title display of the uni app webview Read More »

Ubuntu offline installation package

1. Application scenarios a. When we need to install the same software on multiple computers, and the software is very large, it takes a long time to download b. Ubuntu that needs to install software cannot access the Internet 2. Production of offline installation package 2.1. Download the deb package required by the XXXX software …

Ubuntu offline installation package Read More »

Access camera and microphone in cross-origin iframe using getUserMedia and feature policy

If you try to access the camera and microphone using a cross-origin iframe with getUserMedia() on recent versions of Chrome, it will fail by default. We’ve encountered this many times because users of the Pipe audio and video recording platform tried to embed Pipe into Wix sites or Google sites that used iframes to embed …

Access camera and microphone in cross-origin iframe using getUserMedia and feature policy Read More »