I am uploading a recorded mp3 file using phonegap and php
Recording - Using Media object (media.startRecord/ media.stopRecord) - Successful
Uploading -
ft.upload(fileURI, encodeURI("http://some.server.com/upload.php"), win, fail, options);
In options, I am using options.mimeType = "audio/mpeg";
-This is also successful
Playing - But when I try to play it in browser as http://some.server.com/media_uploaded.mp3 - It tries to play but fails after sometime. I tried playing the same file with http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_audio_all as well, but couldn't succeed.
When I download the same file - it gets played without any error in any media player in my computer.
When I upload any mp3 song at same place - it gets played successfully with - http://some.server.com/song_uploaded.mp3
What can be possible problem(s) with my recorded audio?
Update
Just noticed that problem has nothing to do with 'Upload'. The saved mp3 (when copied to PC) seems to run fine on my computer but not on browser (Even locally - I checked with Audio tag as well). So there is something wrong with the recorded mp3. Not sure what is the solution.
Not working - http://xpertvisions.com/test/media_recorded.mp3
Working - http://xpertvisions.com/test/media_song.mp3
I found a solution to this that I answered here --> https://stackoverflow.com/a/23140836/902630
This is, however, a .Net solution. But looking at it may help lead you in the right direction.
Related
I downloaded Libvlcsharp-3.x and ran the Uwp sample(Vs2017) and it worked. However when I changed the media source to a local file and the 'FromType' to FromType.FromPath it runs but no video and no sound. My Solution Configuration=Debug and Solution Platform=x86. What am I missing. Thanks.
I'm writing a website to convert youtube videos using NodeJS. I am using a package to convert them (horizon-youtube-mp3). The package works, however, I'm having problems converting. Whenever I try to convert a youtube link, it will return 'server returned 403 forbidden access'.
This error happens in 95% of the links. Some links actually work and convert correctly, but only a few.
I tried running the script on 3 different computers running 3 different OS's. My VPS, my laptop and my home PC. I looked on the web but couldn't find anything useful.
So yeah, I completely suck since I really don't understand why one video would convert, and the other won't. Even if the region of the video is the same.
Any help would be highly appreciated!
I'm developing a mobile app in j2me with configuration cldc2.1 and midp 2.0.
In my app, I'm running some audio files based on some user operations. But some times audio files running correctly but sometimes it throws " javax.microedition.media.MediaException: AUD" exception.
I placed the audio files (.wav) in "res" folder of my project and read from that folder and then I'm playing it.
I'm using nokia c2-01 phone (s40) device is for testing. Please give your ideas to solve this problem.
Please help me. All your ideas are welcome.
my problem touches some other questions already asked here, but no topic here has an answer, that solves this situation.
I have created web version of a certaion document, some pages in this document include embedded flash swf files.
The key problem is, this document is suppossed to be distributed on CD, so I created an offline version without problem. But after running the site offline, I come to conflict with Flash Player security, which asks if I really want to run the swf file ... and than crashes the Flash Player.
I know you can set up the configuration for this easily for Flash Player, you can also create a config file, that will allow you to run flash files localy. I can do those without problem.
BUT :-) ... if this CD is distributed to other people, they won't make those changes or steps and run into problem with flash... and yes, it's sad, but the flash has to be there :-|
Can anyone please help this problem? Because I'm running out of ideas light speed...
Thank you in advance
try setting the "local playback security" to "access local files only" if you're working in the Flash IDE. if you're compiling your SWF using the flex compiler you need to add the following flag:
-use-network=false
helpful article:
http://www.senocular.com/pub/adobe/Flash%20Player%20Security%20Basics.html
cheers
I just made Google Chrome Extension and created a .zip file from it. Then when I am trying to upload it, its taking forever to do anything.
http://img23.imageshack.us/img23/3370/20101208022006.png
Is that normal?
I had the same problem a few days ago (are you at the latest developer branch)? When this happened I also got permissions error when I was trying to access desktop from file upload dialog. Restarting the computer helped.