Skip to first unread message

xero...@gmail.com

unread,
Jun 29, 2014, 3:59:29 PM6/29/14
to mitappinv...@googlegroups.com
Hello.
I want to create a Livestream app which will stream video in the m3u8 format (direct link to the stream - http://88.212.10.27:81/streams/joj.m3u8 , I run it in VLC and everything si working fine) with the VideoPlayer component. After starting the App, it shows this error: error 701: unable to load xyfile. Can the App Inventor even run m3u8 files? Everything should be fine with the blocks, but I attached them anyways. Thanks for help!
Samuel Dudík
blocks.PNG

Taifun

unread,
Jun 29, 2014, 4:24:01 PM6/29/14
to mitappinv...@googlegroups.com
search for video streaming in the forum
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.


Advice: Before posting, it's a good idea to search in this forum. Many others have likely run into problems similar to yours. How to search see screenshot.



         

xero...@gmail.com

unread,
Jun 29, 2014, 5:12:41 PM6/29/14
to mitappinv...@googlegroups.com
I searched on the forum and internet before I published this question and I also done it second time after your recommendation, still with no helpfull answer.
I was just asking if the m3u8 format is compatible with Android (also searched on the internet - no clear answer). I saw an application on the Play Store (probably not created in App Inventor) streaming this same URL and it was working, so I think that this format is accepted by Android.

Taifun

unread,
Jun 29, 2014, 6:08:39 PM6/29/14
to mitappinv...@googlegroups.com

xero...@gmail.com

unread,
Jun 30, 2014, 2:32:31 AM6/30/14
to mitappinv...@googlegroups.com
Thanks for the link. The m3u8 file is just text playlist with information about the stream and in case it's a radio playlist also with the artist name etc. In my case, the file contains this data:
 
#EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-MEDIA-SEQUENCE:887
#EXTINF:3,
http://88.212.10.27:81/streams/joj-887.ts
#EXTINF:3,
http://88.212.10.27:81/streams/joj-888.ts
#EXTINF:3,
http://88.212.10.27:81/streams/joj-889.ts
#EXTINF:3,
http://88.212.10.27:81/streams/joj-890.ts

If I understand it right, the .ts files are supported by Android 3.0+. I tested the app on an Android 4.0 and it still throws the error. So now I'm really confused.
 

Taifun

unread,
Jun 30, 2014, 9:27:36 AM6/30/14
to mitappinv...@googlegroups.com
from that link:
• 3GPP (.3gp)
• MPEG-4 (.mp4)
• MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+)

probably you use a different audio format?
Taifun

xero...@gmail.com

unread,
Jul 3, 2014, 12:03:13 PM7/3/14
to mitappinv...@googlegroups.com
In the end I got it working just by starting an Activity with the action android.intent.action.VIEW and the DataUri with the link to the stream. Thanks for your help.

Pablo Castro

unread,
Sep 27, 2014, 10:03:00 AM9/27/14
to mitappinv...@googlegroups.com
Hi, I'm doing a similar project, you could show me a screenshot of the blocks that you used
Reply all
Reply to author
Forward
0 new messages