type | string | flv | Indicates media type,'flv' or'mp4' |
isLive? | boolean | true | Indicates whether the data source is alive stream |
hasAudio? | boolean | true | Indicates whether the stream has audio track |
hasVideo? | boolean | true | Indicates whether the stream has video track |
url? | string | url | Indicates media URL, can be starts with'https(s)' or'ws(s)' (WebSocket) |
enableStashBuffer? | boolean | true | Enable IO stash buffer. Set to false if you need realtime (minimal latency) for live stream |
stashInitialSize? | number | 128 (KB) | Indicates IO stash buffer initial size. Default is384KB . Indicate a suitable size can improve video load/seek time. |
height? | px or % | 100% | |
width? | px or % | 100% | |
autoPlay? | boolean | false | |
controls? | boolean | true | |
controlsList? | string | undefied | |
loop? | boolean | false | |
muted? | boolean | false | Indicates audio output when init the video |
handleError? | function | (err)=>{console.log(err)} | Handle errors, error type is enum |
enableWarning? | boolean | false | Enable Warnings in Console |
enableError? | boolean | false | Enable errors in Console |