【发布时间】:2018-11-05 10:34:03
【问题描述】:
我尝试使用此代码在我的应用程序中添加音量调节,但鉴于此警告无法正常工作。
@property (nonatomic, strong) MPVolumeView *volumeView;
_volumeView = [ [MPVolumeView alloc] init];
[_volumeView setShowsVolumeSlider:YES];
[_volumeView setShowsRouteButton:YES];
[_volumeView sizeToFit];
[self.view addSubview:_volumeView];
但是给出了这个警告
2018-11-05 15:55:14.898262+0530 BestBubby[7379:198945] [MediaRemote] [AVOutputContext] WARNING: AVF context unavailable for +[MRAVOutputContext sharedAudioPresentationContext]_block_invoke
2018-11-05 15:55:14.898488+0530 BestBubby[7379:198945] [MediaRemote] [AVOutputContext] WARNING: AVF context unavailable for +[MRAVOutputContext createOutputContextWithUniqueIdentifier:]
【问题讨论】:
-
您所说的“无法正常工作”是什么意思?你是在真机上测试还是在模拟器上测试?
标签: ios objective-c audio