The Tizen implementation of audioplayers
.
This package is not an endorsed implementation of audioplayers
. Therefore, you have to include audioplayers_tizen
alongside audioplayers
as dependencies in your pubspec.yaml
file.
dependencies:
audioplayers: ^1.0.1
audioplayers_tizen: ^2.0.0
Then you can import audioplayers
in your Dart code:
import 'package:audioplayers/audioplayers.dart';
For detailed usage, see https://pub.dev/packages/audioplayers#usage.
To use this plugin in a Tizen application, you may need to declare the following privileges in your tizen-manifest.xml
file.
<privileges>
<privilege>http://tizen.org/privilege/mediastorage</privilege>
<privilege>http://tizen.org/privilege/externalstorage</privilege>
<privilege>http://tizen.org/privilege/internet</privilege>
</privileges>
- The mediastorage privilege (
http://tizen.org/privilege/mediastorage
) is required to play audio files located in the internal storage. - The externalstorage privilege (
http://tizen.org/privilege/externalstorage
) is required to play audio files located in the external storage. - The internet privilege (
http://tizen.org/privilege/internet
) is required to play any URLs from network.
For detailed information on Tizen privileges, see Tizen Docs: API Privileges.
-
AudioPlayer.play
(AudioContext
not supported) -
AudioPlayer.setAudioContext
(not supported) -
AudioPlayer.setPlayerMode
-
AudioPlayer.pause
-
AudioPlayer.stop
-
AudioPlayer.resume
-
AudioPlayer.release
-
AudioPlayer.seek
-
AudioPlayer.setVolume
-
AudioPlayer.setReleaseMode
-
AudioPlayer.setPlaybackRate
-
AudioPlayer.setSource
-
AudioPlayer.setSourceUrl
-
AudioPlayer.setSourceDeviceFile
-
AudioPlayer.setSourceAsset
-
AudioPlayer.setSourceBytes
-
AudioPlayer.getDuration
-
AudioPlayer.getCurrentPosition
-
AudioPlayer.dispose
-
AudioPlayer.global.changeLogLevel
(not supported) -
AudioPlayer.global.setGlobalAudioContext
(not supported)
onPlayerComplete
event will not be fired whenReleaseMode
is set to loop which differs from the behavior specified in the documentation. And playback rate will reset to 1.0 when audio is replayed.setVolume
will have no effect on TV devices.