-
-
Save pajatopmr/e277cddf711a7b531116 to your computer and use it in GitHub Desktop.
Hi, the only way to make the caption button permanetly gone, was to do this:
em.on(EventType.ANY, new EventListener() {
@OverRide
public void processEvent(Event event) {
brightcoveVideoView.getBrightcoveMediaController().getBrightcoveControlBar().findViewById(R.id.captions).setVisibility(View.GONE);
}
});
is it the right way of doing it?
I have tried for endtime, it's not working
brightcoveVideoView.getBrightcoveMediaController().getBrightcoveControlBar().findViewById(R.id.end_time).setVisibility(View.GONE);
Thanks
Ramesh
Where do you get the resource id for "captions" (the generated one)?
In my project, there is no reference anywhere in the project towards any other UI element except the main brightcoveVideoView, referenced in the activity layout by its name: com.brightcove.player.view.BrightcoveVideoView
So anytime I try to get the resource id, in order to get the view, I get null.
View fullScreenButton = this.findViewById(com.brightcove.player.R.id.exit_full_screen); fullScreenButton.setVisibility(View.INVISIBLE);
=> results in NullPointerException
Hi, it's Giancarlo here. I tried to include the statements for hiding the 'caption buttons' as you did in this example but, at first they don't show up, but as soon as the video starts playing back, the button pops up.