Discussion Forums  >  Audio, Video, Playing, Recording

Replies: 15    Views: 182

Rad Doc
Apple Fan
Profile
Posts: 653
Reg: Oct 08, 2010
USA, NYC
8,580
05/30/13 01:16 AM (10 years ago)

Playing local audio files?

Has anyone been able to embed and play a local .mp3 file through any of the plugins. The option to embed a local file doesn't seem to be exist anymore, yet only streaming via URL is the option. Any help would be great. Thx. IOS RELATED QUESTION
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/30/13 01:26 AM (10 years ago)
Using this: "audioFileName": "your.mp3" Works for me..in the background for most plugins..
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/30/13 02:24 AM (10 years ago)
Hi, Working on a plugin right now. Can't giVE ETA but it won't take long anymore ( having some 'small' problems I need to figure out). Best Regards, Danny
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
05/30/13 02:37 AM (10 years ago)
Have you considered HTml audio player? Farcat
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
05/30/13 03:18 AM (10 years ago)
Hi Mysps have you tried this method with Danny's Stream Audio Plugin?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
05/30/13 03:27 AM (10 years ago)
No, I haven't tried it yet.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/30/13 03:34 AM (10 years ago)
Hi, Unfortunately you can't play local audiofiles with The Audio Streamer Plugin - only remote audiofiles. Best Regards, Danny
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/19/13 02:09 PM (10 years ago)
I'm looking to do the same thing as well, preferably from an HTML screen. I tried the HTML5 <audio> tag, but that appears to not work in the UIwebView for Apple...I haven't tried it with Android. What I would like is a list of quotes that have an audio component to them, and the person can hit the link and hear the quote. Any ideas?
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
06/19/13 03:00 PM (10 years ago)
Hi Mark, I see there are some times you have questions too.....:-) If you want to work with html it is doable. I just tested this and put some files on my server. If you include these it should work faster. file 1 (the javascript): https://dl.dropboxusercontent.com/u/3427464/Mark/BTA_BlogPro_Default_audio.min.js file 2 (the player images): https://dl.dropboxusercontent.com/u/3427464/Mark/player-graphics.gif make sure they are in your project. The custom html code could look like this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;" name="viewport" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script> <script src="BTA_BlogPro_Default_audio.min.js"></script> <style type="text/css"> html{background-color:transparent;height:100%;width:100%;} body{background-color:transparent;font-size:11pt;font-family:helvetica;} img{border:0px;} </style> <script> audiojs.events.ready(function() { var as = audiojs.createAll(); }); </script> </head> <body> <div class="audioselfcontainer"> <div class="audioself"> <audio id="player" name="player" src="yourmp3.mp3" preload="metadata"> </audio> </div> </div> <div>test audio</div> </body> </html> Hope this gives you a start. Best Regards, Danny
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/19/13 04:39 PM (10 years ago)
I do indeed have questions from time to time! So many, in fact, that I just don't have time to ask them all! Your code works perfectly...thanks! I'll play around with it a bit and see if I can pretty up the page, but right now it does what I need. Odd thing...I tried it using FireFox, and it didn't work (the controls showed, but the audio never loaded). However, when I tried it in a test app, no issues! Thanks, Danny! Mark
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
06/19/13 04:50 PM (10 years ago)
Hi Mark, Glad I could help YOU out. You help so many people, and from what I see, almost never ask questions for yourself. Great!! Had the same problem with firefox. Don't know why....... Best Regards, Danny PS. For faster loading you should also download jquery and import it in your project (make sure you reference right)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/19/13 04:51 PM (10 years ago)
Ah, good to know that I'm not the only one experiencing a FF issue! I will absolutely include the jquery and audio files in the project to speed things up. Glad the solution was so easy! Could be a good plugin! Thanks again! Mark
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
06/19/13 04:55 PM (10 years ago)
Hi Mark, As you can tell by the filename I used this in The Blog Pro Plugin. If you don't already have it maybe you should :-) Good luck! Best Regards, Danny
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/19/13 11:58 PM (10 years ago)
As soon as I need that plugin for a project, you know for sure I'll buy it! Mark
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
06/20/13 12:30 AM (10 years ago)
Hi Mark, hahaha, was just joking but thanks anyway. Best Regards, Danny
 
bfoutty
Code is Art
Profile
Posts: 185
Reg: Jun 12, 2011
Youngstown, OH
12,650
like
06/24/13 06:09 AM (10 years ago)
I have played local files in one of my apps using the AT53 video plugin. You will get the black background with the grey Quicktime Q, but the audio will play.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.