Why isn't the iOS browser playing audio from this MP4 video? - ios

I have 100+ videos encoded in H.264 video with MP3 audio for a HTML5-video project, but the Audio won't work on iOS. (No sound, but working video). It works perfectly on Android. They all have the same encoding setup, but here's one of the videos
Googled for several days and can't seem to find any known problems with iOS and MP3-audio. What's wrong?

Check to see if the ringer of hardware device is turned off. If you flip the ringer off and on and the audio turns off and on, then that is the cause.

Related

Html audio player audio stops in the middle

I am using simple html audio player here:
<source src="TestFile.mp3" type="audio/mpeg" />
Works fine in windows, mac safari. Also works fine in IPhone5s.
But works partially in higher version of iPhone device (iPhone 7). Audio stops in the middle of the audio.
For Example if audio duration is 1.45 min. Audio stops in 1.01 min.
Please share any other suggestion.
Thanks in advance!
We got the answer from after lot of surfing in online for the issue related to audio player not playing the audio completely
HTML5 <audio> Safari live broadcast vs not
We have applied the accepted and it seems to be working fine

html5 video playback on iOS (iPhoneX)

Hey everyone,
we have a serious issue with a website where we have an html5 video on the landingpage. It's a muted autoplay 5second loop that is supposed to play as a background-video on the site.
Now … we have two persons testing it, with the exact same device.
iPhoneX with Google Chrome (caches cleared and tested on both devices with Incognito and without)
On my phone the autplay works just fine. Video plays in the background.
On my collegues iPhoneX (same build, bought at the same date, same iOS version, same Browser (caches cleared)) it does not play automatically. He get's the play-icon.
Any idea why?
Thanks,
Matt
For everyone looking into that. The reason is iOS Low-Power-Mode. in low power mode the videos do not automatically play.

HTML5 video doesn't play on iOS 10.2 on iPad 4th generation

I met a weird situation. Our iOS app embedded a video in a simple HTML 5 page, and we load it using javascript and UIWebView. It has been working fine until the upgrade of iOS 10.2, and it works fine on all other models of iPads but iPad 4th generation on 10.2. The video just cannot play. The 'play' event never fires. I did some preliminary research. I know iPad 4 is a 32-bit machine. I'm not sure if this has something to do with the weird behavior.
I don't know if this might be a relevant answer, but I had a similar situation when trying to play a video using AVPlayer.
It worked perfectly fine previously on iOS 8 and iOS 9, upgrade to iOS 10.2 and it worked on the simulator but not on devices.
Then I came across this link
h.264 MP4 Playable on iOS 9 No Longer Playable on iOS 10
From reading further, I see the following statements:
There has been a changed in how iOS validates video files.
In our case, we were encoding h.264 video with mp3 audio codec.
iOS 9 had no problem with the video files. iOS 10 does not like them and gave this error when trying to save to the camera roll "Sorry, this type of video cannot be saved to this device"
To fix my error, I just opened the video in Quicktime Player. I then went to File -> Export -> 1080p and then when I used this version of the video, it played in my app using iOS 10.2
Maybe your situation is different, but this helped in my experience.

why is video volume low using MPMoviePlayerController on iPhone

My app uses MPMoviePlayerController to record videos and play them back. It works fine on iPad, but the volume is very low on iPhone. I tried setting up a AVAudioSession as well and setting the path to speaker, but that doesn't seem to help. How can I fix this? I am running iOS 7 devices

iPad stopped streaming quicktime movie clips

I wasn't sure where to exactly ask this question, so here seemed most appropriate i guess. Something weird happened, quicktime movieclips suddenly stopped streaming in Safari on my Ipad, if i try to load one in the adres bar now i just get a crossed out video icon. I became aware of this because i tried streaming a video thats in an app i developed and all of a sudden it didn't work anymore whereas it had been working perfectly fine before... So i figured trying streaming them in Safari to see if that would work but well... It didn't. This is one of the files http://www.royniginal.nl/newswall/tiles/bioGrid/video/vid1.mov , can someone confirm maybe whether or not this is streaming on an iPad (in safari), like i said it has been working fine on my Ipad before...
No this does not stream, which suggests it is a codec issue. I had this problem with developing websites. If you have access to this video to change it, the best format is MP4 which is the only safari supported video format according to W3C schools HTML5 section. This should fix the problem.

Resources