fullscreen

Embedded YouTube video in WebView does not respect full screen settings

不打扰是莪最后的温柔 提交于 2019-12-04 04:25:31
问题 I am using the the guide displayed over here to embed a video in a WebView controller. The WebView is inside an Activity which has the the theme Theme.Dialog The embedded video is shown with the thumbnail first in a Activity. I use fs=0 to disable the fullscreen option. After pressing the play button, the video loads in HTML5 mode (I think) and then it does not respect the fullsceen setting I've set. How can I disable the full screen setting in the HTML5 mode? My HTML code is as follows.

When using video.js, why doesn't the full-screen button work inside an iframe?

旧时模样 提交于 2019-12-04 03:47:30
I use video.js for video play. When not using an iframe, clicking the full screen button works as expected. However, when using an iframe, the full screen button doesn't work. Why is this? The homepage of video.js is http://videojs.com/ the code of iframe page is: <!DOCTYPE html> <html> <head> <title>Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body> <iframe src="sco01-m.htm" id="cw" name="cw" width="100%" height="1000px;" scrolling="no" frameborder="0"></iframe> </body> </html> the code of sco01-m.htm page is: <!DOCTYPE html> <html> <head> <title

Set Full Screen out onCreate

浪尽此生 提交于 2019-12-04 03:08:59
问题 I can only set my Activity to Full Screen in onCreate method (before setContentView)? Is there any way I can set to full screen outside of onCreate? Thanks 回答1: Is possible! Adding this code. // go full screen WindowManager.LayoutParams attrs = mActivity.getWindow().getAttributes(); attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; mActivity.getWindow().setAttributes(attrs); // go non-full screen WindowManager.LayoutParams attrs = mActivity.getWindow().getAttributes(); attrs.flags &=

How to make full screen java applets?

主宰稳场 提交于 2019-12-04 02:52:28
I am designing a psychology experiment with java applets. I have to make my java applets full screen. What is the best way of doing this and how can I do this. Since I haven't been using java applets for 3 years(The last time I've used it was for a course homework :) ) I have forgotten most of the concepts. I googled and found that link: Dani web But in the method described in above link you have to put a JFrame inside the applet which I have no idea how to do it. Whatever I need a quick and dirty method b'cause I don't have much time and this is the reason why I asked it here. Thanx in

Java - Screen turns black, when setting a JFrame to Fullscreen

爷,独闯天下 提交于 2019-12-04 02:18:00
问题 I'm trying to draw something on a Canvas, add it to a JFrame and then set this JFrame to Fullscreen. My problem is: in fullscreenmode I only see a black screen. Before the screen turns black I shortly can see the pink background of the canvas. Drawing directly on a JFrame and then setting it to fullscreen works perfectly fine and I can see the testtext. I assume there is a problem with displaying the Canvas properly. Here is my code: public class FullscreenTest extends Canvas { private JFrame

Detecting fullscreen on Mac

假装没事ソ 提交于 2019-12-04 01:55:50
问题 I am writing an IM client for Mac (in Python, but an Objective C / Cocoa solution here is fine). I want to detect whether or not the user is currently watching a movie or playing a game in the foreground, or doing anything else that takes up the entire screen. If so, I won't play a sound when a new IM comes in, but if not, I will play the sound. How can I detect this? Is there some way to get the foreground window with Applescript and look at its dimensions? Or is there some other API call?

How to completely exit from Immersive full screen mode?

允我心安 提交于 2019-12-04 01:22:01
I would like to implement a button to enable/disable the immersive full screen mode. I'm using those methods but the showSystemUI only shows quickly and hide again... How to completely exit from immersive mode? My methods: // This snippet hides the system bars. @SuppressLint("NewApi") private void hideSystemUI() { try{ // Set the IMMERSIVE flag. // Set the content to appear under the system bars so that the content // doesn't resize when the system bars hide and show. mDecorView.setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM

Full-screen desktop application with QML

若如初见. 提交于 2019-12-03 19:28:42
问题 I have experience with developing rich user interface application with flex and AS3. However the issue is its very hard to use existing c++ business logic with these flex apps. With the advent of QML, I am curious whether its possible to reuse the c++ business logic with QT for rich UI apps. I want to know whether its possible to develop full screen rich user interface applications(which are becoming more and more common especially in mobile devices) for the desktop. For example(http://blog

Use Java to lock a screen

浪子不回头ぞ 提交于 2019-12-03 16:18:36
Basically i just need to create an application (with sort of user access) which first screen is a fullscreen window that cannot be minimized or closed without entering valid username and password. Something like windows screensaver. Can it be done? What libraries should i look into? This is all i need, if my question is incomplete or unclear, feel free to ask! Once, I wrote something in Java, out of which you can't escape. Really impossible. It is for Windows. Here you go: import java.awt.Robot; import javax.swing.JFrame; public class WindowsSecurity implements Runnable { private JFrame frame;

How to display an image in full screen on click in the ImageView?

£可爱£侵袭症+ 提交于 2019-12-03 14:04:54
问题 I need to open an image in full screen upon click in the ImageView, like a gallery with one image! How would I do that? 回答1: this is a basic example: the layout activity_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center"> <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true"