RTCReporting & pancake.apple.com errors

This seems to be a problem with trying to play videos on the simulator. I’ve had this problem for months now, and just ran into it again today when I was trying to play video on my simulator. The solution, while not great, is to use an actual device instead of the simulator for testing … Read more

How can I check if my AVPlayer is buffering?

You can observe the values of your player.currentItem: playerItem.addObserver(self, forKeyPath: “playbackBufferEmpty”, options: .New, context: nil) playerItem.addObserver(self, forKeyPath: “playbackLikelyToKeepUp”, options: .New, context: nil) playerItem.addObserver(self, forKeyPath: “playbackBufferFull”, options: .New, context: nil) then override public func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [String : AnyObject]?, context: UnsafeMutablePointer<Void>) { if object is AVPlayerItem { switch keyPath { case “playbackBufferEmpty”: … Read more

Error=-25300 from AVPlayer

This is an error when system tries to access the keychain item and which is not found. Refer Link for more information @constant errSecItemNotFound The item cannot be found. errSecItemNotFound = -25300 So internally AVFoundation, Speech To Text like frameworks are using Keychain itself. If you are getting this issue in your own codes: Refer: … Read more

avplayer has no sounds when play video

Check your phone is silent mode or not. If it is silent try add code below to viewDidLoad: Swift 2.3 try! AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, withOptions: []) Swift 3 try! AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayback, with: []) Swift 4.2 try! AVAudioSession.sharedInstance().setCategory(.playback, options: []) Or just try! AVAudioSession.sharedInstance().setCategory(.playback)

MPNowPlayingInfoCenter not reacting properly when pausing playback

I’ve the solution! Set only the MPMediaItemPropertyPlaybackDuration 1 – When you start the track, set the property with the total duration of the track: MPNowPlayingInfoCenter *center = [MPNowPlayingInfoCenter defaultCenter]; NSDictionary *songInfo = @{ MPMediaItemPropertyTitle: title, MPMediaItemPropertyArtist: artist MPMediaItemPropertyPlaybackDuration : [NSNumber numberWithFloat:length] }; center.nowPlayingInfo = songInfo; 2 – when you pause the track… do nothing. 3 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)