AVPlayerLayer not rendering offline HLS video in iOS 11 - ios

I am facing a weird issue in iOS 11. I have an App where I am playing HLS video in AVPlayer. In case of offline HLS video after starting video audio is playing but video content is not getting rendered on AVPlayerLayer. This issue is occurring only in iOS 11 and above. It is working perfectly in iOS 10. But at the same time online HLS contents are playing perfectly in iOS 11 and iOS 10.
This seems to be a bug in iOS 11 as I checked it in Apple's sample code.
I run sample code in iOS 11 device to check.
If it's not a bug in iOS 11 then how to solve this.

This issue is solved now. It was bug in iOS 11.0 but now it's fixed in iOS 11.2.
I used Xcode version 9.2 latest iOS SDK version 11.2

Related

WebRTC iOS 13 Simulator - Red Screen H264 Decoding

My problem is that H264 WebRTC Video is playing on iOS 13 in real device as expected.
But it does not play in iOS 13 simulator. It shows red screen as shown in the image.
Audio is playing correctly. Logs also show that decoding of frames are succesful at correct rate.
GoogleWebRTC version is 1.1.29229 from cocoapods
I got the same issue in our app.
It seems to be a bug on the WebRTC side.
I was able to reproduce it in their test app (AppRTCMobile), and posted a bug report about it here:
https://bugs.chromium.org/p/webrtc/issues/detail?id=11012
Please star it there :)
In the meantime it seems that forcing the codec to VP8 should fix the problem on the simulator (as a temporary workaround).

Sound Plays on iPhone but not in simulator

I have an app that works completely fine on several different iPhones(5s,6,6s) with different iOS versions but doesn't play sound on simulator(simulator plays sound on safari but not in app).I don't think i have any coding issue such an initialize or such things because it works fine in physical device.
please help me out.
I've used AVAudioPlayer.
I've checked out all of the answers in the following link but it didn't work
for me. Sound not working in iPhone Simulator?
I use Xcode Version 9.4.1 and iOS 11.4 on simulator

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.

Crackling noise on playback on iOS9 and 9.1 (libPD + cocos2d + xcode 7.1)

I'm writing an app using cocos2d and libpd on iOS. After updating XCode to 7.1 I had to do a workaround regarding CG shaders not setting up correctly, as per: Coco2d 2.1 and Xcode 7 iOS 9 crash ccShader
Unfortunately I started getting crackling noise on playback on iOS9 and 9.1 devices. Pre iOS 9 don't display this problem. I'm wondering whether it has something to do with the shaders workaround.
anybody with the same issue?
It turned out that crackling has nothing to do with iOS9 or XCode 7. The object initialising libpd has been initialised twice causing the audio engine to have two active copies.

AudioServicesCreateSystemSoundID causing volume does not change using physical volume control buttons on iPad

I am in urgent need of the the geeks present on this forum regarding the iOS SDK questions.I have an app in which i hav to play multiple sounds simultaneously.I started with AVAudioplayer class but i realise that it was getting hung on iPhone 3gs and older iOS versions so i moved to AudioServicesCreateSystemSoundID((CFURLRef)afUrl,&soundID) from the tips of one of my friend.Now the app plays sound seamlessly on both iPhone and iPad .I have an iPhone 4S with iOS 5.1.1 and i have updated the Ipad 2 from iOS 5.1.1 to latest iOS 6.0 stable.Now the problem is that the app runs fine on iPhone but on iPad a strange issue comeing up.On iPad sound is played but the volume does not change with Physical volume change button effect.I have build the app using Xcode 4.5 GM with iOS 6.0 and have set the deployment target to iOS 5.0 .
Please help me out as i am getting crazy on this strange behavior on Ipad only ..I hope i would definitely get the perfect solution here from you guys !!
Thanks in Advance !!!!

Resources