Video.js and playlist

#1

Hello.

I have a video player on my view page (from npm install video.js), and i want to play video from playlist. Where i can embed this code bellow?:

    var player = videojs('video');
    
    player.playlist([{
      sources: [{
        src: 'http://media.w3.org/2010/05/sintel/trailer.mp4',
        type: 'video/mp4'
      }],
      poster: 'http://media.w3.org/2010/05/sintel/poster.png'
    }, {
      sources: [{
        src: 'http://media.w3.org/2010/05/bunny/trailer.mp4',
        type: 'video/mp4'
      }],
      poster: 'http://media.w3.org/2010/05/bunny/poster.png'
    }, {
      sources: [{
        src: 'http://vjs.zencdn.net/v/oceans.mp4',
        type: 'video/mp4'
      }],
      poster: 'http://www.videojs.com/img/poster.jpg'
    }, {
      sources: [{
        src: 'http://media.w3.org/2010/05/bunny/movie.mp4',
        type: 'video/mp4'
      }],
      poster: 'http://media.w3.org/2010/05/bunny/poster.png'
    }, {
      sources: [{
        src: 'http://media.w3.org/2010/05/video/movie_300.mp4',
        type: 'video/mp4'
      }],
      poster: 'http://media.w3.org/2010/05/video/poster.png'
    }]);

This is my player:

  <video id="video" class="video-js vjs-default-skin" width="100%" height="80%" controls preload="auto" poster='http://www.gstatic.com/webp/gallery/2.jpg'
    data-setup='{}'>
    <source src="http://vjs.zencdn.net/v/oceans.mp4" type='video/mp4' />
    <source src="http://vjs.zencdn.net/v/oceans.webm" type='video/webm' />
  </video>
#2

Did you resolve your issue? Do you know does video.js also support rtsp/mp4 stream?

#3

Yes please can someone please guide us !! i really want to implement this!!

#4

Did you find any solution ???

#5

Who did implement this?

#6

Use videogular 2, please

#7

Luczynski
I want to make videojs in my app but my confused
Do you have a sample of your code?
I would like to see a full sample code.