Player over controls on Android

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?

1 Like

Which flutter version are you using?

I think I got this on 3.0 and seems fixed on 3.3

3 Likes

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.