diff --git a/en/react-native-sound-player.md b/en/react-native-sound-player.md index fd9d5faed099b163928116d52e59bc1190916e96..a839b6186cae577a985b2d6259925bdaf97a92f4 100644 --- a/en/react-native-sound-player.md +++ b/en/react-native-sound-player.md @@ -261,9 +261,9 @@ Check the release version information in the release address of the third-party | loadUrlAsync | Asynchronous Load the audio from the given `url` without playing it | function | no | | yes | | playAssetAsync | Asynchronous Play the audio from an asset, to get the asset number use `require('./assets/tone.mp3')`. | function | no | | yes | | loadAssetAsync | Asynchronous Load the audio from an asset like above but without playing it. | function | no | | yes | -| playAsync | Asynchronous Play the loaded sound file. This function is the same as `resume`. | function | no | | yes | +| playAsync | Asynchronous Play the loaded sound file. This function is the same as `resumeAsync`. | function | no | | yes | | pauseAsync | Asynchronous Pause the currently playing file. | function | no | | yes | -| resumeAsync | Asynchronous Resume from pause and continue playing the same file. This function is the same as `play`. | function | no | | yes | +| resumeAsync | Asynchronous Resume from pause and continue playing the same file. This function is the same as `playAsync`. | function | no | | yes | | stopAsync | Asynchronous Stop playing. | function | no | | yes | | playSoundFile | Play the sound file named `fileName` with file type `fileType`. | function | no | Android/iOS | no | | loadSoundFile | Load the sound file named `fileName` with file type `fileType`, without playing it. | function | no | Android/iOS | no | @@ -286,8 +286,8 @@ Check the release version information in the release address of the third-party | playSoundFileWithDelay | Only available on iOS. Play the sound file named `fileName` with file type `fileType` after a a delay of `delay` in *_seconds_* from the current device time. | function | no | iOS | no | | setSpeaker | Overwrite default audio output to speaker. | function | no | iOS | no | | setMixAudio | If you set this option, your audio will be mixed with audio playing in background apps, such as the Music app. | function | no | iOS | no | -| setMixAudioAsync | Asynchronous method.If you set this option, your audio will be mixed with audio playing in background apps, such as the Music app. | function | no | iOS | yes | -| setSpeakerAsync | Asynchronous method. Overwrite default audio output to speaker. | function | no | iOS | yes | +| setMixAudioAsync | Asynchronous method.If you set this option, your audio will be mixed with audio playing in background apps, such as the Music app. | function | no | | yes | +| setSpeakerAsync | Asynchronous method. Overwrite default audio output to speaker. | function | no | | yes | ## 5. Known Issues diff --git a/zh-cn/react-native-sound-player.md b/zh-cn/react-native-sound-player.md index 2dde46cecaec8da39559e04c8629be4189651c8f..f5cdab8c9d27fa74244df02904151c42f100e46b 100644 --- a/zh-cn/react-native-sound-player.md +++ b/zh-cn/react-native-sound-player.md @@ -260,9 +260,9 @@ ohpm install | loadUrlAsync | Asynchronous Load the audio from the given `url` without playing it | function | no | | yes | | playAssetAsync | Asynchronous Play the audio from an asset, to get the asset number use `require('./assets/tone.mp3')`. | function | no | | yes | | loadAssetAsync | Asynchronous Load the audio from an asset like above but without playing it. | function | no | | yes | -| playAsync | Asynchronous Play the loaded sound file. This function is the same as `resume`. | function | no | | yes | +| playAsync | Asynchronous Play the loaded sound file. This function is the same as `resumeAsync`. | function | no | | yes | | pauseAsync | Asynchronous Pause the currently playing file. | function | no | | yes | -| resumeAsync | Asynchronous Resume from pause and continue playing the same file. This function is the same as `play`. | function | no | | yes | +| resumeAsync | Asynchronous Resume from pause and continue playing the same file. This function is the same as `playAsync`. | function | no | | yes | | stopAsync | Asynchronous Stop playing. | function | no | | yes | | playSoundFile | Play the sound file named `fileName` with file type `fileType`. | function | no | Android/iOS | no | | loadSoundFile | Load the sound file named `fileName` with file type `fileType`, without playing it. | function | no | Android/iOS | no | @@ -285,8 +285,8 @@ ohpm install | playSoundFileWithDelay | Only available on iOS. Play the sound file named `fileName` with file type `fileType` after a a delay of `delay` in *_seconds_* from the current device time. | function | no | iOS | no | | setSpeaker | Overwrite default audio output to speaker. | function | no | iOS | no | | setMixAudio | If you set this option, your audio will be mixed with audio playing in background apps, such as the Music app. | function | no | iOS | no | -| setMixAudioAsync | Asynchronous method.If you set this option, your audio will be mixed with audio playing in background apps, such as the Music app. | function | no | iOS | yes | -| setSpeakerAsync | Asynchronous method. Overwrite default audio output to speaker. | function | no | iOS | yes | +| setMixAudioAsync | Asynchronous method.If you set this option, your audio will be mixed with audio playing in background apps, such as the Music app. | function | no | | yes | +| setSpeakerAsync | Asynchronous method. Overwrite default audio output to speaker. | function | no | | yes | ## 5. 遗留问题 - [X] 因系统侧暂未提供AVPlayer播放器生成和控制的同步方法,库依赖AVPlayer实现的同步功能暂未实现。需系统侧提供后补充。 问题:[issue#6](https://github.com/react-native-oh-library/react-native-sound-player/issues/6)。