Two players, one video...

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
cmmc
Posts: 158
Joined: Fri Apr 22, 2011 8:15 pm

Two players, one video...

Post by cmmc »

This site just places a JW flash player over Youtube video player; is there any way to remove that player and get just the original player instead? http://www.jn.pt/PaginaInicial/Tecnolog ... id=4793714
cmmc
Posts: 158
Joined: Fri Apr 22, 2011 8:15 pm

Re: Two players, one video...

Post by cmmc »

Anyone?
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Two players, one video...

Post by lewisje »

Could you post a screenshot showing both JWPlayer and the regular YouTube player? I just tried viewing the site in Chrome and I only see the JWPlayer, and the source code does not have any of the setup for the regular YouTube player, just JWPlayer playing a video from YouTube.

It looks like what you might need is a UserScript that hunts out instances of JWPlayer that play YouTube videos and replaces them with the code for the regular YouTube player.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
cmmc
Posts: 158
Joined: Fri Apr 22, 2011 8:15 pm

Re: Two players, one video...

Post by cmmc »

Image

This is what I get when I click 'show selection source code' (using ff 41.0b9):

Code: Select all

<table style="margin-right:15px;margin-bottom:15px;" cellpadding="0" cellspacing="0"><tbody><tr><td><script src="http://jwpsrv.com/library/lz8EqsStEeOptSIACi0I_Q.js"></script><div style="position: relative; display: block; width: 480px; height: 395px;" id="mediaplayer_wmUvQU3rE3M_wrapper"><a style="border:0;clip:rect(0 0 0 0);display:block;height:1px;margin:-1px;outline:none;overflow:hidden;padding:0;position:absolute;width:1px;" title="Flash start" tabindex="-1" href="#mediaplayer_wmUvQU3rE3M" id="beforeswfanchor0"></a><object tabindex="0" class="jwswf swfPrev-beforeswfanchor0 swfNext-afterswfanchor0" name="mediaplayer_wmUvQU3rE3M" id="mediaplayer_wmUvQU3rE3M" bgcolor="#000000" data="http://p.jwpcdn.com/6/12/jwplayer.flash.swf" type="application/x-shockwave-flash" height="100%" width="100%"><param value="true" name="allowfullscreen"><param value="always" name="allowscriptaccess"><param value="true" name="seamlesstabbing"><param value="opaque" name="wmode"></object><a style="border:0;clip:rect(0 0 0 0);display:block;height:1px;margin:-1px;outline:none;overflow:hidden;padding:0;position:absolute;width:1px;" title="Flash end" tabindex="-1" href="#mediaplayer_wmUvQU3rE3M" id="afterswfanchor0"></a><div id="mediaplayer_wmUvQU3rE3M_aspect" style="display: none;"></div><div style="position: absolute; top: 0px; z-index: 10;" id="mediaplayer_wmUvQU3rE3M_jwpsrv"><div style="width: 1px; height: 1px; position: absolute; background: transparent none repeat scroll 0% 0%;" class="afs_ads">&nbsp;</div></div></div><script type="text/javascript">

		var agent=navigator.userAgent.toLowerCase();
		var is_iphone = (agent.indexOf('iphone')!=-1);
		var is_ipad = (agent.indexOf('ipad')!=-1);
		var is_playstation = (agent.indexOf('playstation')!=-1);
		var is_safari = (agent.indexOf('safari')!=-1);
		var is_iemobile = (agent.indexOf('iemobile')!=-1);
		var is_blackberry = (agent.indexOf('blackberry')!=-1);
		var is_android = (agent.indexOf('android')!=-1);
		var is_webos = (agent.indexOf('webos')!=-1);

		if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/Windows Phone/i))
		{
		var jwp = jwplayer("mediaplayer_wmUvQU3rE3M").setup({
		file: "http://www.youtube.com/watch?v=wmUvQU3rE3M",
		autostart: "false",
		width: "480",
		height: "395",
		image: "http://d23t0mtz3kds72.cloudfront.net/wmUvQU3rE3M/mp4/thumb-00001.png",
		primary: 'flash',
		events: {
            onAdImpression: function(event) { 
            },
            onAdError: function(event) { 
            },
            onPlay: function (event) {
                ga('send', 'event', 'Video', 'Play', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
            },
			onStart: function (event) {
                
            },
            onPause: function (event) {
                ga('send', 'event', 'Video', 'Pause', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
            },
            onStop: function (event) {
                ga('send', 'event', 'Video', 'Stop', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
            },
            onComplete: function (event) {
                ga('send', 'event', 'Video', 'Complete', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
				
            }
        },
		plugins: {
		'http://cdn.videoplaza.tv/resources/flash/jw6/latest/vp_plugin.swf':
		{
		vphost: 'http://pt-controlinveste.videoplaza.tv',
		vpShares: '1d8d3cd3-d9b0-4e0f-b416-b498a709d00b',
		vpEnvironmentURL: 'http://service.cdn.videoplaza.tv/resources/boot/environments/environment_pt-controlinveste.xml',
		vpSpotClickThruMode: 1,
		vpSpotAutoCloseAfterStep2: true,
		vpTags:"White Pearl,iate,Tecnologia",
		vpContentPartner:"yt",
		vpCategory:'1d8d3cd3-d9b0-4e0f-b416-b498a709d00b',
		closeButtonTimeout: 5
		}
		}
		});
		}
		else
		{
		var jwp = jwplayer('mediaplayer_wmUvQU3rE3M').setup({
		
		file: "http://www.youtube.com/watch?v=wmUvQU3rE3M",
		autostart: "false",
		width: "480",
		height: "395",
		
		primary: 'flash',
		events: {
            onAdImpression: function(event) { 
            },
            onAdError: function(event) { 
            },
            onPlay: function (event) {
                ga('send', 'event', 'Video', 'Play', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
            },
			onStart: function (event) {
                
            },
            onPause: function (event) {
                ga('send', 'event', 'Video', 'Pause', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
            },
            onStop: function (event) {
                ga('send', 'event', 'Video', 'Stop', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
            },
            onComplete: function (event) {
                ga('send', 'event', 'Video', 'Complete', 'Maior iate do mundo tem oito andares e três piscinas|wmUvQU3rE3M|http://www.youtube.com/watch?v=wmUvQU3rE3M|White Pearl,iate,Tecnologia');
				
            }
        },
		plugins: {
			'http://cdn.videoplaza.tv/resources/flash/jw6/latest/vp_plugin.swf':
			{
				vphost: 'http://pt-controlinveste.videoplaza.tv',
				vpShares: '1d8d3cd3-d9b0-4e0f-b416-b498a709d00b',
				vpEnvironmentURL: 'http://service.cdn.videoplaza.tv/resources/boot/environments/environment_pt-controlinveste.xml',
				vpSpotClickThruMode: 1,
				vpSpotAutoCloseAfterStep2: true,
				vpTags:"White Pearl,iate,Tecnologia",
				vpContentPartner:"yt",
				vpCategory:'1d8d3cd3-d9b0-4e0f-b416-b498a709d00b',
				closeButtonTimeout: 5
			}
		}
	});
}




	 </script></td></tr></tbody></table>
cmmc
Posts: 158
Joined: Fri Apr 22, 2011 8:15 pm

Re: Two players, one video...

Post by cmmc »

Again, anyone?
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: Two players, one video...

Post by mapx »

it's all inline code, so you need (as lewisje already told you) some userscript which will catch the youtube link and replace JWPlayer by YT player
cmmc
Posts: 158
Joined: Fri Apr 22, 2011 8:15 pm

Re: Two players, one video...

Post by cmmc »

Ok, thanks. Just that since I provided the info he asked me to, I was expecting some feedback.
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: Two players, one video...

Post by lewisje »

cmmc wrote:Ok, thanks. Just that since I provided the info he asked me to, I was expecting some feedback.
Also, we don't browse the forums every day, or even every other day.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Locked