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", "http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8" --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.

Thanks

JG
joseggarza
 
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
Elanor Buchanan
Software Developer
LiveCode
elanorb
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?
viewtopic.php?f=70&t=16963#p85406

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