Created
April 8, 2019 10:52
-
-
Save apptects/9156b3f3893fe2d5c849fc659ceedef8 to your computer and use it in GitHub Desktop.
Play audio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| playTrack(String url) async { | |
| var previewFilename = await _audioDownloader.downloadUrl(url); | |
| await _audioPlayer.play(previewFilename, isLocal: true); | |
| store.dispatch(PlayAudioUrlAction(url)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment