Я думаю, вы должны добавить этот код в VDLPlaybackViewController.h
:
@interface VDLPlaybackViewController: UIViewController <AVAudioSessionDelegate>
Но AVAudioSessionDelegate
осуждался из iOS6
:
/* The delegate property is deprecated. Instead, you should register for the NSNotifications named below. */
/* For example:
[[NSNotificationCenter defaultCenter] addObserver: myObject
selector: @selector(handleInterruption:)
name: AVAudioSessionInterruptionNotification
object: [AVAudioSession sharedInstance]];
*/
@property(assign) id<AVAudioSessionDelegate> delegate NS_DEPRECATED_IOS(4_0, 6_0);
Попробуйте Folow это post для инициализации параметров звука.
Не могли бы вы опубликовать фрагмент кода? –