Last post Feb 24, 2020 03:10 PM by PatriceSc
Feb 06, 2020 01:16 PM|Nila1234|LINK
I have an web application hosted in Windows server 2008 R2 to play some videos. It is working fine in desktop browsers as well as IOS devices (iPhone and Ipad).
But recently we have migrated the application to Windows server 2012 R2, after that videos are not playing in IOS devices, still playing in desktop browsers (chrome/IE).
To analyse the issue , created simple html page with Videos element as shown below and tried in both servers.
Behavior is same. ie, we are able to play the videos in Iphone/Ipad from Windows server 2008 R2 (IIS 7.5) but not from Windows server 2012 R2 ( IIS 8.5)
<video controls autoplay="autoplay">
Thanks in Advance
Feb 06, 2020 03:01 PM|PatriceSc|LINK
Are you testing the SAME video file on both? AFAIK mp4 is quite generic and depending on the underlying exact encoding one file could work while another could fail.
I would also check which components were installed. I would also trace events such as
https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Media_events (starting with the "error"event) to see if I can get some more details from the browser about what happens).
Edit: what if you test http://camendesign.com/code/video_for_everybody/test.html ?
Edit 2: could it be you had something such as https://stackoverflow.com/questions/7666705/how-to-enable-byte-range-http-requests-in-iis on the previous
Feb 06, 2020 04:43 PM|Nila1234|LINK
Thanks for your replay
Yes, same video only. Traced the error and the Error code 4 MEDIA_ERR_SRC_NOT_SUPPORTED.
I have seen some posts related this issue (ie, MP4 not playing in Iphone) but didn't see any clear answer.
Not sure any configuration is missing in IIS 8.5 /WS 2012 R2
Feb 24, 2020 02:33 PM|hayvtv|LINK
In order for the video to play on an iOS device, you must change the file extension, iOS does not support mp4 files
Feb 24, 2020 03:10 PM|PatriceSc|LINK
According to https://stackoverflow.com/questions/3285529/iphone-cannot-play-mp4-h-264-video-file/4841713 it seems it should work assuming the encoded
does match some requirements. I woluld use maybe VLC to see what is using this file.
So for now you are 100% sure the ONLY difference is the server on which is hosted the video file ?
Edit: according to https://stackoverflow.com/questions/27712778/video-plays-in-other-browsers-but-not-safari support for byte range request is required
for playing MP4 using iOS.
Use maybe F12 Console to see if your server returns an "Accept-Ranges" http header. If not it may need to be configured (gave a quick look without any conclusive for now).