android : Resize issue using BrightcoveExoPlayerVideoView

Atif Amin Source

enter image description here

how to fix this remaining space from left and right width using BrightcoveExoPlayerVideoView

Xml :

<com.brightcove.player.view.BrightcoveExoPlayerVideoView
    android:id="@+id/brightcove_video_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:layout_gravity="top|bottom|left|right|center_vertical|fill_vertical|center_horizontal|fill_horizontal|center|fill|start|end"
    android:layout_alignParentTop="true"
    android:layout_alignParentBottom="true"
    app:resize_mode="fill"
    />

java :

     mVideoView = (BrightcoveExoPlayerVideoView) view.findViewById(R.id.brightcove_video_view);

    this.mVideoView.add(Video.createVideo(link));
    this.mVideoView.setMediaController((BrightcoveMediaController) null);
    this.mVideoView.setOnPreparedListener(this);
    BrightcoveMediaController.checkTvMode(this.mActivity.getApplicationContext());
    this.mVideoView.getEventEmitter().emit(EventType.ENTER_FULL_SCREEN);
androidandroid-layoutandroid-studioandroid-fragments

Answers

comments powered by Disqus