Jump to content

Ios And The Html5 <Video> Tag


Recommended Posts

Hi,

 

Through a proxy server, all videos are blocked by denying all mime types starting with video/. I have found that I can rename a video to .docx and then when I download it I can change the extension again, allowing me to watch the video. I would like to have it play in an HTML5 video player instead of having to download it. I have used the following code to do this:

 

<video width='320' height='240' controls>
<source src='video.docx' type='video/mp4'>
Your browser does not support the video tag.
</video>

 

Which works fine on Safari on my computer, however when I try to play it (same file) on iOS I get a broken play icon. Note that when I use a video file with the correct mime type and extension (server side) I can get it to play on iOS. Since I cannot change the mime type back to a video (blocked) how can I get it to play on iOS? I am jailbroken and using iFile I can download the file manually and rename it, which will allow it to play, but it is much faster to just have it play in the browser window.

 

Thanks!

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...