Migration from Old Streamer to New Streamer

Library content :

How yo use new visual streamer :

  1. Copy the library to your public folder so the path will be ( public/library/jsmpeg )

  2. Open index.html on your public folder

  3. Import file jsmpeg.min.js inside head tag

<script src="/library/jsmpeg/jsmpeg.min.js"></script>
  1. And then import file jsmegVisualStreamer.js after body tag

<script src="/library/jsmpeg/jsmpegVisualStreamer.js"></script>
  1. 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

  1. 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