Skip to content

humantech/jquery-youtube-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-youtube-access

What it does? Verifies if the user has access to Youtube.

Important?

Many times yes. This could be used to:

  • Determinate what kind of player will be displayed (fallbacks) in case Youtube is not accessible;
  • If the client side proxy is blocking the user's Youtube access;

Usage

At the first call, the plugin will test Youtube access and store the result. Later calls (without refresh) will bring the same result.

$.hasyt(function(){
	
	$(document).ready(function(){
		
		$('a').click(function(){

			if($.hasyt()){
				// has youtube access, yay!
			}

		});
		
	});
});

About

Verify if the user has access to youtube, could be used to display different videos depending the access.

Resources

License

Stars

Watchers

Forks

Packages

No packages published