I have hosted some customers videos on YouTube and embedded them into their website. It turns out many of the customers however are in countries that block YouTube or their company blocks YouTube.
I am trying to implement some sort of check (using jQuery/Ajax but any method that works is fine) to check if the users browser can access YouTube, if so load the YouTube version of the video via Ajax, if not load a self-hosted version.
I am fine with loading the different videos, but cant get my head around checking if a users computer can access YouTube, I believe an Ajax call wont work as its cross-domain.
Any help would be much appreciated.
Thanks
Jason