Java 类com.google.android.exoplayer2.ui.AspectRatioFrameLayout 实例源码

项目:no-player    文件:NoPlayerView.java   
@Override
protected void onFinishInflate() {
    super.onFinishInflate();
    View.inflate(getContext(), R.layout.noplayer_view, this);
    videoFrame = (AspectRatioFrameLayout) findViewById(R.id.video_frame);
    shutterView = findViewById(R.id.shutter);
    surfaceView = (SurfaceView) findViewById(R.id.surface_view);
    surfaceView.getHolder().addCallback(surfaceHolderProvider);
    subtitleView = (SubtitleView) findViewById(R.id.subtitles_layout);
}
项目:TubiPlayer    文件:TubiExoPlayerView.java   
@SuppressWarnings("ResourceType")
private static void setResizeModeRaw(AspectRatioFrameLayout aspectRatioFrame, int resizeMode) {
    aspectRatioFrame.setResizeMode(resizeMode);
}
项目:ChatMessagesAdapter-android    文件:VideoPlayerActivity.java   
private void adjustSurfaceView() {
    simpleExoPlayerView.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FILL);
}
项目:TubiPlayer    文件:TubiExoPlayerView.java   
/**
 * Sets the resize mode.
 *
 * @param resizeMode The resize mode.
 */
public void setResizeMode(@AspectRatioFrameLayout.ResizeMode int resizeMode) {
    Assertions.checkState(contentFrame != null);
    contentFrame.setResizeMode(resizeMode);
}