playing .m3u8

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
joseggarza
Posts: 44
Joined: Thu Jul 24, 2014 8:55 pm

playing .m3u8

Post by 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/1 ... fg/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

elanorb
Livecode Staff Member
Livecode Staff Member
Posts: 516
Joined: Fri Feb 24, 2006 9:45 am

Re: playing .m3u8

Post by 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

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: playing .m3u8

Post by capellan » Fri Mar 17, 2017 3:31 am

Like this example in the forums?
http://forums.livecode.com/viewtopic.ph ... 963#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 

Post Reply

Return to “Android Deployment”