Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › http/1.1 Byte Range error (encrypted download Link) on iOS
- This topic has 6 replies, 3 voices, and was last updated 13 years, 3 months ago by amin007.
-
AuthorPosts
-
July 8, 2011 at 8:31 am #3757dschubbaMember
Encrypted Download Links won’t work on iOS with m4v file.
And I’d like to change HTTP/1.1 BYTE RAGE, but where?
I’ve tried direct link to this media file, and worked a fine.
There is no error. Using 2 http servers running, both direct link to media files worked OK.
I guess I need to edit download.php on eStore, but Im not sure for it.
Anyone?
After fixing this problem, eStore will be able to sell m4v for ipod/ipad.
For Android, need to test it. PC/MAC worked OK.
July 8, 2011 at 11:56 pm #34113amin007ParticipantAre you using WP eStore’s default download method or have you modified this in the settings?
You probably just need to add the “m4v” extenstion to the list of mimetypes. Open the “lib/mimetype.php” file from eStore and look inside the “privBuildMimeArray” function. It has a list of known file extensions. You can add “m4v” to that list with it’s proper mimetype.
You can also zip the “m4v” file and then serve the download as a normal zip file. The customer knows to unzip a file after they download a zipped file.
July 14, 2011 at 9:23 am #34114dschubbaMemberNow, I added m4v in mimetype.php. And I dont see HTTP/1.1 BYTE RAGE error.
However, downloaded file is 0KB with proper file name.
Direct link to download file works fine.
It happens when, using encrypted download link.
July 14, 2011 at 10:36 am #34115dschubbaMemberdownload manager debug log shows;
[07/14/2011 10:18 AM] – Status : Resolved DL file path = http://<domain>/<filename>.m4v
[07/14/2011 10:18 AM] – Advisory : No DL file path conversion performed on URL.
[07/14/2011 10:18 AM] – Status : Dispatching DL method = 1
I tried URL conversion preference to relative or do not convert, and log shows No DL file path conversion performed on URL.
Actual file locates on CDN URL, do I have to choose URL conversion setting for DO Not Convert? Also, do I need cURL library?
July 14, 2011 at 12:49 pm #34116wzpModeratorWhy does the path “look funny?”
July 14, 2011 at 3:00 pm #34117dschubbaMemberCan you add download method in /wp-cart-for-digital-products/download.php For HTTP/1.1 BYTE RAGE support ?
I guess this download.php file create http header on each selected methods.
Note;
Serving video to iOS devices does not work in Multisite WordPress due to lack of byte-range support
http://core.trac.wordpress.org/ticket/15552
Apple iPhone uses HTTP byte-ranges for requesting audio and video files.
http://mobiforge.com/developing/story/content-delivery-mobile-devices
>>You probably just need to add the “m4v” extenstion to the list of mimetypes. Open the “lib/mimetype.php” file from eStore and look inside the “privBuildMimeArray” function. It has a list of known file extensions. You can add “m4v” to that list with it’s proper mimetype.
I added m4v and mp4 in mimetype.php, and not working.
>>You can also zip the “m4v” file and then serve the download as a normal zip file. The customer knows to unzip a file after they download a zipped file.
I’d like to serve m4v/mp4.
>>Why does the path “look funny?”
Downloading 0KB file issue is solved. So, please ignore it.
July 15, 2011 at 3:40 am #34118amin007ParticipantHave you tried “Download Method 6” from the eStore’s download method setup? Method 6 has byte range support.
This post has full details on the various download methods of eStore:
https://support.tipsandtricks-hq.com/forums/topic/wp-estore-download-methods
-
AuthorPosts
- You must be logged in to reply to this topic.