forked from mirror/monocles_chat
fix playing videos inside
This commit is contained in:
parent
33cb012754
commit
527c6ad469
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ public class MediaViewerActivity extends XmppActivity implements AudioManager.On
|
|||
});
|
||||
player.setRepeatMode(Player.REPEAT_MODE_OFF);
|
||||
binding.messageVideoView.setPlayer(player);
|
||||
DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(this, xmppConnectionService.getIqGenerator().getUserAgent());
|
||||
DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(this, System.getProperty("http.agent"));
|
||||
MediaSource videoSource = new ProgressiveMediaSource.Factory(dataSourceFactory).createMediaSource(uri);
|
||||
player.prepare(videoSource);
|
||||
requestAudioFocus();
|
||||
|
|
Loading…
Reference in a new issue