playing .m3u8

The place to discuss anything and everything about running your LiveCode on Android

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

playing .m3u8

Postby joseggarza » Thu Mar 16, 2017 4:33 am

Hi all,

I need to make player for a .m3u8(HLS) on android.

I have the following code without any success

mobileControlCreate "player", "HLSplayer" --create a player HLSplayer
mobileControlSet "HLSplayer", "visible", true
mobileControlSet "HLSplayer", "rect", the rect of fld"field" --adjust these settings to suit your screen real-estate
mobileControlSet "HLSplayer", "URL", "" --stream the HLS files
mobileControlSet "HLSplayer","showController", true
mobileControlDo "HLSplayer", "play"

under Application Standalone settings I have Hardware accelerated and Internet checked.

I bought livecode business thinking it was a super dupper software, please advice if I need to develop this player on android studio.


Posts: 16
Joined: Thu Jul 24, 2014 8:55 pm

Re: playing .m3u8

Postby elanorb » Thu Mar 16, 2017 11:59 am

Hi Jose

You just have a small error in your code, you should be setting the filename property of the player rather that the URL property.

I tested it here and it seems to work.

I hope that helps.

Kind regards

Elanor Buchanan
Software Developer
Livecode Staff Member
Livecode Staff Member
Posts: 249
Joined: Fri Feb 24, 2006 9:45 am

Re: playing .m3u8

Postby capellan » Fri Mar 17, 2017 3:31 am

Like this example in the forums?

Code: Select all
on opencard
   mobileControlCreate "player", "HLSplayer"  --create a player HLSplayer
   mobileControlSet "HLSplayer", "visible", true
   mobileControlSet "HLSplayer", "rect", "5,5,460,280" --adjust these settings to suit your screen real-estate
   mobileControlSet "HLSplayer", "fileName", "url of your m3u8 files here"  --stream the HLS files
end opencard
Posts: 341
Joined: Wed Aug 15, 2007 11:09 pm

Return to Android Deployment

Who is online

Users browsing this forum: No registered users and 2 guests