Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
camelotmex
Level 7

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
Roku Employee
Roku Employee

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
Level 7

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
Level 7

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
Level 7

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