videojs-preroll icon indicating copy to clipboard operation
videojs-preroll copied to clipboard

Not working with RTMP feed

Open armelcharge opened this issue 11 years ago • 14 comments
trafficstars

Dear users,

I'm not able to make it work with a rtmp feed ( live feed from wowza ).

Any idea why ?

No problem with simple mp4 or any others sources.

Thanks a lot

Armel

armelcharge avatar Nov 07 '14 17:11 armelcharge

I don't think video.js even supports live feeds (yet), which is probably why it doesn't trigger the events correctly.

dirkjanm avatar Nov 08 '14 09:11 dirkjanm

Hummmmm !!!

Good question ! videojs player can handle rtmp live feed ( http://blog.videojs.com/post/60471080014/video-js-4-2-0-released-rtmp-css-designer-and )

But don’t know what kind of part of the code can block support playroll over rtmp feed ! Perhaps flash..

Thanks a lot

Armel Le 8 novembre 2014 à 10:21:52, Dirk-jan ([email protected]) a écrit:

I don't think video.js even supports live feeds (yet), which is probably why it doesn't trigger the events correctly.

— Reply to this email directly or view it on GitHub.

armelcharge avatar Nov 08 '14 09:11 armelcharge

The blog says that only on-demand (VOD) is supported, while you mentioned you are using live feeds. I've tried video.js with some wowza live feeds but it didnt seem to work that well and it crashed pretty quickly.

dirkjanm avatar Nov 08 '14 09:11 dirkjanm

Wohh no,

it’s working perfect with livestream from wowza platform. I’m using videojs + wowza rtmp live streams for months now without any mistakes.

Le 8 novembre 2014 à 10:29:38, Dirk-jan ([email protected]) a écrit:

The blog says that only on-demdan (VOD) is supported, while you mentioned you are using live feeds. I've tried video.js with some wowza live feeds but it didnt seem to work that well and it crashed pretty quickly.

— Reply to this email directly or view it on GitHub.

armelcharge avatar Nov 08 '14 09:11 armelcharge

Interesting. Do you have an example/demo with both a live feed and the preroll plugin?

dirkjanm avatar Nov 08 '14 09:11 dirkjanm

Let me few minutes and I send it to you !

Le 8 novembre 2014 à 10:41:21, Dirk-jan ([email protected]) a écrit:

Interesting. Do you have an example/demo with both a live feed and the preroll plugin?

— Reply to this email directly or view it on GitHub.

armelcharge avatar Nov 08 '14 09:11 armelcharge

Hop !

( in private )

With different cases !

armelcharge avatar Nov 08 '14 09:11 armelcharge

Thanks for that. I cant really say I agree with you that live is working, as soon as I hit the pause button the player crashes, same for the progress bar. Video.js throws several errors with the minified version when playing a preroll (my guess is that it is about communicating events with the flash component). With the unminified version I had around here it works for some reason, but after the preroll the live video is set to have the length of the preroll video and the progress bar displays that same length. Overall it just seems that video.js cant properly deal with streams of infinite length yet, and any attempts to make the prerolls work properly with them will have to wait till live streams are officially supported by Video.js. Also the preroll plugin depends on the videojs-contrib-ads plugin, which would most likely also need to get fixed to support this (as it is trying to seek in the video after the ad is done, which of course doesn't work in live streams).

dirkjanm avatar Nov 08 '14 10:11 dirkjanm

0_o !

I've never push the pause button !! Haha .. OUps.

Thanks for your help. I understand what you explain.

See you in few months, perhaps videojs-contrib-ads will try to hand rtmp live feed !

Have a nice day

Armel

armelcharge avatar Nov 08 '14 10:11 armelcharge

hello.please email to me an example too. Thanks you all.

toptanopt avatar Dec 23 '14 03:12 toptanopt

@armelcharge, I am also really interested in your example. Did you find a fix for the play/pause button ?

Merci

cadesalaberry avatar Feb 16 '15 19:02 cadesalaberry

i found a way to make get the live streams working better on videojs. you can see the update here: https://github.com/billyrennekamp/videojs-contrib-ads/tree/rtmp-compatible But I still don't know how to get proroll to work with live streams, anyone have an update?

okwme avatar Apr 01 '15 15:04 okwme

ok i found another work around. after the player initialized you can check the player to see whether it is a special tech or not. if it is a special tech (like rtmp, hls or mpeg-dash depending on what plugins you are using) you can trigger the ads ready event manually when the player plays. here is what i have:

if(player.currentType_.indexOf("pplication") > -1 || player.techName == "Flash"){
  player.one("play", function(){
    player.trigger("adsready");
  })
}

this checked the current file type to see if it is using contains the word application which is part of hls (application/x-mpegURL) and mpeg dash (application/dash+xml), you can also check the player for what the techName is (which is Flash in the case of rtmp)

okwme avatar Apr 01 '15 15:04 okwme

For anyone in the future, I believe this works now with the latest version of video.js (7.8.4+).

<source src="example.m3u" type="application/x-mpegURL" />

liquidvisual avatar Oct 26 '20 07:10 liquidvisual