Comments (5)
@hoperyy 如果还有问题可以重新open这个issue,我先关闭了。
from wxinlineplayer.
这个报错看起来是因为存在多个实例,但没有被有效的释放,超过了内核的可使用Memory数量。
你说的init是指WXInlinePlayer.init还是new操作?
为了方便排查,请提供示例代码。
from wxinlineplayer.
对,是多个实例,可以参考抖音短视频的交互那种,代码如下:
new WXInlinePlayer({
url: this.videoList[index].video, // 仅支持flv格式(H264+AAC)
$container: document.getElementById('videoWrapper' + index),
volume: 1.0, // iOS不允许代码调节声量,请注意兼容
muted: false, // iOS和Android均支持代码控制静音
autoplay: false,
loop: true,
});
}
from wxinlineplayer.
对,是多个实例,可以参考抖音短视频的交互那种,代码如下:
new WXInlinePlayer({ url: this.videoList[index].video, // 仅支持flv格式(H264+AAC) $container: document.getElementById('videoWrapper' + index), volume: 1.0, // iOS不允许代码调节声量,请注意兼容 muted: false, // iOS和Android均支持代码控制静音 autoplay: false, loop: true, }); }
浏览器WASM是有内存上限的,如果要做抖音的效果的话,需要保证页面只保留2-3个实例并且需要尽可能保证尽快destroy释放内存。
from wxinlineplayer.
好的,我先保留 2 个实例试验一下,多谢!
from wxinlineplayer.
Related Issues (20)
- 编译失败 HOT 2
- pc端也能用这个WXinlinePlayer吗?最好的延迟情况是几秒呢 HOT 1
- 延迟情况
- 播放相机视频(H.265)
- Safari Browser 自动调用 player.play() 串流无法正常播放 HOT 2
- 播放AAC 8K采样率的时候音频会卡顿 HOT 1
- 电脑长时间长时间锁屏之后,解锁之后画面静止,无法播放
- WXInlinePlayer not working HOT 2
- 在播放720p 码流1024的flv直播视频流报错 memory access out of bounds
- 播放摄像头实时流时只能显示部分画面,这是什么原因呢,急急急 HOT 4
- 自动判断播放的流是h264还是h265 HOT 1
- 同时支持h264与h265 HOT 1
- 直播流分辨率变化卡住
- rtsp裸流 HOT 1
- 如何停止直播拉流
- Boi
- Webcodecs hardware decode support? HOT 2
- How to use github
- 直播延迟问题
- I am albel to do witha our founder s and you don't acams vtdk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxinlineplayer.