react-native-track-playerのiOSのプレイヤーで一時停止が効かない
1965 ワード
capabilitiesの設定が必要です!
await TrackPlayer.updateOptions({
stopWithApp: true,
capabilities: [
TrackPlayer.CAPABILITY_PLAY,
TrackPlayer.CAPABILITY_PAUSE,
TrackPlayer.CAPABILITY_SKIP_TO_NEXT,
TrackPlayer.CAPABILITY_SKIP_TO_PREVIOUS,
TrackPlayer.CAPABILITY_STOP
],
compactCapabilities: [
TrackPlayer.CAPABILITY_PLAY,
TrackPlayer.CAPABILITY_PAUSE
]
})
example動かして気づいた・・・
参考文献
Author And Source
この問題について(react-native-track-playerのiOSのプレイヤーで一時停止が効かない), 我々は、より多くの情報をここで見つけました https://qiita.com/serinuntius/items/7fade143caf08236ae83著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .