YouTotem

By raaf Last update Apr 25, 2008 — Installed 10,820 times.

Post doesn't exist

Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Ryan Cordell User

If this script is to be updated again, would it be at all a bother to implement a full screen feature? Using this great, GREAT script for YouTube to watch videos is alright, but considering only the Quicktime player has any menu where you can go anywhere in the video, it has no method of being able to go full screen, which can be rather stressing for some videos.
Can this feature be expected anytime soon, or would I have to ask Apple or so for this sort of feature in their player? (Although it works for the player not used on the internet.)

And yes, I also agree with Sark below. Will this script also be made to work with as many, or any websites that use the standard, annoyingly crash prone flash player by Adobe? Downloading separate scripts for other sites can be annoying, especially if there aren't for some.

Much thanks. This script is great.

 
sark User

I don't know about making scripts. How easy would this be to get it to work with other common video sites like google video, metacafe etc. Or even just those two. I did a quick search for metacafe, and it seems the ones supporting it are downloaders and not embedded players.

Treviño, what benefit does the resolution detection offer? Is it because the video not playing with correct ar if someone is running a non 4:3 resolution?

 
Treviño User

Good... The auto-size code is really good!

BTW, I was so stupid: thinking to compatibility I posted a code with iexplore checks... LOL :P

Well, I was not thinking that those are just local scripts :P

 
raaf Script's Author

Thanks for the suggestion. I modified the script to take the browser size in to account.

 
Treviño User

In the previous code commit there was a typo, btw I've changed the code to adapt the player size not to the screen resolution, but to the browser size (btw it isn't totally proportional yet):

var width = 450;
var height = 358;

if (parseInt(navigator.appVersion)>3) {
	if (navigator.appName=="Netscape") {
		windowWidth = window.innerWidth;
		windiwHeight = window.innerHeight;
	}
	if (navigator.appName.indexOf("Microsoft")!=-1) {
		windowWidth = document.body.offsetWidth;
		windiwHeight = document.body.offsetHeight;
	}
}

if (windowWidth >= 1024 && windowWidth < 1280) {
	width = 556;
	height = 435;
}

if (windowWidth >= 1280 && windowWidth < 1680) {
	width = 885;
	height = 683;
}

if (windowWidth >= 1680) {
	width = 930;
	height = 715;
}

http://paste.ubuntu-nl.org/64228/

 
Treviño User

What about adding an automatic resolution checker like:

var width = 885;
var height = 358;

if (screen.width >= 1024 && screen.width < 1280) {
	width = 556;
	height = 435;
}

if (screen.width >= 1280 && screen.width < 1680) {
	width = 885;
	height = 683;
}

if (screen.width >= 1680) {
	width = 930;
	height = 715;
}

It could be better if there's a way to calculate the video width for each resolution (based on the right youtube sidebar width).

Then I've ported many of your cool features (mp4 and other formats playback and resized-player) back to Youtube Alternate Player: http://paste.ubuntu-nl.org/64223/

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel