Lenix

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 »

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 »

After the website is upgraded to https, the http error is reported: This request has been blocked; the content must be served over HTTPS

HTTPS is HTTP over Secure Socket Layer, an HTTP channel aimed at security, so http requests are not allowed on pages hosted by HTTPS. Once it occurs, it will prompt or report an error: Mixed Content: The page at ‘https://www.taobao.com/’ was loaded over HTTPS, but requested an insecure image ‘https://ift.tt/rWOwyG3’. This content should also be

After the website is upgraded to https, the http error is reported: This request has been blocked; the content must be served over HTTPS Read More »

How does uni-app embed an external link in the page (take Baidu as an example) The implementation of in-app and out-of-app jumps on uni-app pages

<template> <view> <web-view :webview-styles=”webviewStyles” src=”http://www.baidu.com/”></web-view> </view> </template> <script> export default { data() { return { webviewStyles: { progress: { color: ‘#FF3333’ } } } } } </script> <style> </style> … This article is reprinted from https://blog.p2hp.com/archives/8485 This site is for inclusion only, and the copyright belongs to the original author.

How does uni-app embed an external link in the page (take Baidu as an example) The implementation of in-app and out-of-app jumps on uni-app pages Read More »

The problem that the supervisor adds a new configuration does not take effect, the supervisor prompts: xxx: ERROR (no such process)

After adding a new configuration file xxx.conf, use supervisorctl start xxx to prompt “xxx: ERROR (no such process)”. Using supervisorctl start all does not work either. solve: After adding a configuration file, use supervisorctl reread supervisorctl reload (not running this step will cause it to fail to start) The supervisorctl update command will automatically load

The problem that the supervisor adds a new configuration does not take effect, the supervisor prompts: xxx: ERROR (no such process) Read More »

Audio noise reduction, echo cancellation, automatic gain code example

<!DOCTYPE html> <html lang=”zh-CN”> <head> <meta charset=”utf-8″> <script src=”https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js”></script> <style> html, body{ height: 100%; width: 100%; } #video{ height: 300px; width: 300px; } </style> <script> $(() => { var constraints = { audio: { echoCancellationType: ‘system’,//browser|system echoCancellation: true, noiseSuppression: true, … This article is reprinted from https://blog.p2hp.com/archives/8475 This site is for inclusion only, and the

Audio noise reduction, echo cancellation, automatic gain code example Read More »

nginx streaming media server, nginx tcp http load balancing, nginx stream forwarding, nginx push stream, nginx rtmp

Used https://ift.tt/dDeF72m user www-data; worker_processes auto; pid /run/nginx.pid; #worker_cpu_affinity auto; #1.9.10 and later include /etc/nginx/modules-enabled/*.conf; load_module modules/ngx_http_flv_live_module.so; worker_rlimit_nofile 200000; events { worker_connections 10240; #multi_accept on; } http { ## # Basic Settings ## sendfile on; tcp_nopush on; types_hash_max_size 2048; # server_tokens … This article is reprinted from https://blog.p2hp.com/archives/8467 This site is for inclusion only, and

nginx streaming media server, nginx tcp http load balancing, nginx stream forwarding, nginx push stream, nginx rtmp Read More »