Audio problem after using MPMoviePlayerController in Corona Enterprise

Hi,

We’re building an app on IOS with a custom videoplayer (with an overlay). When we use this videoplayer (based on MPMoviePlayerController) everything works fine. But after playing a video, the audio of our app disappears. The only audio we hear is the audio of the videoplayer. The rest is muted…
Kind regards,
Arthur, OCG Studios [import]uid: 197820 topic_id: 35386 reply_id: 335386[/import]

When I call audio.findFreeChannel() after using the custom MoviePlayer it always returns 0. So somehow all audio channels are being occupied by the MPMoviePlayerController. Is ther a way to release these channels? [import]uid: 197820 topic_id: 35386 reply_id: 140631[/import]

Can you duplicate the issue if you create a non-enterprise app using the media.playVideo API (which is based on MPMoviePlayerController) and try to play audio afterwards? That would help to isolate if it’s in our core iOS code. If so, please submit a bug report with the test project.

Thanks,
Tom [import]uid: 7559 topic_id: 35386 reply_id: 140703[/import]

Hi Tom,
Thanks for the reply.
When I call media.playVideo() the problem doesn’t occur. So the problem isn’t in the core iOS code. Unfortunatly I need a videoplayer with a custom size and overlay, so I can’t use the media.playVideo API.
Do you have any idea what the problem could be? I’m kinda out of ideas myself… I think that somehow the audiochannels aren’t being freed after playing a movie.
– update:
when I reproduce my error by starting my videoplayer, the sound is gone. When I call media.playVideo after the error occured, the sound is back! How is the MPMoviePlayerController handled in the core iOS API? I’m probably doinng something wrong…

thanks,
Arhtur [import]uid: 197820 topic_id: 35386 reply_id: 140736[/import]

When I call audio.findFreeChannel() after using the custom MoviePlayer it always returns 0. So somehow all audio channels are being occupied by the MPMoviePlayerController. Is ther a way to release these channels? [import]uid: 197820 topic_id: 35386 reply_id: 140631[/import]

Can you duplicate the issue if you create a non-enterprise app using the media.playVideo API (which is based on MPMoviePlayerController) and try to play audio afterwards? That would help to isolate if it’s in our core iOS code. If so, please submit a bug report with the test project.

Thanks,
Tom [import]uid: 7559 topic_id: 35386 reply_id: 140703[/import]

Hi Tom,
Thanks for the reply.
When I call media.playVideo() the problem doesn’t occur. So the problem isn’t in the core iOS code. Unfortunatly I need a videoplayer with a custom size and overlay, so I can’t use the media.playVideo API.
Do you have any idea what the problem could be? I’m kinda out of ideas myself… I think that somehow the audiochannels aren’t being freed after playing a movie.
– update:
when I reproduce my error by starting my videoplayer, the sound is gone. When I call media.playVideo after the error occured, the sound is back! How is the MPMoviePlayerController handled in the core iOS API? I’m probably doinng something wrong…

thanks,
Arhtur [import]uid: 197820 topic_id: 35386 reply_id: 140736[/import]

Does anyone have an idea? I’m really stuck on this issue. [import]uid: 197820 topic_id: 35386 reply_id: 141853[/import]

The only thing I see that’s noteworthy in our implementation is that when the video is done, we call the ‘dismissMoviePlayerViewControllerAnimated’ selector on the MPMoviePlayerViewController. [import]uid: 26 topic_id: 35386 reply_id: 141948[/import]

I finally found the solution to the problem!

The app we’re building has an UIImagePickerController to record video’s. We use the MPMoviePlayerViewController to preview the recorded video’s. The problem of the disappearing audio was caused by switching between the UIImagePickerController and the MPMoviePlayerViewController. When I use a delay of 500 ms between the switch, the problem disappears.

[import]uid: 197820 topic_id: 35386 reply_id: 142471[/import]

Does anyone have an idea? I’m really stuck on this issue. [import]uid: 197820 topic_id: 35386 reply_id: 141853[/import]

The only thing I see that’s noteworthy in our implementation is that when the video is done, we call the ‘dismissMoviePlayerViewControllerAnimated’ selector on the MPMoviePlayerViewController. [import]uid: 26 topic_id: 35386 reply_id: 141948[/import]

I finally found the solution to the problem!

The app we’re building has an UIImagePickerController to record video’s. We use the MPMoviePlayerViewController to preview the recorded video’s. The problem of the disappearing audio was caused by switching between the UIImagePickerController and the MPMoviePlayerViewController. When I use a delay of 500 ms between the switch, the problem disappears.

[import]uid: 197820 topic_id: 35386 reply_id: 142471[/import]