Accessing AVPlayer's volume on iOS 6 crashes the app

Discussion in 'iOS Programming' started by MacMan988, Dec 22, 2013.

  1. MacMan988 macrumors 6502a

    Joined:
    Jul 7, 2012
    #1
    Hi, I'm trying to make an existing iOS 7 app compatible with the iOS 6.1. The app is using AVPlayer to play a streamed content. I've read that the AVPlayer's volume property is only available in iOS 7 onwards. Trying to change the volume (through a UISlider) causes the app to crash.

    Is there any workaround to change volume of an AVPlayer instance?
     
  2. Duncan C, Dec 22, 2013
    Last edited: Dec 22, 2013

    Duncan C macrumors 6502a

    Duncan C

    Joined:
    Jan 21, 2008
    Location:
    Northern Virginia
    #2
    As you say, the docs indicate that the volume property on AVPlayer is only available in iOS 7.

    My guess is that if you want to control the volume of your streamed content you'll need to use a different API.

    It might be helpful if you posted your code (using code tags of course...)
     

Share This Page