option "autoplay off" don't work good on user pages
![]() ![]() |
Hi, the option "autoplay off" don't work good on user pages. When i open the movie link, then played automatically. like this:
You find more links when you click on the right movie bar (or else also you named this).
I hope that you can fix it? I hope that you me can understand, i speak dutch. |
![]() ![]() |
Ok... the problem is really the " #play/uploads/0/********* ". After my script set the video to not play, the YouTube script tell the video player to play... The fix is to use the watch page... because it's too much work to do things on this betachannel |
![]() ![]() |
playnav.playVideo=function() {
autoskip = false;
autoplay = true;
fref.apply(this, arguments);
}Problem: How to access to fref, or better... how to take the scope of this function ?
In this function, fref is: function playVideo(playlistId,videoIndexId,videoId,opt_startSecs,opt_postId,opt_onLoad) {
var id=null;
ageVerificationRequired=false;
$('playnav-player-racy-hider').style.visibility='visible';
$('playnav-player-racy').style.display='none';
if(!videoIndexId&&opt_postId) {
var _tmp=$('POST2ID-'+opt_postId);
if(_tmp) { id=_tmp.attributes['name'].value; }
}
if(!id) { id=[currentViewName,playlistId,videoIndexId,videoId].join('-'); }
if(!opt_onLoad&&!handlingLocationHashUpdate&&!skipping) {
var parts=['play',currentTabName];
if(currentTabName!=playlistId){ parts.push(playlistId); }
parts.push(videoIndexId);
parts.push(videoId);
var hash=parts.join('/');
History.add(hash);
savedLocationHash=hash;
}
closePopup();
if(currentViewName=='grid'&&!skipping) { selectView('play'); }
selectVideo({p:playlistId.replace('-all',''),i:videoIndexId,v:videoId,id:id});
currentPlaylistId=playlistId;
currentVideoIndexId=videoIndexId;
currentVideoId=videoId;
if(!opt_onLoad) {
playRequested=true;
var opt_startSecs=opt_startSecs&&parseInt(opt_startSecs)||0;
currentPlayState=PlayState.UNSTARTED;
hideDiv('watch-channel-brand-div');
hideDiv('watch-longform-ad');
resizePlayview();
player.loadVideoById(videoId,opt_startSecs);
}
if(window.groupname) {
selectPanel('discussion');
} else {
selectPanel('info');
}
if(videoIndexId!=null) {
try{
$('playnav-curplaylist-count').innerHTML=$('playnav-playlist-'+playlistId+'-count').value;
$('playnav-curplaylist-title').innerHTML=$('playnav-playlist-'+playlistId+'-title').innerHTML;
} catch(e) {}
}
if(videoIndexId==null) {
if($('playnav-curvideo-controls')) { $('playnav-curvideo-controls').style.visibility='hidden'; }
} else if(currentSelection) { }
}In bold: it's where the YouTube betachannel send the "play" to the video player.
The problem is how to modify this hidden function... |



