[TIMOB-1708] VideoPlayer audio session not honoring application audio session
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T03:00:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M02 |
Components | iOS |
Labels | audio, background, defect, ios, iphone, release-1.6.0, video |
Reporter | dhpublic (at gmail) |
Assignee | Kevin Whinnery |
Created | 2011-04-15T03:00:06.000+0000 |
Updated | 2017-03-02T19:32:31.000+0000 |
Description
The VideoPlayer doesn't honor the application's audio session mode.
This can be tested with the KitchenSink app by setting the defaultAudioSessionMode to AUDIO_SESSION_MODE_AMBIENT on one of the movie examples (I just copied the line from the sound/local example). Once the movie starts playing the iPod audio fades out.
I wanted to update this with my latest attempt. Using iOS 4.1 and Titanium SDK 1.4.0, this still occurs. Add the line
Titanium.Media.defaultAudioSessionMode = Titanium.Media.AUDIO_SESSION_MODE_AMBIENT;
to the top of 'examples\movie_embed.js' in the KitchenSink 4.0 app. Once the movie starts playing the iPod audio fades out.
Am I missing something, or shouldn't the audio from both be mixed?
Feature request for useApplicationAudioSession property access. We do not autoenable background audio at this time; you will need to manually edit your Info.plist file generated in the build process to include the setting for background audio.
Background mode specification will go into Titanium in the near future. Please watch ticket #2632 for updates.
The requested feature already exists. Please use the 'useApplicationAudioSession' property on video player objects. This feature is covered in documentation if you need further details.
Closed as invalid.