2017년 3월 20일 월요일

HOW TO PARSE M3U8 FILE TO VIDEO PLAYER


please I am getting an error when passing a .m3u8 fille to the video player
 I don't know if its the write to use the video player for that please if you could help me solve the problem I will be
gratefull thanks


--
If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...


To download the aia file, upload it to  App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...

--
please that a screen shot off the block

I want to stream a m3u8 file using the video player


--
Your m3u file is a text file that contains the links to the streams in a playlist.
You must open the m3u file, copy out the links to the streams then use those with the player component.
The player component cannot play a playlist file directly.

--
sorry sir but I don't understand how to do that ,I just check on google but I can really find any relevant information about converting .
a link or tutorial will be of great help


--
Hi, App inventpr video player not good to streaming vide ( wecams or live tv ), yes it maybe work but...usually not.
Better solution is using 3 part video/streame player. Ex. I use on my Apps MX player.
How to use Mx player through ActivityStarter you find in here https://sites.google.com/site/mxvpen/api

Also if stream or video info in m3u file then you can use this info what inside playlist file, but m3u8 is server side file only and not useful info inside.
You can test my LIVE TV app with MXPlayer free integrated solution http://www.amazon.com/gp/product/B00T4662Q2


--
I Peep Prants , I am happy to see you were able to make an app like the one am try to do ,  am really a novice in this app development.
I went through  all the links you provided but I was not able to set up my app inventor app  to use the mx player  using the activity starter ,
please if you could help me with some sample block code I will be great full. I will be waiting

-- 
I have custom xml with stream links and channel info in web. In app start first load all xml values to list. then you not need update app when stream link is changed.
Also in app start resolve Activity check if MXPlayer free is installed, if not then show MXPlayer download notification. If user choose OK, then go MXPlayer download page, if NOT then close app.
MXPlayer Activity
Action: android.intent.action.VIEW
Class: com.mxtech.videoplayer.ad.ActivityScreen
DataUri: link to stream - rtsp:, rtmp:, http: alowed, also playlist files m3u, m3u8 or files .ts or .mp4 etc. works fine

--
Your great thanks you very much for your help.:)

--

App Inventor Bomber blitz | helicopter bomber


Learn how to make a Helicopter bomber game in app inventor. I was checking a video and saw a game made in app inventor so I tried to make my own version. It is not finished but works quite well.
I suffered a little with these tutorial :( jaja

Watch the tutorial episodes:



Part04: https://youtu.be/E0YihiKw3_Y

** Download resource file: https://goo.gl/1xEMAL please like the video!!
Watch preview of tutorial part 02: https://goo.gl/5VYB7Q

Be my patron:
http://patreon.com/AzaotlTutorials
Like my Facebook Page: http://www.facebook.com/azaotl

WAnt to learn about:
making lists in app Inventor?
https://goo.gl/hWKp7z
using " for each" loop
https://goo.gl/fS5aGt
Mario Run Game in App Inventor
https://goo.gl/XtKoej

Watch previous Helicopter tutorials: https://goo.gl/2h75XF
This is just to show you how the final helicopter bomber blitz app made in App Inventor looks like after finishing tutorial part 04.
I added some little things like score and lives to this app inventor game. Al so I added a new graphic for helicopter that will be ready to download when tutorial gets published. Also I added more buildings and basically that's all. Maybe I will make just one more video about this game but I am sure now you can have it ready to finish and show it to your firends. So Wait for tutorial 4 soon... (maybe thursday or friday)

Watch previous Helicopter tutorials: https://goo.gl/2h75XF

WAnt to learn about:
making lists in app Inventor?
https://goo.gl/hWKp7z
using " for each" loop
https://goo.gl/fS5aGt
Mario Run Game in App Inventor
https://goo.gl/XtKoej

Be my patron:
http://patreon.com/AzaotlTutorials
Like my Facebook Page: http://www.facebook.com/azaotl


MIT App Inventor is an innovative beginner's introduction to programming and app creation that transforms the complex language of text-based coding into visual, drag-and-drop building blocks. The simple graphical interface grants even an inexperienced novice the ability to create a basic, fully functional app within an hour or less.
MIT App Inventor has grabbed the attention of:

Formal and informal educators who have used MIT App Inventor to introduce programming to their Computer Science students, science club members, after-school programs’ attendees, and summer campers. Many educators have also started to use MIT App Inventor to develop apps in support of their own instructional objectives.
Government and civic employees and volunteers who have harnessed the power of MIT App Inventor to develop custom, often hyper-local apps in response to natural disasters and community-based needs.
Designers and product managers who have seen the potential that MIT App Inventor has to support the iterative design process via rapid prototyping, testing and iteration.
Researchers who use MIT App Inventor to create custom apps that can process their data collection and analysis requirements in a wide variety of fields from medical to social.
Hobbyists and Entrepreneurswho want to quickly turn an idea into an app without the cost or learning curve of more traditional app creation processes.

search results for piano




This piano has a realistic action and sound and was designed to use the Canvas TouchDown event block for determining which 'key' was pressed.


This simple piano app uses 1 Canvas image to represent 29 piano keys, 1 ImageSprite mask to indicate where a key was pressed and 1 Player ...


Playback is via a pre-recorded Piano voice for each note. Making a composition: The user touches anywhere on the score to place a note. Once the ...


This was the inspiration for my Piano Composer app: Piano Composer ( documentation). In this demo project, a tall ImageSprite is made to collide with ...

Inside those blocks I have the blocks to play piano note chords on my Piano Composer app/project. --- ScottOn Monday, December 30, 2013 8:40:39 ...

How to update saved text


Hi guys in need for some urgent help, im a beginner with AppInventor2. Ive so far created an app that will allow me to record audio, save it and display it in a list. The problem comes to when i try to annotate it. For the annotations ive created a textbox which saves the files onto my phone but the issus is that it continuesly saves i.e. adds onto what i previously saved instead of individual saved textfiles. Help Please....

--
This may require two lists -- one for the recordings, and one for the annotations.
Both lists will share a common index.
So if you are listening to the 3rd recording from the recordings list you should be displaying the 3rd annotation from the annotations list.
Also if you record a new item, it's annotation would be saved at the same time in the annotations list.

--
You can also append to the list for every download, here are some blocks about appending to the text file on a click, should be pretty close to the same I imagine.  You can even download the app in the Gallery here, it's HERE!  Hope this helps!
Also a good video on YouTube HERE!


--

Can I combine two apps in one to solve size limits?


I realized that many people are having the same problem with not being able to upload projects with lots of images in the assets folder. I am wondering if it's possible to create my main app in AppInventor2, then create a pseudo app in Eclipse or Android Studio that contains the images and sound files, then merge these two into one .apk file.
I am working on a picture dictionary that tells the user the pronunciation and let them record their own pronunciation for comparison. That is why I need a lot of images and sounds. Please let me know if you can think of any other solution.

-- 
No... There's no way to merge Eclipse projects into AI apks.

Here are some solutions for getting around the 5MB limit for images from Hossein & Taifun on Taifun's pages: http://puravidaapps.com/filebyfile.php

--
Thanks Enis. I used the Hossein's solution and I was able to package it. However I was not able to install it on my Android tablet because the final size ended up being 76MB while Android has a 50MB limit on .apk files. I will need to go the expansion file route described here: Android Apps Break the 50MB Barrier

--
you can't use expansion files with an App Inventor app
can you reduce the size of your images to be in the limit?
alternatively download the files on first run of the app

-- 
Webprefetch did the trick. I have all my files downloaded on first run. However, my app is still not working. It gives me an Error701 message: "Unable to load *.mp3. Error during download, please restart app." I am not sure why that is because I know the files are on the device. I am attaching a screenshot of the blocks that is supposed to pick an image and a sound from a list that looks like this:
abacus.mp3
abacus.png
accordion.mp3
accordion.png
etc.
--
it seems to be, the path to your files is not correct
you probably want to fix that error and adjust the error message in the Screen.ErrorOccurred event

--
When you say the path to my files is not correct, do you mean to download them or to read them? If it's to download, that part is solved because all the files are downloaded to the tablet. If it is to read them, I am not sure how to tell the app to look in a specific location (I thought it would find them automatically as long as they are in memory). It is my first time really having media files outside of the assets folder.

--
If it is to read them, I am not sure how to tell the app to look in a specific location
taking a look at the fantastic documentation helps...

here is the description: Accessing Images and Sounds
try something like this:
set Player.Source = file:///mnt/sdcard/myDirectory/myFile.mp3

how do you access the mp3 files currently to play them?
a screenshot of the relevant block could help incl. Do it result to see the path you are using currently

--
I searched some more and tried playing with the code. I'm still not getting it to work. Here is a screenshot of the blocks with 
set Player.Source = file:///mnt/sdcard/myDirectory/myFile.mp3
The other screenshot is of my tablet for the Do it  result.

I read on the forum that this worked for someone else. I'm not sure why it's not working in my case. Saving Images on your Device



--
1. as already said, adjust the error message in the Screen.ErrorOccurred event, because the error message is misleading... the download worked fine, correct?
2. did you realize, that this is error 703 now? last time you had error 701...
3. how large are these mp3 files? probably you should use the Player component insetead of the Sound component?

-- 
Regarding the error message

:
"Unable to load *.mp3. Error during download, please restart app." 
Did you really ask for a wild card (*.mp3) ?

I'm not sure that will work.

--
Sorry for the late follow up. I was out of town last week.

-I adjusted the error message. 
- For the different error numbers, I realized that it is because ai2 is not able to load files that have spaces in the file name (Not a problem, I can fix that)
- the mp3 files are fairly short. The sound component handle those that are in the assets folder very well. (So sound or player is not the problem).

The problem still is in accessing files saved to the sd card. I played with the address path and tried to write it in different ways. It is still not working. I found that when I set the sources as simply "pick item from a list" (see screenshot below), when I am using the ai companion, the sounds play, no more error message for sound but the images still don't show. However, when I build the apk, it does not even play the sound anymore, I get the error message again. It's like I get different results when I am using the companion or the installed app.

The wild card was just to say "whatever the name of my audio file". Sorry for the confusion.



-- 
The problem still is in accessing files saved to the sd card. I played with the address path and tried to write it in different ways. It is still not working

unfortunately you did not say, what you tried...
as already said, try something like this:
set Player.Source = file:///mnt/sdcard/myDirectory/myFile.mp3

a screenshot of the relevant block could help incl. Do it result to see the path you are using currently

--
These are are the paths I tried. Everything joined by the name of the file as "myFile.mp3" format. None of them worked.
Do it result is the same Error 701. I searched the forum, read what you asked other users to do and everything. I think that's it for me and app inventor.


file:///mnt/sdcard0/data/do-not-delete/webprefetch/
storage/sdcard0/data/do-not-delete/webprefetch/
sdcard0/data/do-not-delete/webprefetch/
sdcard/data/do-not-delete/webprefetch/
/data/do-not-delete/webprefetch/
data/do-not-delete/webprefetch/

--
it seems to be, you are not familiar with Do it? see also tip 4 here 


this would help you to find out, which path you are actually using

did it work to display the image? if yes, you know, that the path is correct...
and: see also the answer to question 2 here https://puravidaapps.com/filebyfile.php#q how to put together the path to an image to display, and this works similar for sound files
btw. you first had error 701, then error 703 and now error 701 again?

--
Here is the screenshot with Do-it result. It did not work to display the image.


--
It did not work to display the image.
which means, your path is wrong, why do you do that manually?
how does your strPath variable look like?
see again the answer to question 2 here https://puravidaapps.com/filebyfile.php#q how to put together the path to an image to display, and this works similar for sound files
--