html5-fullscreen

WebView after closing fullscreen view, webview auto scrolls to top

早过忘川 提交于 2020-03-26 04:03:07
问题 I have webveiw (with fullscreen support) on the fragment. The issue is when i close fullscreen the webview scrolls it position to top. Noticed: the issue appears only if apply FLAG_FULLSCREEN flag (but i need to apply it to have real fullscreen) found possible solution is to use java script, but there is no answer. Also i'm not found the way to resolve this with webview functions like scrollTo and ect when i add (instesad of fullscreen-view) view with small size (100dp height) i see that

what constitues user gesture

六眼飞鱼酱① 提交于 2020-03-03 11:44:09
问题 I recently programmed a menu interface for javascript that lets you dynamically add options to it and mostly works with mouseEnter Events . I thne added some basic video Controls to it with request/exit Fullscreen that trigger on one of these mouseEnter events most of the time it displays Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture. however (weird part :) sometimes it works and im not sure how the browser api decides wether an action is a

Block chrome app from launching fullscreen

ぃ、小莉子 提交于 2020-01-03 02:37:09
问题 Currently developing a Chrome packaged app. I have implemented a fullscreen feature. Long story short: If the app was quitted/closed while it was fullscreen, the app window will launch in fullscreen mode but the content is not fullscreen because you cannot go fullscreen without user interaction! How I go fullscreen (content-script) document.addEventListener("webkitfullscreenchange", function () { if(document.webkitIsFullScreen === true) { document.querySelector('.active webview')

Fullscreen API not working if triggered with F11

房东的猫 提交于 2020-01-02 01:37:21
问题 I implemented a fullscreen toggling feature for my application and it is actually working fine, tested on newest Chrome, Firefox, IE and Opera. I have one method for activating and one for deactivating fullscreen mode: public deactivateFullscreen(element) { if (element.requestFullscreen) { element.requestFullscreen(); } else if (element.webkitRequestFullscreen) { document.webkitCancelFullScreen(); } else if (element.mozRequestFullScreen) { document.mozCancelFullScreen(); }else if(element

HTML5 - Prevent Fullscreen Mode

陌路散爱 提交于 2019-12-22 10:49:31
问题 I'm using the Fullscreen API with an embedded YouTube video to detect whether or not the browser window has entered fullscreen mode. I have that working great. What I'd like to do is prevent from occurring the default behavior of entering fullscreen mode. I'd like to put in my own fullscreen mode logic so that I can overlay DOM elements on top of the YouTube Player. Currently, I can exit fullscreen mode immediately after entering it, but that results in a poor and confusing experience for the

Chrome 43 window size bug after full screen

时光总嘲笑我的痴心妄想 提交于 2019-12-11 13:11:26
问题 I am facing a strange bug on Chrome 43, with this steps: - I open a page, let say page1.html, and I go to fullscreen with html5 (with a button click) I resize the browser window in this page1.html Then I click a link on this pages, that opens another page, let say page2.html The browser close the fullscreen automatically , and redirect to page2.html In the page2.html the document.documentElement.offsetWidth/clientWidth is different from the window.innerWidth. The html and body tag are set 100

Requesting full screen refreshes data (html canvas) in object tag

若如初见. 提交于 2019-12-10 11:28:12
问题 I have a button on the view page that makes the object tag with id game full screen. view.html <object id="game" src="url/file.html"></object> <span onclick="fullScreen()"></span> main.js function fullScreen() { var elem = document.getElementById("game"); if (elem.requestFullscreen) { elem.requestFullscreen(); document.addEventListener('fullscreenchange', fullScreenExit, false); } else if (elem.msRequestFullscreen) { elem.msRequestFullscreen(); document.addEventListener('fullscreenchange',

Requesting full screen refreshes data (html canvas) in object tag

醉酒当歌 提交于 2019-12-06 13:48:25
I have a button on the view page that makes the object tag with id game full screen. view.html <object id="game" src="url/file.html"></object> <span onclick="fullScreen()"></span> main.js function fullScreen() { var elem = document.getElementById("game"); if (elem.requestFullscreen) { elem.requestFullscreen(); document.addEventListener('fullscreenchange', fullScreenExit, false); } else if (elem.msRequestFullscreen) { elem.msRequestFullscreen(); document.addEventListener('fullscreenchange', fullScreenExit, false); } else if (elem.mozRequestFullScreen) { elem.mozRequestFullScreen(); document

How to capture the fullscreen event when I press the default fullscreen button of HTML5 video element?

萝らか妹 提交于 2019-12-06 01:31:25
问题 I have a problem when use the HTML5 video tag and iconic . Here is part of my template: <ion-view> <ion-content overflow-scroll="true" data-tap-disable="true"> <div class="list card"> <div class="item item-body" style="padding: 5% 5% 5% 5%"> <div class="player"> <video controls="controls" autoplay id="sr"></video> </div> </div> </div> </ion-content> </ion-view> Here is my controller: .controller('viewVideoCtrl', function ($scope, $state, $stateParams) { var videoPath = URL + "uploadFiles" +

How to request fullscreen in compiled dart

浪尽此生 提交于 2019-11-30 20:05:23
问题 I'm playing around with a Dart app trying to get fullscreen mode to work. My HTML (excluding boilerplate): <div id="fullscreen_div"> Clicking this should cause it to go fullscreen! </div> My Dart code: import 'dart:html'; void main() { var div = querySelector('#fullscreen_div'); div.onClick.listen((MouseEvent e) { div.requestFullscreen(); print('requested fullscreen'); }); } Here it is on DartPad. If I've done this correctly, clicking the div once should cause the div to go into fullscreen