FullScreen for <video>

Forums » General Opera topics » User JavaScript

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

19. May 2010, 23:26:06

Hades32

What I use:

Posts: 1917

FullScreen for <video>

I hope you like it smile

http://post.ly/geTZ
Using Windows 7 64Bit SP1 and of course Opera
(If nothing else stated the most current weekly) on a nice Dell Studio XPS 16!

20. May 2010, 04:30:50

joshjnz

Posts: 264

Very cool
I for one welcome our browser overlord. All hail Opera

3. June 2010, 22:18:32

DZE-MasteR

Posts: 72

Function was added to youtube

4. June 2010, 14:21:45

ZAHEK

z@h3k

Posts: 7656

Sorry it just works on You tube?
Feel the difference by Opera / Türkçe yazalım.
Opera Türkiye | Opera SSS

7. June 2010, 06:00:36

QuHno

read a book!

Posts: 1037

The script mentioned in the first post should work on every page that uses the <video> tag ...
Looking for a new home for your blog, albums, mail and forums after my.opera closes at march 1, 2014?

Visit https://vivaldi.net - the new community set up by Jon S. v. Tetzchner and several former Opera employees. Many of us are already there and some of the employees too smile

7. June 2010, 12:43:48 (edited)

QuHno

read a book!

Posts: 1037

It works here with the first two links. Tested with Opera 10.54, 21868 WebM build in XPSP3 and W7.
It doesn't work with
http://html5demos.com/two-videos
or some other videos from that page if I want to maximize them to the Browser window by hitting Shift+Enter. It tries to, but something seems to reset the defaults. I can see a short flash of fullscreen video, then both videos stop and I have to restart them. I didn't look into the source of that page, but I believe they captured the Shift+Enter keys to start the video.

Pressing F11 to see the videos in fullscreen works - but on the two-videos page you can see only one in fullscreen for obvious reasons wink

I think I'll write a feature request to the author wink
Looking for a new home for your blog, albums, mail and forums after my.opera closes at march 1, 2014?

Visit https://vivaldi.net - the new community set up by Jon S. v. Tetzchner and several former Opera employees. Many of us are already there and some of the employees too smile

7. June 2010, 12:43:49

ZAHEK

z@h3k

Posts: 7656

Originally posted by QuHno:

It works with the first two links.


Sorry wh'ch vers'on Opera do you use now?

Originally posted by QuHno:

I think I'll write a feature request to the author


Good. smile
Feel the difference by Opera / Türkçe yazalım.
Opera Türkiye | Opera SSS

7. June 2010, 16:19:32

QuHno

read a book!

Posts: 1037

Originally posted by ZAHEK:

Sorry wh'ch vers'on Opera do you use now?


10.53 b3374, 10.60 b3403, WebM Labs b21868

10.60 most of the time - except for my main mail accounts - and it works in 10.60 too smile
Looking for a new home for your blog, albums, mail and forums after my.opera closes at march 1, 2014?

Visit https://vivaldi.net - the new community set up by Jon S. v. Tetzchner and several former Opera employees. Many of us are already there and some of the employees too smile

7. June 2010, 19:36:58

QuHno

read a book!

Posts: 1037

Martin wrote in his blog that we can suggest an key combination and he will upload the changed script. I would suggest an unused one - F11 for fullscreen should be OK - so, what key combination do you want for switching into full window view?
Looking for a new home for your blog, albums, mail and forums after my.opera closes at march 1, 2014?

Visit https://vivaldi.net - the new community set up by Jon S. v. Tetzchner and several former Opera employees. Many of us are already there and some of the employees too smile

8. June 2010, 10:11:34

Moderator

larskl

~ moderator ~

Posts: 22803

F11 for fullscreen should be OK


F11 is actually the shortcut for fullscreen mode in Opera, so already taken

8. June 2010, 11:22:00

QuHno

read a book!

Posts: 1037

Yes, and, as is, it switches into fullscreen but resizes the video to fit bigsmile

BTW: Fullscreen or still presentation mode (Opera show) and normal fullscreen only if there is no (paged) presentation markup?
Looking for a new home for your blog, albums, mail and forums after my.opera closes at march 1, 2014?

Visit https://vivaldi.net - the new community set up by Jon S. v. Tetzchner and several former Opera employees. Many of us are already there and some of the employees too smile

8. June 2010, 20:19:21

ZAHEK

z@h3k

Posts: 7656

Yes it works with latest 10.60 snapshot. Thanks.
Feel the difference by Opera / Türkçe yazalım.
Opera Türkiye | Opera SSS

8. June 2010, 21:04:29

DZE-MasteR

Posts: 72

@ZAHEK
yep it works well there

does it work for this:
http://tinycorelinux.com/videos/appsaudit.html
please confirm if yes

9. June 2010, 04:48:50 (edited)

QuHno

read a book!

Posts: 1037

Originally posted by DZE-MasteR:

http://tinycorelinux.com/videos/appsaudit.html

F11 works, Shift-Enter doesn't...
It seems to be the same problem as with html5demos, changing the keyboard shortcut would help against that.

So, again: Which shortcut would you prefer for maximize to browser window?

I have edited this line in my personal version of the script:
if ((e.keyCode+""=="13"&&e.shiftKey)||e.keyCode+""=="122")

to this
if ((e.keyCode+""=="38"&&e.shiftKey)||e.keyCode+""=="122")

to exchange Shift+Enter with Shift+upArrow.
Please try it out and post here if that causes problems...

Looking for a new home for your blog, albums, mail and forums after my.opera closes at march 1, 2014?

Visit https://vivaldi.net - the new community set up by Jon S. v. Tetzchner and several former Opera employees. Many of us are already there and some of the employees too smile

9. June 2010, 07:03:39

ZAHEK

z@h3k

Posts: 7656

Originally posted by QuHno:

Originally posted by DZE-MasteR:

http://tinycorelinux.com/videos/appsaudit.html

F11 works, Shift-Enter doesn't...
It seems to be the same problem as with html5demos, changing the keyboard shortcut would help against that.

So, again: Which shortcut would you prefer for maximize to browser window?

I have edited this line in my personal version of the script:
if ((e.keyCode+""=="13"&&e.shiftKey)||e.keyCode+""=="122")

to this
if ((e.keyCode+""=="38"&&e.shiftKey)||e.keyCode+""=="122")

to exchange Shift+Enter with Shift+upArrow.
Please try it out and post here if that causes problems...



@QuHno,

Thanks it works in all pages after change this line in js as below. smile
VideoFullscreen.js

Now it is great.
Feel the difference by Opera / Türkçe yazalım.
Opera Türkiye | Opera SSS

Forums » General Opera topics » User JavaScript