Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
AVPlayerを使用してさまざまなオーディオファイルを再生しています。それらのいくつかは静的リモートmp3であり、いくつかはライブストリームです。オーディオストリームがシーク可能かどうかを判断する方法はありますか?
Apple iOS 開発者ライブラリによると、AVPlayerItem のステータスが AVPlayerItemStatusReadyToPlay と等しくなるまで待ってから、duration プロパティをクエリできます。返された値が kCMTimeIndefined と等しい場合、これはライブ ストリームの再生である可能性があります。その場合、ストリームがシークできないことがわかります。
iOS 開発者ライブラリ - AVPlayer クラス リファレンス