I have my own ViewController where I use AVAudioRecorder and AVAudioPlayer to record and play sound.
Both recorder and player is set to nil and stopped when leaving my ViewController, not even sure if this is necessary.
Then in another ViewController I try to play that sound from before, which is stored at Amazon with the following:
let vc = RTSMediaPlayerViewController(contentURL: url);
self.presentViewController(vc, animated: true, completion: nil);
This works fine if I haven't visited the ViewController with the AVAudioRecorder and AVAudioPlayer first.
But if I record a sound in my controller, sends it to Amazon, leave my controller, open another controller and try to open the URL with your RTSMediaPlayerViewController it doesn't work.
It shows the correct time, so if the file is 10 seconds your controller shows the 00.00 to -00:10, but it wont play the sound.
If I recompile my app/forcequit and I go straight to the controller with your RTSMediaPlayerViewController it works fine, so is there something I should release in my controller containing the AVAudioRecorder and AVAudioPlayer?
My log gives me the following:
[RTSMediaPlayer] Invalid Transition: An attempt was made to fire the 'Pause' event while in the 'Paused' state, but the event can only be fired from the following states: Ready, Playing, Seeking
When I click play.
AVPlayer 0x14888af80 deallocated while a pending preroll is still in progress; leaking completion handler. Use -cancelPendingPrerolls to deallocate an AVPlayer safely while a preroll is still pending.
Sometimes when i leave the RTSMediaPlayerViewController.
Hi there.
I have my own ViewController where I use AVAudioRecorder and AVAudioPlayer to record and play sound. Both recorder and player is set to nil and stopped when leaving my ViewController, not even sure if this is necessary.
Then in another ViewController I try to play that sound from before, which is stored at Amazon with the following:
This works fine if I haven't visited the ViewController with the AVAudioRecorder and AVAudioPlayer first. But if I record a sound in my controller, sends it to Amazon, leave my controller, open another controller and try to open the URL with your RTSMediaPlayerViewController it doesn't work.
It shows the correct time, so if the file is 10 seconds your controller shows the 00.00 to -00:10, but it wont play the sound.
If I recompile my app/forcequit and I go straight to the controller with your RTSMediaPlayerViewController it works fine, so is there something I should release in my controller containing the AVAudioRecorder and AVAudioPlayer?
My log gives me the following:
[RTSMediaPlayer] Invalid Transition: An attempt was made to fire the 'Pause' event while in the 'Paused' state, but the event can only be fired from the following states: Ready, Playing, Seeking
AVPlayer 0x14888af80 deallocated while a pending preroll is still in progress; leaking completion handler. Use -cancelPendingPrerolls to deallocate an AVPlayer safely while a preroll is still pending.