oddengine / odd.js Goto Github PK
View Code? Open in Web Editor NEWThis is not only an HTML5 FLV Player, but also a WebRTC, IM SDK, and FC/NES emulator.
Home Page: https://oddengine.com
License: BSD 3-Clause "New" or "Revised" License
This is not only an HTML5 FLV Player, but also a WebRTC, IM SDK, and FC/NES emulator.
Home Page: https://oddengine.com
License: BSD 3-Clause "New" or "Revised" License
谷歌浏览器76,8路视频回直播流,播放大约2个小时,视频就断了,buffer is full.请问这个怎么解决
我服务器那边在不断采集摄像机的视频,并且将它的视频封装成fmp4的segment数据,通过websocket定时扔上来(实时数据),请问palyease有直接塞fmp4数据的接口吗
executing compile.sh shows
cat: ./release/odd.player.min.js: No such file or directory
怎么设置HTTP 头中的Origin字段?
"websocket-loader" initialized.
playease.js:313 media source open
playease.js:313 onMetaData: {"width":1280,"height":960,"framerate":25,"videocodecid":7}
playease.js:313 Mime type: audio/mp4; codecs="undefined".
playease.js:313 [ERROR] Mime type is not surpported: audio/mp4; codecs="undefined".
playease.js:313 Mime type: video/mp4; codecs="avc1.420020".
playease.js:313 [ERROR] MediaSource is closed while appending init segment.
playease.js:313 media source close
playease.js:313 Loader error: 1006
I'm trying your video player.
I noticed that after a few minutes the streaming accumulates a delay of a few seconds due to my connection, that is correct, but the behavior I would like is that, in case of problems, streaming should align with the current vision without buffering.
How can I have this behavior?
thanks in advance for your reply and for your support.
如標題
Hello,
I've been experiencing this player for WS:// purposes, and I've not been disappointed in it for this use ;)
But there are a few let downs that I'd like to pass to you :
1 - Following the docs, I've tried to add mulitple sources and even though it loads, it doesn't seem to work.. Basically, I've created 5 ws:// streams, added them to the playlist and changing the label to be sure of the ones I pick, and the first works perfectly, the other doesn't load and an error message appear.
2 - The other types of streams : I've been trying to play http://.../.../stream.flv, and it shows me an error message, same with a rtmp://..../.../stream, following the docs, and it doesn't work too. The m3u8 and dash are showing the same message.. so I'm quite disappointed from this point of view but maybe I did it wrong ?
On the other side :
1 - The player is easy and ready to use, it works well with ONE ws:// file and can be modified, that I appreciate !
2 - I've found myself with a full width/height player by changing some of the css, and the player goes itself fullscreen when first played, and it's responsive to the window height and width, I like that too !
Here were my thoughts about this player, I really like it, I just feel sad that all the functionalities don't seem to work :/
Thanks for your hard work !
Here is the bit of code I've been using as an example :
sources: [{
file: 'http://127.0.0.1/live/sample.flv',
type: 'flv',
label: 'HTTP-FLV'
}, {
file: 'ws://127.0.0.1/live/sample.flv',
type: 'flv',
label: 'WS-FLV'
}, {
file: 'ws://127.0.0.1/live/sample',
type: 'rtmpmate',
label: 'WS-RTMPMATE'
}, {
file: 'ws://127.0.0.1/live/sample',
type: 'wss',
label: 'WS-fMP4'
}, {
file: 'http://127.0.0.1/live/sample/manifest.mpd',
type: 'dash',
label: 'MPEG-DASH'
}, {
file: 'rtmp://127.0.0.1/live/sample',
type: 'flash',
label: 'RTMP-STREAM'
}, {
file: 'http://127.0.0.1/live/sample/index.m3u8',
type: 'def'
}],*/
mode: 'live',
controls: true,
autoplay: false,
loader: {
name: 'xhr-chunked-loader',
chunkSize: 2 * 1024 * 1024,
mode: 'cors'
},
bulletscreen: {
enable: true,
visible: true
},
fullpage: {
visible: false
},
render: {
name: 'flv',
bufferLength: 4 * 1024 * 1024,
swf: '../swf/playease.swf'
}
Basically, I've just set my rtmp/ws/http.. like in this example, and tried leaving xhr-chunked-loader and flv, and tried deleting it too .. but either way, only the first source of the playlist and WS:// only, seem to work :/
(I'm a rookie, just starting dev.. don't mind my comment ^^)
v1.2.xx将不再更新新功能,可以在该分支下获取源码。
现即将开始重构推出v2.0,除了底层优化外,将:
另外,收到的需求有:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.