IPhone video akar için Web servisi

0 Cevap php

I have to implement service which should stream a video content to iPhone application. My service is implemented in PHP:

header("Content-Type: video/mp4");
header('Content-Length: '.$result['size']);
echo $result['data']; 

sonuç video dosyasının içeriğini ve boyutunu içeren bir dizi olduğu.

When I open it with browser there isn't problem (I have quick time and the video has played). However the application cannot open it, but it works with local files (sorry i don't have currently the code of the mobile aplication). When I have opend it in safary from the iPhone it says that the file cannot be downloaded.

Ben bazı başlıkları eksik görünüyor.

0 Cevap