clappr / clappr-chromecast-plugin

Chromecast support for clappr
BSD 3-Clause "New" or "Revised" License
38 stars 20 forks source link

ChromeCast Live Streaming #19

Open PreDeToR opened 6 years ago

PreDeToR commented 6 years ago

Hi Guys

I have a quick question, I have live streams running on my platform that sometimes run for 12-15 hours and I allow you to go all the way back to the start of the stream if you want.

On clappr this works without a issue but opening the stream on chromecast it starts at the start of the livestream instead of going to the current position.

Have you got any ideas/suggestions on how to change this or get it to start at the current time?

Regards Danie

kslimani commented 6 years ago

@PreDeToR i think that Chromecast default receiver application does not handle hls live source with DVR capabilities. By default, the Clappr Chromecast plugin use 9DFB77C0 receiver application which is a Styled Media Receiver application.

To handle DVR capabilities, i think it is required to create a Custom Receiver application. (and probably also modify the plugin to handle/dispatch DVR events to mediacontrols component).

PreDeToR commented 6 years ago

@kslimani thank you for the information, I will look into it and see what I can find.

paralichko commented 6 years ago

I have fight with this. I think that is somehow stream dependent. Something about time metadata in the stream. With my stream it is behaving in Your way, but on the same site/plugin and with differen stream it is working like it should... If you have programming knowlage i can give you test stream...

PreDeToR commented 6 years ago

Hi @paralichko

if your test stream works correctly and is hls, I would love to have a look at it and see if I can see any differences, would love to get mine working correctly

paralichko commented 6 years ago

Give me Your skype contact or find me in skype - paralichko

PreDeToR commented 6 years ago

@kslimani & @towerz with the latest stable version, the player seems to work much better.

I have a theory as to why the live stream (with DVR) is not working correctly.

When I load up the live stream in clappr its all working fine, when I switch over to casting, the seek bar timers all go away, and from what I can see this forces the currenttime to always be 0 when we send notifications to chromecast for seek changes.

Any ideas on where to look to fix this?

PreDeToR commented 6 years ago

Hi Guys @kslimani & @towerz any ideas on my question above?

kslimani commented 6 years ago

@PreDeToR as mentionned above, from my knowledge, handle live stream with DVR in Chromecast, require to create a Custom receiver application (and maybe also modify the playback used by plugin to reproduce the behaviours of HLSJS Clappr playback for live+dvr).

paralichko commented 6 years ago

@kslimani - please check www.elemental.tv - they are using "normal" receiver and it's working. I know this, because if i get their stream, it's working also on my test page...

paralichko commented 6 years ago

@summitsingh And which from this initialisation is fixing the problem ?