Iphone / Content-Range header

Author Message

Fabien Scantamburlo

Tuesday 18 May 2010 7:19:05 am

Hi everyone,

I'm trying to add videos (ezbinaryfile datatye) on a iphone siteacess.

I use the <video/> tag and provide the "content/download" url to the src attribute. But it doesn't work.

After many hours of tests, there's my result:

I add in override/file.ini.append.php, add:

[PassThroughSettings]
ContentDisposition[video/mp4]=inline

to accept Content-disposition: inline header.

Now, I need to manage the Content-Range header because Safari/Quicktime return "The Server is not correctly Configured". I read the Safari manual :
http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6

And it seems that's the Content-Range is not returned when I use the "content/download/.." URL. But when I bypass eZPublish, Apache returns the right Content-Range and the video is fine (using var/plain_site/storage/original/video/video.mp4).

Result:

curl --range 0-99 http://vm36/ezmobile/index.php/mobile_nutraingredients/content/downlo ad/97691/1758478/file/video.mp4 -o /var/www/ezmobile/NOGOOD
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.5M  100 15.5M    0     0  54.6M      0 --:--:-- --:--:-- --:--:--  160M

curl --range 0-99 http://vm36/ezmobile/var/plain_site/storage/original/video/e7f15ee0d2 bded3ef13ce60222970250.mp4 -o /var/www/ezmobile/GOOD
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   100    0   100    0     0  71479      0 --:--:-- --:--:-- --:--:--     0

It seems that eZPublish doesn't support partial range.

Is there any way to return the good header as Apache does ?

Thanks,

Fabien.

Fabien Scantamburlo

Friday 21 May 2010 2:36:21 am

The defect has been fixed with the patch : http://issues.ez.no/16838

Cheers,

Fabien.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 00:45:56
Script start
Timing: Jan 30 2025 00:45:56
Module start 'layout'
Timing: Jan 30 2025 00:45:56
Module start 'content'
Timing: Jan 30 2025 00:45:56
Module end 'content'
Timing: Jan 30 2025 00:45:56
Script end

Main resources:

Total runtime0.0152 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1328151.2109
Module start 'layout' 0.00490.0033 739.343836.6484
Module start 'content' 0.00830.0056 775.992290.2656
Module end 'content' 0.01380.0014 866.257833.9922
Script end 0.0152  900.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.0508140.0002
Check MTime0.00117.4291140.0001
Mysql Total
Database connection0.00085.343410.0008
Mysqli_queries0.002617.207030.0009
Looping result0.00000.150410.0000
Template Total0.00116.910.0011
Template load0.00085.507910.0008
Template processing0.00021.413410.0002
Override
Cache load0.00063.909610.0006
General
dbfile0.001610.219880.0002
String conversion0.00000.079940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs