When I download a sound file in my iPhone, in which directory is it stored?
There is no 'sound file directory'.
Safari cannot download files to the iPhone and if you download a sound file from code you will receive the data in an NSData object. From there it is up to you where you write the file (or even if you write a file, you could use the data without saving it). However you will still not have many options on where to save the file because of the iPhone sandbox.
Related
I have been trying to use a custom AVPlayerItem that lets me copy the currently playing media to file after it has been downloaded while it is streaming into the AVPlayer, essentially letting me cache the displayed video while showing the video as soon as possible.
Unfortunately, my application sometimes needs to download mp4 files from a server (that I don't control) that is giving the mime type as image/gif although the downloaded file IS an mp4 file. Because of this, my AVPlayer is not "streaming" in the video as it's downloaded, and only shows it once the file is completely downloaded and it realizes the file really is an MP4.
My thought is now to just download the file directly to a local file with a .mp4 extension that a standard AVPlayerItem can stream in, and write to this file while reading from it with the AVPlayerItem. Is this possible? Will the AVPlayerItem pause when it is still downloading/buffering the incomplete data or will it just produce an error without displaying anything? Is there a better way I can be doing this?
I want to play .ts file in iPhone, so
I have been trying to copy it to iTunes but it is not allowing to copy to iTunes movies, then I converted it to .mp4 and tried again, it copied.
So converted file is working but file should not be converted.
I sent it through mail and tried to download it, but it is showing "These types of attachment cant be accessed on this device."
Does iPhone supports the file type or not?
In my app i am uploading .m4a music file from iphone library (storing in core data) which is downloaded from itunes, problem is the uploaded file is not playing (even in browser), some times the uploaded file is of 4MB size, in server it is showing 20KB. If i upload a .mp3 file it is perfectly uploading and perfectly playing. please help me.My code follows like this.
[request addData:[managedobject valueForKey:#"songData"] withFileName:[managedobject valueForKey:#"song_name"] andContentType:nil forKey:#"file"];
[request setPostValue:[managedobject valueForKey:#"song_extension"] forKey:#"extension"];
Try manually uploading the file to your server to verify that it will play at all... because of Apples Fairplay (http://en.wikipedia.org/wiki/FairPlay) DRM, I have had trouble playing songs bought off the store as well. However, if this is not the case, then recheck your upload code because something is wrong.
How to save the file which is recorded in sound_record.js File from Appcellrator Titanium KitchenSick Demo.
file = recording.stop(); // file container TiFile Object
sound = Titanium.Media.createSound({sound:file}); // Sound Contains. TiMedia Object
I found these two lines which has the data, which is recorded, But i didnt get that, How to save these recorded data into iphone, so that they can have an access to these files which is recorded.
And also Uploading the Audio files to Web Server, Every where we have how to upload the Image which comes from Gallery, But there is no where its mentioned how we can upload the audio files such as .wav file which is recorded using sound_record.js.
I would checkout the KitchenSink, you'll find a lot of examples there. For saving I would checkout the filesystem.js and for upload the xhr_fileupload.js.
I have an audio file that I saved from stream into ~/Documents folder on iPhone.
I just wanted to make this file visible to user as (s)he can play it using iPod program or put that file into his/her song's album!
Unfortunately, this is not possible. Access to the iPod library is read-only at the moment.