Last active
March 22, 2021 03:37
-
-
Save sb2702/c728b71e5d9064a47fcbd0bfcf0b3c0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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