.M4a file does not play when uploading to server

In my application, I download the .m4a music file from the iphone library (saving the main data), which is downloaded from itunes, the problem is that the downloaded file does not play (even in the browser), some when the downloaded file is 4 MB in size, on the server it Displays 20 KB. If I download a .mp3 file, it downloads great and plays great. please help me. My code follows this.

[request addData:[managedobject valueForKey:@"songData"] withFileName:[managedobject valueForKey:@"song_name"] andContentType:nil forKey:@"file"]; [request setPostValue:[managedobject valueForKey:@"song_extension"] forKey:@"extension"]; 
+4
source share
1 answer

Try manually uploading the file to your server to make sure that it will play at all ... due to Apples Fairplay ( http://en.wikipedia.org/wiki/FairPlay ) DRM, I had problems playing songs, purchased at the store. However, if this is not the case, re-check the download code because something is wrong.

+1
source

Source: https://habr.com/ru/post/1441233/


All Articles