Skip to content

Commit

Permalink
[video_player_tizen] Test HW decoder in Tizen 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA committed Oct 24, 2024
1 parent d476029 commit efe4140
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/video_player/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,8 @@ class _BumbleBeeRemoteVideoState extends State<_BumbleBeeRemoteVideo> {
void initState() {
super.initState();
_controller = VideoPlayerController.networkUrl(
Uri.parse(
'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'),
closedCaptionFile: _loadCaptions(),
Uri.parse('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'),
// closedCaptionFile: _loadCaptions(),
videoPlayerOptions: VideoPlayerOptions(mixWithOthers: true),
);

Expand Down
2 changes: 1 addition & 1 deletion packages/video_player/example/tizen/tizen-manifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.tizen.video_player_tizen_example" version="1.0.0" api-version="6.0" xmlns="http://tizen.org/ns/packages">
<manifest package="org.tizen.video_player_tizen_example" version="1.0.0" api-version="8.0" xmlns="http://tizen.org/ns/packages">
<profile name="common"/>
<ui-application appid="org.tizen.video_player_tizen_example" exec="Runner.dll" type="dotnet" multiple="false" taskmanage="true" nodisplay="false">
<label>video_player_tizen_example</label>
Expand Down
2 changes: 2 additions & 0 deletions packages/video_player/tizen/src/video_player.cc
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ VideoPlayer::VideoPlayer(flutter::PluginRegistrar *plugin_registrar,
get_error_message(ret));
}

player_set_video_codec_type(player_, PLAYER_CODEC_TYPE_HW);

ret = player_prepare_async(player_, OnPrepared, this);
if (ret != PLAYER_ERROR_NONE) {
player_destroy(player_);
Expand Down

0 comments on commit efe4140

Please sign in to comment.