Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media controller for player. #12

Open
Shaikjalal opened this issue Dec 14, 2015 · 1 comment
Open

Media controller for player. #12

Shaikjalal opened this issue Dec 14, 2015 · 1 comment

Comments

@Shaikjalal
Copy link

Hi,

Wondering if there is a media controller implementation for this?
Do we implement media controller in VideoTexturePresenter?

@ypresto
Copy link

ypresto commented Feb 10, 2017

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);
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants