Hello, I’m implementing the Bitmovin player in a Flutter plugin, so far the player runs normally. But controls and subtitles are lagging behind the image.
See:
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.bitmovin.player.PlayerView
android:id="@+id/playerView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
And the function to call player:
protected void initializePlayerManual(){
Player player = Player.create(mContext);
// activity_main
rootView = (RelativeLayout) LayoutInflater.from(mContext).inflate(R.layout.activity_main, null);
// PlayerView
PlayerView playerView = rootView.findViewById(R.id.playerView);
playerView.setPlayer(player);
// set source
SourceConfig source = new SourceConfig("https://bitdash-a.akamaihd.net/content/sintel/sintel.mpd", SourceType.Dash);
// add external subtitle
source.addSubtitleTrack(new SubtitleTrack("https://universe-files.dacast.com/322643c2-7162-ae14-25ae-a8b926836ddb", "text/vtt", "pt-br", "br1", true, "pt-br"));
player.load(source);
}
Can anyone tell me which way I have to go?