Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
camelotmex
Visitor

HLS stream file m3u8 on the fly link isnot working in simple

Hello!!

please I need your Help!

i have a URL "https://ott.totalplay.com.mx:443/TPHLSWeb/M3U8LiveFile?format=2&profile=1&lan=2&rows=40&f=M3U8LiveFi...

This URL creates a file on the flight, this is called M3U8LiveFile, without extension, the format is M3U8. In VLC and Windows Media this URL works.

En el ejemplo del SDK SimpleVideoPlayer is not work there is a XML feed:

<?xml version="1.0" encoding="UTF-8"?>
<feed>
<item sdImg="http://butacaencasa.net/Images/SatRojo.jpg" hdImg="http://butacaencasa.net/Images/SatRojo.jpg">
<title>40 HD</title>
<contentId>10002</contentId>
<contentType>Talk</contentType>
<contentQuality>HD</contentQuality>
<streamFormat>HLS</streamFormat>
<media>
<streamQuality>HD</streamQuality>
<streamBitrate>1500</streamBitrate>
<streamUrl>https://ott.totalplay.com.mx:443/TPHLSWeb/M3U8LiveFile?format=2&profile=1&lan=2&rows=40&f=.m3u8</streamUrl>
</media>
<synopsis>Sin Descripcion</synopsis>
<generes>Clip</generes>
<runtime>1260</runtime>
</item>
</feed>


please I Need Help!!! :roll: :roll: :roll: :roll:
0 Kudos
4 REPLIES 4
RokuJoel
Binge Watcher

Re: HLS stream file m3u8 on the fly link isnot working in si

That is an HTTPS url. So you need to initialize your video object to handle playback over SSL:


video = CreateObject("roVideoScreen")
video.setMessagePort(p)
video.SetCertificatesFile("common:/certs/ca-bundle.crt")
video.InitClientCertificates()


now you should be able to play video over HTTPS.

- Joel
0 Kudos
camelotmex
Visitor

Re: HLS stream file m3u8 on the fly link isnot working in si

thank you, it's work.
the code:

port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)
screen.SetCertificatesFile("common:/certs/ca-bundle.crt")
screen.InitClientCertificates()
screen.SetPositionNotificationPeriod(30)
screen.SetContent(episode)
screen.Show()
0 Kudos
camelotmex
Visitor

Re: HLS stream file m3u8 on the fly link isnot working in si

please, something strange happens.

I can not play M3U8, "https://ott.totalplay.com.mx:443/TPHLSWeb/M3U8LiveFile?format=2&profile=1&lan=2&rows=40&f=.m3u8".
Yesterday , it was possible, but turn off the roku and now plays M3U8.

the message on the console says: showHomeScreen | msg = Content contains no playable tracks. | index = 0.

i have the same code to play https.

port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
screen.SetMessagePort(port)
screen.SetCertificatesFile("common:/certs/ca-bundle.crt")
screen.InitClientCertificates()
screen.SetPositionNotificationPeriod(30)
screen.SetContent(episode)
screen.Show()


please Help me
0 Kudos
zuber
Visitor

Re: HLS stream file m3u8 on the fly link isnot working in si

I am trying to understand what I need to fix in my code.

My XML file is HTTPS in the catogery.brs file.

Please tell me what to edit there.

Thanks.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.