
With those values, determine the aspect ratio.Get the Event.VIDEO_WIDTH and Event.VIDEO_HEIGHT.Listen for the EventType.VIDEO_SIZE_KNOWN event.The goal is for the height set to be close to the calculated height. To minimize the initial flicker, try setting the the layout_height to a specific value (e.g.You may experience an initial flicker as explained in the note above.Īnother way to control the Video View is to set the size programmatically.Set the BrightcoveVideoView layout-height to wrap_content.If you see black margins around your video, you can try setting the BrightcoveVideoView layout-height. When resizing the container, you may see an initial flicker. Then, the BaseVideoView will wrap the SurfaceView. Because the Video height is initially unknown, it will match its parent view size (the whole screen in the BasicSampleApp) until the VIDEO_SIZE_KNOWN event is triggered. You can do this by resizing the container ( BaseVideoView/ FrameLayout). You may want to develop an app that sets the Video View to fit the entire device screen in portrait mode. Resizing the container ( BaseVideoView/ FrameLayout).There are two ways to change the Video View: To do this, you can listen for the EventType.VIDEO_SIZE_KNOWN event, do some math and set the display values. You can resize/stretch the inner Video View ( SurfaceView/ TextureView) to fill the BrightcoveVideoView ( FrameLayout). OverviewĪs a developer, you can change the default behavior for how the Video is displayed on the Video View. Resizing Video View with the Native SDK for Android In this topic, you will learn how to resize/stretch the inner Video View to fill the BrightcoveVideoView when working with the Native SDK for Android. Viewing the Brightcove System Status Page.

Android SDK EOL support for ExoPlayer 1.Step-by-Step: Simple TV Video App using Swift.Working with App Transport Security (ATS).Step-by-Step: Simple Video App using Swift.Step-by-Step: Simple Video App using Objective-C.

