The Tizen implementation of video_player
based on the Tizen Media Player API.
This plugin is NOT supported on TV emulators. This plugin is supported on Galaxy Watch devices and Smart TVs running Tizen 5.5 or above.
This package is not an endorsed implementation of video_player
. Therefore, you have to include video_player_tizen
alongside video_player
as dependencies in your pubspec.yaml
file.
dependencies:
video_player: ^2.9.1
video_player_tizen: ^2.5.2
Then you can import video_player
in your Dart code:
import 'package:video_player/video_player.dart';
For detailed usage, see https://pub.dev/packages/video_player#example.
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 video files located in the internal storage. - The externalstorage privilege (
http://tizen.org/privilege/externalstorage
) is required to play video files located in the external storage. - The internet privilege (
http://tizen.org/privilege/internet
) is required to play any URL from the network.
For detailed information on Tizen privileges, see Tizen Docs: API Privileges.
This plugin is not supported on TV emulators.
The following options are not currently supported.
VideoPlayerOptions.allowBackgroundPlayback
VideoPlayerOptions.mixWithOthers
This plugin has the following limitations.
- The
httpHeaders
option ofVideoPlayerController.networkUrl
only supportCookie
andUser-Agent
. - The
setPlaybackSpeed
method will fail if triggered within the last 3 seconds of the video. - The playback speed will reset to 1.0 when the video is replayed in loop mode.
- The
seekTo
method works only when the playback speed is 1.0, and it sets the video position to the nearest keyframe, not the exact value passed.