Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1708] VideoPlayer audio session not honoring application audio session

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T03:00:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M02
ComponentsiOS
Labelsaudio, background, defect, ios, iphone, release-1.6.0, video
Reporterdhpublic (at gmail)
AssigneeKevin Whinnery
Created2011-04-15T03:00:06.000+0000
Updated2017-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.

Comments

  1. dhpublic (at gmail) 2011-04-15

    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?

  2. Stephen Tramer 2011-04-15

    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.

  3. Stephen Tramer 2011-04-15

    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.

  4. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source