DP2SceneGraphWizard icon indicating copy to clipboard operation
DP2SceneGraphWizard copied to clipboard

liveFeed videos don't work

Open mrcalbert opened this issue 1 year ago • 37 comments

After adding a liveFeed video and trying to play, it will crash Roku completely and require a reboot

For me it fails with this

Warning occurred while setting a field of an RoSGNode -- Type mismatch occurred when setting the "focusedChild" field of a "ContentNode" node pkg:/components/UILogic/VideoPlayer.brs(171)

mrcalbert avatar May 08 '24 20:05 mrcalbert

Please provide a valid feed URL that contains a live feed for testing.

Please use the bug report template to report issues.

rrirower avatar May 08 '24 20:05 rrirower

I can't help you without the info I've asked for.

rrirower avatar May 11 '24 11:05 rrirower

Apologies! I'm rather fresh to Github and didn't see the notification that you responded last week. I believe this is the template:

Describe the bug Error loading videos categorized as liveFeeds. I've tried livestreams from my company and test feeds online. I'm currently having difficulties finding a non branded free test stream, however this sample one breaks as well

https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8

Note that the same video URLS entered as an episode in a series works fine.

To Reproduce

  1. Create a "liveFeed" in the Channel Feed Manager with the required info. Enter a HLS stream
  2. Once you upload the json and see it on your channel, try to watch this live video
  3. Video player launches and you see the "loading circle" for .5 seconds and Roku device crashes

Expected behavior Hoping to play a live video or an HLS video under the liveFeed. The same URL works as an episode in a series however that's a bit nested to go into for a quick live stream video.

Screenshots N/A

Version number: Roku Ultra Version: 13.0.0 build 24056-C2 Just updated today however had issue before on previous version

Additional context Brightscript Debugger through Visual Studio Code seems to report the error below:

================================================================= Warning occurred while setting a field of an RoSGNode -- Type mismatch occurred when setting the "change" field of a "ContentNode" node pkg:/components/UILogic/VideoPlayer.brs(171)

================================================================= Warning occurred while setting a field of an RoSGNode -- Type mismatch occurred when setting the "focusedChild" field of a "ContentNode" node pkg:/components/UILogic/VideoPlayer.brs(171)

Thank you!

mrcalbert avatar May 15 '24 20:05 mrcalbert

Thanks for your response. However, as stated above...

Please provide a valid feed URL that contains a live feed for testing.

I need the URL to your feed file, not the URL to the live stream. The URL to the live stream would be contained in your feed file.

rrirower avatar May 16 '24 18:05 rrirower

Please provide the requested info. This issue will be closed if you do not reply.

rrirower avatar May 27 '24 13:05 rrirower

Hi, I have the same problem with my live channel. This is my test feed: http://10674-5.s.cdn13.com/Mihan_live_test.json

samadtehrani avatar May 27 '24 15:05 samadtehrani

@samadtehrani thanks for your feedback. I will look into this now that I have a test case.

rrirower avatar May 27 '24 16:05 rrirower

@samadtehrani Is the m3u8 url in your feed file valid? I tried to play it in a web browser and it threw errors.

rrirower avatar May 27 '24 18:05 rrirower

@samadtehrani I did get the video to play in the stream tester.

rrirower avatar May 27 '24 19:05 rrirower

Yes, It is valid. You cannot play .m3u8 playlists in the browser but every video player like VLC or Roku's player can play.

samadtehrani avatar May 27 '24 20:05 samadtehrani

@samadtehrani You can play M3U8 in chrome with the chrome plugin! However your link https://iptv.mihantv.com/mihantv/playlist.m3u8 does not play!

ferdiworks avatar May 28 '24 00:05 ferdiworks

@samadtehrani I noticed your livefeed link https://iptv.mihantv.com/mihantv/playlist.m3u8 is from IPTV and may be blocked due to copyright or security issues!

ferdiworks avatar May 28 '24 00:05 ferdiworks

I copied the link and pasted in VLC as a Network Stream and it plays (kind of). It keeps stopping and then restarting.

Well, it just stopped now. Maybe the network connection quality is the problem.

jsonnentag avatar May 28 '24 02:05 jsonnentag

Looks like you guys are missing the point. Live channels do not work, It restarts the Roku. no matter what livestream you replace with the sample I added to the feed. I added these free samples that are available online, Same result. http://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8

http://playertest.longtailvideo.com/adaptive/wowzaid3/playlist.m3u8

http://cdn-fms.rbs.com.br/vod/hls_sample1_manifest.m3u8

http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_1000_av-p.m3u8?sd=10&rebase=on

http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8

http://walterebert.com/playground/video/hls/sintel-trailer.m3u8

http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8

https://devimages.apple.com.edgekey.net/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8

samadtehrani avatar May 28 '24 02:05 samadtehrani

@ferdiworks @jsonnentag Do you guys know of a live stream that works? I'm trying to debug this, but, I'm not getting too far.

rrirower avatar May 28 '24 18:05 rrirower

I manage some streams for clients. If you need one for testing, is there a way to send you the link privately?

AndrewRCD avatar May 28 '24 19:05 AndrewRCD

@AndrewRCD Actually, if you can tell me that you've got a channel that uses Live Feeds (HLS) and is working, that's good enough. I need to know if this is a problem for everyone or just a few. If for a few, I know that streaming services can be picky about security, etc.

rrirower avatar May 28 '24 19:05 rrirower

I do :) I use both normal HLS and low-latency HLS ( LL-HLS) for videos, and that works too

AndrewRCD avatar May 28 '24 19:05 AndrewRCD

@AndrewRCD Thanks. Were those channels generated using the Wizard tool?

rrirower avatar May 28 '24 20:05 rrirower

yep

AndrewRCD avatar May 28 '24 20:05 AndrewRCD

@AndrewRCD Thanks again. I hope that those seeing your reply will take a closer look at the streaming service they are using.

rrirower avatar May 28 '24 20:05 rrirower

@AndrewRCD Lastly, did you make any changes to the Brightscript code to get the Live stream working?

rrirower avatar May 28 '24 20:05 rrirower

No - it worked "out of the box" and no changes or adaptations of any kind were needed.

AndrewRCD avatar May 28 '24 20:05 AndrewRCD

@AndrewRCD And do you use the latest version at this point "Version 1.0.0.2"?

samadtehrani avatar May 28 '24 20:05 samadtehrani

yes @samadtehrani every time the wizard is updated I update the channel with the latest version just to make sure that I have the latest code

AndrewRCD avatar May 28 '24 20:05 AndrewRCD

I am using both tools since the wizard tool was in beta - and I don't have any issues with my live streams or my videos

AndrewRCD avatar May 28 '24 20:05 AndrewRCD

Strange. I used the code "out of the box" a few months ago and it worked with the same condition. Now with Version 1.0.0.2 it freezes and restarts the Roku!

samadtehrani avatar May 28 '24 20:05 samadtehrani

@samadtehrani I get the same symptoms when I test with your feed file. I would suggest taking a closer look at your m3u8 file and/or the service you are using.

rrirower avatar May 28 '24 20:05 rrirower

I don't know what to say to that, for me, it is working, maybe something with your feed settings -

AndrewRCD avatar May 28 '24 20:05 AndrewRCD

@samadtehrani I noticed in your content feed some .... things i most certainly wouldn't use like that for example "captions": [ { "url": "https://", "language": "en", "captionType": "SUBTITLE"

but you dont have a URL - then why have it at all in the code ....

the other "adBreaks": [ "00:00:00" ]

this also for me makes no sense

maybe it is nothing but ... why complicate a code is not needed :)

AndrewRCD avatar May 28 '24 20:05 AndrewRCD