How to disable options button functionality when video playing in bright script - android

I am working on roku using Scene Graph. I want disable options(asterisk) button functionality when video playing.
Thank you.

According to the documentations the video player will ALWAYS have the options button functionality when in full screen,
"The one exception is the closed-caption dialog, which always appears when the video is playing fullscreen."
from: https://sdkdocs.roku.com/display/sdkdoc/Video
What I did is actually set the video to be 1px less than full screen (e,g 1280 x 719), and then I was able to capture and override the options key functionality. It might be possible to add a 1px transparent rectangle on the video instead.

Related

Android :play video in PopupWindow [duplicate]

My target: I am trying to play a video when tapping on one of the item on the screen while still staying on that screen.
So I resort to PopupWindow but somehow VideoView doesn't show up in the popup.
I can display popup just fine but the VideoView doesn't(in fact, it's not invisible but rather freeze that section of the screen). If you look at the second and third screen, you will see that the invisible area isn't exactly rectangular. That's because I am animating the popupwindow.
I checked the VideoView itself inside another Activity and it plays nicely. I tested this with Nexus One and Galaxy S, both display the same result.
Quick search on StackOverflow shows this question : android video, hear sound but no video
which leads to
Android not playing Video .mp4
and both doesn't work for me.
Also, as you can see on the third screen, the MediaController doesn't exactly attach itself to the video or popupwindow but the Activity instead.
Here's the screens,

i am playing a video using video view , i want to play it providing a skip play option on the screen

The video view is in full screen. I want the display in half of the screen and a skip button at the bottom of the screen which will skip the video.
Just add button and progressbar to the layout you have video view on and add controls for them.

Hide video but have it continue to play

I have an image and a video player. In portrait, it shows both. Doing landscape left, just the video shows. Doing landscape right just the image shows.
I am using the setVisibility() method right now to achieve that. The problem with doing:
myVideoView.setVisibility(View.INVISIBLE);
causes the video to stop playing. Is there a way to keep it playing but also not visible to the user? Maybe like set the opacity of the VideoView to 0?
I think I found a solution here. In order to make videoview invisible and keep it playing sound you simply hide it by setting alpha value.
mVideoView.setAlpha(0f);
Hope it works for you!
You could try changing the z-order of the views with the bringToFront() method.
If you want the video to show then call mVideoView.bringToFront() and when you want the image to show you could use mImageView.bringToFront() this should work as long as the video and the image both occupy the same space on the screen.
Good luck

VideoView:Avoiding fullscreen black flash

I'm trying to play a video, where the first and last frame of the video match a static background image. However I see a fullscreen black flash just before and after the movie clip.
How can I avoid this fullscreen black flash?
See here on how to avoid the fullscreen black flash:
https://groups.google.com/forum/#!topic/android-developers/ZSe73VtmTE8

VideoView invisible in Popupwindow?

My target: I am trying to play a video when tapping on one of the item on the screen while still staying on that screen.
So I resort to PopupWindow but somehow VideoView doesn't show up in the popup.
I can display popup just fine but the VideoView doesn't(in fact, it's not invisible but rather freeze that section of the screen). If you look at the second and third screen, you will see that the invisible area isn't exactly rectangular. That's because I am animating the popupwindow.
I checked the VideoView itself inside another Activity and it plays nicely. I tested this with Nexus One and Galaxy S, both display the same result.
Quick search on StackOverflow shows this question : android video, hear sound but no video
which leads to
Android not playing Video .mp4
and both doesn't work for me.
Also, as you can see on the third screen, the MediaController doesn't exactly attach itself to the video or popupwindow but the Activity instead.
Here's the screens,

Categories

Resources