Open Shaikjalal opened 8 years ago
Currently there is no interface to use MediaController. It only can be done through reflection:
try {
Field playerField = VideoTexturePresenter.class.getDeclaredField("player");
playerField.setAccessible(true);
Player player = (Player) playerField.get(videoTexturePresenter);
mediaController.setMediaPlayer(player.getPlayerControl());
} catch (IllegalAccessException | NoSuchFieldException e) {
Log.e("VideoHeaderRenderer", "Cannot get player control.", e);
}
Hi,
Wondering if there is a media controller implementation for this? Do we implement media controller in VideoTexturePresenter?