我已经按照本教程进行操作,在媒体播放器的背景下进行exopalyerview似乎很奇怪
中一样我用于视频的代码
simpleExoPlayerView = (SimpleExoPlayerView) findViewById(R.id.player_view);
simpleExoPlayerView.requestFocus();
simpleExoPlayerView.setPlayer(player);
MediaSource mediaSource = new HlsMediaSource(Uri.parse("my_url"),
mediaDataSourceFactory, mainHandler, null);
player.prepare(mediaSource);
player.setPlayWhenReady(true);