I was using and old I guess legacy video player example and everything works good with mp4 and m3u8 and I tried to update from the legacy so I used the video player migration and now I can’t get m3u8 to play anymore mp4 still works just fine and good I use multiple xml files for feeds. I have been trying for past 2-3 days to figure this out and used all kinda of ways things but have failed to make it work. when I click on a m3u8 the player changes screens and loads the retrieving bar half way and stops nothing else happens. if I change players back to the old one legacy style then the everything plays fine..
this is the code I been trying to use in a xml file if I change format type to mp4 and add a mp4 link it works fine. will somebody please give me one example of a working hls code for a xml file using the new videoplayer-channel player please ?
The NASA stream is a bit more complex with multiuple m3u8s in the main manifest, so I don’t like testing with that.
But your xml looks fine - chances are the issue is in the code itself instead of the feed.
I tried your link , that link does the same thing loads half way and stops I have tried 20-30 test links they all do the same thing , so this means the video player - channel from the migration and the developer example is broken when it comes to playing hls ? I tried both players and both does the same thing.
After that I edited the categories.xml to reference the mind from my server – in categories.xml, the mind line above.
For themind.xml – I changed it to this
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
4
4
Test m3u8
10031
Talk
SD
hls
SD
0
[http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_1000_av-p.m3u8](http://nasatv-lh.akamaihd.net/i/NASA_101@319270/index_1000_av-p.m3u8)
Test m3u8.
Test
True
1260
....
And then changed the url loaded for the main category feed in the scenegraph videoscene.brs
url=“http://myserver.com/xml/categories.xml”
And uploaded both xml files to myserver.com/xml/
Then when loading the channel, select the first category on the main screen, then select the Test m3u8 file and it plays fine here.
I think you did similar - sometimes the nasa feed does fail so try again later?
I did exactly same steps as you did in your post and it still loads half way and stops on loading.
I ran the command like you ask I hope you understand it cause I don’t understand any of that hahaha ..
maybe it is my ultra ? i used the multi live channel example player and it plays the m3u8 and the legacy player plays the m3u8 seems it’s just effecting that video player on my Roku
Change
in SimpleVideoScene.xml onKeyEvent OK false
in SimpleVideoScene.xml onKeyEvent OK false
onItemSelected
in SimpleVideoScene.xml onKeyEvent OK true
------- [ok pressed] -------
in SimpleVideoScene.xml onKeyEvent OK true
------- [ok pressed] -------
in SimpleVideoScene.xml onKeyEvent OK false
in SimpleVideoScene.xml onKeyEvent OK false
in SimpleVideoScene.xml onKeyEvent back true
------ [back pressed] ------
Do nothing
in SimpleVideoScene.xml onKeyEvent back false
in SimpleVideoScene.xml onKeyEvent back false
------ Running dev 'Video Player' main ------
################
Start of Channel
################
Received Input -- write code here to check it!
main.brs - [showHeroScreen]
UriHandler.brs - [init]
[makeRequest] - http://myserver.com/MyChannel/xml/categories.xml
Task.xml - [go]
UriHandler.brs - [go]
--------------------------------------------------------------------------
Received event type 'roSGNodeEvent'
UriHandler.brs - [addRequest]
Initiating transfer '122691227' for URI 'http://myserver.com/MyChannel/xml/categories.xml' succeeded: true
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Received event type 'roUrlEvent'
UriHandler.brs - [processResponse]
Response for transfer '122691227' for URI 'http://myserver.com/MyChannel/xml/categories.xml'
UriHandler.brs - [parseResponse]
begin category node parsing
number of categories: 4
skipped banner_ad
category: Technology | TED Talks on Technology
category: Entertainment | TED Talks on Entertainment
category: Design | TED Talks on Design
onContentSet
done with parseResponse
--------------------------------------------------------------------------
onRowItemSelected
[makeRequest] - http://devtools.web.roku.com/videoplayer/xml/globalissues.xml
--------------------------------------------------------------------------
Received event type 'roSGNodeEvent'
UriHandler.brs - [addRequest]
[makeRequest] - http://myserver.com/videoplayer/xml/themind.xml
Initiating transfer '122691228' for URI 'http://devtools.web.roku.com/videoplayer/xml/globalissues.xml' succeeded: true
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Received event type 'roSGNodeEvent'
UriHandler.brs - [addRequest]
Initiating transfer '122691229' for URI 'http://myserver.com/videoplayer/xml/themind.xml' succeeded: true
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Received event type 'roUrlEvent'
UriHandler.brs - [processResponse]
Response for transfer '122691228' for URI 'http://devtools.web.roku.com/videoplayer/xml/globalissues.xml'
UriHandler.brs - [parseLeaf]
in SimpleVideoScene.xml onKeyEvent OK false
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Received event type 'roUrlEvent'
UriHandler.brs - [processResponse]
Response for transfer '122691229' for URI 'http://myserver.com/videoplayer/xml/themind.xml'
UriHandler.brs - [parseLeaf]
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Received event type 'roSGNodeEvent'
UriHandler.brs - [updateContent]
All content has finished loading
onCategoryContentSet
--------------------------------------------------------------------------
Received event type 'roSGNodeEvent'
UriHandler.brs - [updateContent]
onCategoryItemSelected
onReadFinished
onContentChange
in SimpleVideoScene.xml onKeyEvent OK false
in SimpleVideoScene.xml onKeyEvent OK false
onItemSelected
in SimpleVideoScene.xml onKeyEvent OK true
------- [ok pressed] -------
in SimpleVideoScene.xml onKeyEvent OK true
------- [ok pressed] -------
in SimpleVideoScene.xml onKeyEvent OK false
in SimpleVideoScene.xml onKeyEvent OK false
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.
Suspending threads...
Thread selected: 0* pkg:/source/main.brs(47) msg = wait(0, m.port)
Current Function:
039: screen.setMessagePort(m.port)
040: scene = screen.CreateScene("VideoScene")
041: m.global = screen.getGlobalNode()
042: 'Deep link params
043: m.global.addFields({ input: input })
044: screen.show()
045:
046: while(true)
047:* msg = wait(0, m.port)
048: msgType = type(msg)
049: if msgType = "roSGScreenEvent"
050: if msg.isScreenClosed() then return
051: end if
Break in 47
047: msg = wait(0, m.port)
Backtrace:
#1 Function showheroscreen(input As Object) As Void
file/line: pkg:/source/main.brs(47)
#0 Function main(input As Dynamic) As Void
file/line: pkg:/source/main.brs(30)
Local Variables:
input roAssociativeArray refcnt=3 count:4
global Interface:ifGlobal
m roAssociativeArray refcnt=3 count:2
screen bsc:roSGScreen refcnt=1
scene bsc:roSGNode refcnt=1
msg <uninitialized>
msgtype <uninitialized>
Threads:
ID Location Source Code
0* pkg:/source/main.brs(47) msg = wait(0, m.port)
1 pkg:/components/Task.xml(25) msg = wait(0, m.port)
2 pkg:/components/UriHandler.brs(31) msg = wait(0, m.port)
*selected
Brightscript Debugger>
If you have m.port=CreateObject(“roMessagePort”) in the “Showheroscreen” function in main.brs, immediately followed by screen.setMessagePort(m.port) then I think you’ll need to wait for the next release of the firmware as this ought to be fixed when you get that. Thanks for the extra info - it helps to help you.
Update dannykng[/url:13pz4b3w] fixed the issue in the video sample player for hls so just posting update here incase anybody else reads this and had the same issue just download a new copy of the player for the fix
I am on an Insignia Roku TV, and the same thing is happening for me here, except not on HLS, but any adjusted XML file.
It appears that if I change my XML file at all, or even duplicate the XML of the Videoplayer sample, it does this load thing then rejects the video… what is going on?