Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1918

iOS 7 Background mode "audio" controller does not work

    Details

      Description

      When your app goes background playing a song, the control center "pause" button won't actually pause it.

      Tested with iOS6 and iOS7 device, not sure if it's related do 3.1.3 or argeting iOS7.

      add: info.plist

      <key>UIBackgroundModes</key><array><string>audio</string></array>
      

      Player code:

      var videoPlayer = Ti.Media.createVideoPlayer({
          backgroundColor:'#fff', 
          autoplay:true,
          url:'mySong.mp3'
      })
      Ti.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAYBACK;
      videoPlayer.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAYBACK;
      videoPlayer.play();
      

        Attachments

          Activity

            People

            • Assignee:
              mrahman Mostafizur Rahman
              Reporter:
              cleison.ezoom Ezoom Agency
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration