Skip to content

Instantly share code, notes, and snippets.

@sb2702
Last active March 22, 2021 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sb2702/c728b71e5d9064a47fcbd0bfcf0b3c0e to your computer and use it in GitHub Desktop.
Save sb2702/c728b71e5d9064a47fcbd0bfcf0b3c0e to your computer and use it in GitHub Desktop.
private GlPlayerView ePlayerView;
private void setupUpscalerView() {
String api_key = "...";
ePlayerView = new GlPlayerView(this, api_key);
ePlayerView.setSimpleExoPlayer(player);
ePlayerView.setNetwork(NetworkTypes.DEFAULT, getApplicationContext());
ePlayerView.setLayoutParams(new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
((MovieWrapperView) findViewById(R.id.layout_movie_wrapper)).addView(ePlayerView);
ePlayerView.onResume();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment