Migration from Old Streamer to New Streamer
Library content :
How yo use new visual streamer :
Get the new library from this link : https://github.com/nodefluxio/docker-stream-quickstart/tree/main/client/public/library/jsmpeg
Copy the library to your public folder so the path will be ( public/library/jsmpeg )
Open index.html on your public folder
Import file jsmpeg.min.js inside head tag
<script src="/library/jsmpeg/jsmpeg.min.js"></script>
And then import file jsmegVisualStreamer.js after body tag
<script src="/library/jsmpeg/jsmpegVisualStreamer.js"></script>
After that you can use the component, component example :
<div
class="nodeflux-streamer"
data-url="ws://127.0.0.1:4004/mpeg1/0/de2ea3d628ca1034/NFV4-FR?preset=720p"
style="width: 569px; height: 320px">
</div>
Notes :
Class nodeflux-stremer is required
For MPEG1 we are using websocket protocol instead http protocol
And then for starting visualisation you can use this command :
showVisualisation();
Library API :
showVisualisation
This function will be use for starting visualisation component
stopVisualisation
This function will be use for stop all visualisation component
Last updated
Was this helpful?