Show video in dialog - android

I want to display video in dialog box
before the video was play in activity and it worked correctly,
but when I try to show video in dialog everything is broken.
It looks like video view becomes transparent, but clicks on video handled correctly.
Whether is a solution of this problem?

Related

Android: Show videos in WebView always fullscreen?

I have a WebView showing a HTML document with media content (embedded Youtube video, html5 video...). Is it possible to show them only as thumbnail and always open a fullscreen video view when the user clicks on them?
You can parse all content and show only preview picture. When user clicks on it you can start new fullscreen activity and play video there.

VideoTag in webview inside dialog in android

I am using webview inside a dialog not Activity and using videoTag in webview to load a video from url.
if i use Activity than i am able to maximize video but in dialog that button is not maximizing video as per attached screenshot.
and other properties like autoplay is not working for webview.
And i am using VideoEnabledWebview as per given nice answer.
i have set also android:hardwareAccelerated="true"
so can i maximize video in webview inside dialog or can i hide maximize button?

android : YouTubePlayerView video not visible

i am inflating a layout over the cameraview . The layout is like this
{ Linerlayout
Relativelayout
YouTubePlayerView }
This inflated layout elements are initilly invisible and on user action these are made visible and i call
youTubeView.initialize()
the initialise finish listenr will call
player.cueVideo(getVideoUrl());
Now i can see the progressindicator first, then i can see the thumbnail of the video with play control on top. When i press that play button , the video start playing but nothing is visible. I can see my cameraview ( ie the view when we open camera )( over which this layout is inflated ) . The video sound is coming and the video is played. Now if i press fullscreen button, it opens video in full screen and here everything is fine. I can see the video . If i go back to small screen again no video only sound.
youTubeView.setVisibility(View.VISIBLE);
toplayerLinearLayout.setVisibility(View.VISIBLE);
toplayerRelLayout.setVisibility(View.VISIBLE);
youTubeView.initialize(DEVELOPER_KEY,
(OnInitializedListener) applicationActivity);
Please give some pointers on what could be happening
Please help as i am totally blocked
The issue was the cameraview . I dont know why youtubeplayer view behaves like this . But i made the GLview ( camera ) invisible before making the youtubeplayerview visible and it is working .

How to tint the video, but still display the MediaController progress bar?

In my application I am using VideoView to play a video. Through this forum I have learnt to show the progress bar (MediaController) persistently (without hiding).
My requirement is to tint the video on some action (lets say pause on MediaController), but still be able to use the MediaController. i.e., once the video is tinted, I could move the progress-bar on MediaController and could also play the video again (after un-tinting it).

Disable user controls in an Android VideoView object

I'm working on an app that plays a video. I cannot find a way to disable the user video controls (Play, pause, go to 1:23, etc...)
How do I remove the user controls from that object? Ideally the bottom bar of controls will not even show up.
VideoView doesn't have controls built in so I'm assuming you have a MediaController set up in your code, which has the controls that appear when tapping the screen and then go away. If that's the case you can remove it and your problem should be solved.

Categories

Resources