fullscreen

Opencv fullscreen using CameraBridgeViewBase android

坚强是说给别人听的谎言 提交于 2021-02-19 07:41:22
问题 i am trying to set up Opencv on android using the given tutorials as the base. i havenot been able to control the video size on the screen, i want to enlarge it to full screen. i am using the CameraBridgeViewBase object as the VideoCapture object does not work. does anyone know how to set up the picture to be full screen? relevant code: public class Sample3Native extends Activity implements CvCameraViewListener { private static final String TAG = "OCVSample::Activity"; private Mat mRgba;

setting opencv video to fullscreen android

空扰寡人 提交于 2021-02-19 02:33:10
问题 i am trying to set a video to fullscreen using opencv. the input is coming from the camera. it shows on the screen in the center but not as full screen. relevant code: public class Sample3Native extends Activity implements CvCameraViewListener { private static final String TAG = "OCVSample::Activity"; private Mat mRgba; private Mat mGrayMat; private Mat mFinalMat; private CameraBridgeViewBase mOpenCvCameraView; private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback(this) {

Request HTML5 video fullscreen on Apple's devices

China☆狼群 提交于 2021-02-16 21:22:36
问题 Hello guys I have got custom fullscreen icon that triggers fullscreen on my video. Everything is ok except that it doesn't work on Apple's devices. Do you know how to fix that? $('.fullscreen_btn').click(function() { fullscreen=true; var mediaElement = document.getElementById('videoAbout'); if(mediaElement.requestFullScreen) { mediaElement.requestFullScreen(); } else if(mediaElement.webkitRequestFullScreen) { mediaElement.webkitRequestFullScreen(); } else if(mediaElement.mozRequestFullScreen)

Request HTML5 video fullscreen on Apple's devices

旧街凉风 提交于 2021-02-16 21:21:07
问题 Hello guys I have got custom fullscreen icon that triggers fullscreen on my video. Everything is ok except that it doesn't work on Apple's devices. Do you know how to fix that? $('.fullscreen_btn').click(function() { fullscreen=true; var mediaElement = document.getElementById('videoAbout'); if(mediaElement.requestFullScreen) { mediaElement.requestFullScreen(); } else if(mediaElement.webkitRequestFullScreen) { mediaElement.webkitRequestFullScreen(); } else if(mediaElement.mozRequestFullScreen)

Issue with “blanking screen” when running Qt application in fullscreen mode

非 Y 不嫁゛ 提交于 2021-02-11 17:41:49
问题 We have a Qt based browser application which uses QWebEninge under the hood. Currently we are fighting with an issue where the screen goes blank for a moment eacht time the window gets or looses the focus (f.ex. each time the QVirtualKeyboard becomes invoked). Following a Qt's recommendation, we tried to implement QWindowsWindowFunctions::setHasBorderInFullScreen prior to call of QMainWindow::showFullScreen() . But this results in an inacceptable reduction of the available window area, e.g.

Pygame choose which display to use in fullscreen [duplicate]

喜你入骨 提交于 2021-02-11 15:40:23
问题 This question already has answers here : pygame dual monitors and fullscreen (2 answers) Closed last month . This is the code: #!/usr/bin/python import pygame, sys from pygame.locals import * import Tkinter as tk root = tk.Tk() pygame.init() w = 640 h = 400 RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) YELLOW = (255, 255, 0) PINK = (255, 0, 255) CYAN = (0, 255, 255) WHITE = (255, 255, 255) screen = pygame.display.set_mode((w,h), RESIZABLE) clock = pygame.time.Clock() x = y = 100

How to force my Chrome browser to accept .requestFullscreen()?

房东的猫 提交于 2021-02-08 06:53:23
问题 I am writing an application for myself in which I need to go fullscreen automatically via JavaScript (today I simulate the press of F11, which usually works, but not always). I would like to use .requestFullscreen() (via screenfull.js) but I get Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture. This is understandable (for security / spam / usability reasons) and mentioned on numerous pages. Now, since this is my application running on my Chrome

Python QT Application with vlc does not show fullscreen

守給你的承諾、 提交于 2021-02-08 06:44:24
问题 I am working on an application where several vlc streams (rtsp) are shown and by double-clicking one of them, the stream should be displayed fullscreen. The application is python 3.7 using pyqt5 and vlc-qt. Code as follows: import sys import vlc from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtWebEngineWidgets import * from PyQt5.QtPrintSupport import * class MainWindow(QMainWindow): def __init__(self, *args, **kwargs): super(MainWindow, self)._

select certain monitor for going fullscreen with gtk

时光怂恿深爱的人放手 提交于 2021-02-07 14:42:54
问题 I intend to change the monitor where I show a fullscreen window. This is especially interesting when having a projector hooked up. I've tried to use fullscreen_on_monitor but that doesn't produce any visible changes. Here is a non-working example: #!/usr/bin/env python import sys import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import Gdk w = Gtk.Window() screen = Gdk.Screen.get_default() print ("Montors: %d" % screen.get_n_monitors()) if len(sys

JavaScript - Prevent default in html5 video tag while fullscreen

≯℡__Kan透↙ 提交于 2021-01-29 18:55:07
问题 I have a video player on my website and want to change the default seek time when a user clicks left or right arrows to 10 seconds (like netflix or youtube). Using a combination of preventDefault() and stopImmediatePropagation() I've managed to achieve desired effect however when a user goes fullscreen, default events are still passed through (along with my code). document.onkeydown = function(event) { switch (event.keyCode) { case 37: event.preventDefault(); event.stopImmediatePropagation();