AudioStreamer setDelegate 在 iPhone 中发出警告并崩溃
我正在使用 AudioStreamer 类播放音频流。
这三种方法发出警告,AudioStreamer 可能不会响应这些方法 并用第一种方法进行狂欢。
[streamer setDelegate:self];
[streamer setDidUpdateMetaDataSelector:@selector(metaDataUpdated:)];
[streamer setDidErrorSelector:@selector(streamError)]
有人可以帮我吗...
谢谢。
i am playing an audiostreamer using AudioStreamer class.
these three mothods are giving warnings that AudioStreamer may not respond to these methods
and carshing at this first method.
[streamer setDelegate:self];
[streamer setDidUpdateMetaDataSelector:@selector(metaDataUpdated:)];
[streamer setDidErrorSelector:@selector(streamError)]
can anybody help me out...
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你的程序崩溃时,你看到什么异常?如果它是“不响应选择器”异常,并且您收到该类不响应这些方法的警告,那么这是该类实际上不响应这些选择器的铁证。
AudioStreamer 类是什么?我在这里找到了一个:
https://github.com/mattgallagher/AudioStreamer
如果那是你的指的是,看起来它没有响应这些选择器。
也许您可以向我们提供更多有关您正在尝试做的事情的信息。
编辑:AudioStreamer 似乎用于响应这些选择器,但此后发生了变化。您可能指的是过时的示例代码或文档
What exception are you seeing when your program crashes? If it is a 'does not respond to selector' exception and you are getting warnings that the class does not respond to those methods, this is damning evidence that the class doesn't actually respond to those selectors.
What is this AudioStreamer class? I found one here:
https://github.com/mattgallagher/AudioStreamer
and if that is the one you are referring to, it looks likes it does not respond to those selectors.
Maybe you could give us more information about what you are trying to do.
EDIT: It appears AudioStreamer used to respond to those selectors, but has changed since. You might be referring to out-of-date sample code or documentation