/* Skin for dvs htmml5 player */ function LineSimpleSkinPlay() { // Configparams this.controlHeight=27; // Limits this.minWidth=300; this.minHeight=200; this.Separators; // separators this.simpleRefresh=false; this.volumeBarControlSettings= {count:7, width:12, height:2, offsetBottom:0, offsetTop:2, offsetLeft:2, passiveBackground:"#333333", activeBackground:"#990000"}; // set start skin parameters and create additional oblects this.SetSkin = function(playerObject) { if(playerObject.settings.width < this.minWidth) { playerObject.settings.width=this.minWidth; playerObject.dvsplayer.width=this.minWidth; } if(playerObject.settings.height < this.minHeight) { playerObject.settings.height=this.minHeight; playerObject.dvsplayer.height=this.minHeight; } playerObject.settings.displayVolumeDigital=false; playerObject.settings.displayVideoLengthDigitals=false; // set skin style playerObject.dvs_play_conteiner.style.height=playerObject.settings.height + "px"; playerObject.dvsplayer.style.height=(playerObject.settings.height-this.controlHeight)+"px"; playerObject.dvs_play_conteiner.style.width = playerObject.dvsplayer.clientWidth + "px"; playerObject.dvs_play_conteiner.style.backgroundColor = playerObject.settings.backgroundColor; //playerObject.dvs_play_control.style.backgroundColor=playerObject.settings.controlBackgroundColor; playerObject.dvs_play_control.style.backgroundColor="#FFFFFF"; playerObject.dvs_play_control.style.width=playerObject.settings.width + "px"; playerObject.dvs_play_control.style.height=this.controlHeight + "px"; playerObject.dvs_play_control.style.position="absolute"; playerObject.dvs_play_control.style.top=(playerObject.settings.height-this.controlHeight)+"px"; playerObject.dvs_play_control.style.left="0px"; //playerObject.dvs_play_control.style.backgroundImage="url('dvs/images/neo_back_control.png')"; playerObject.dvs_play_control.style.backgroundRepeat="repeat-x"; //video //playerObject.dvsplayer.style.backgroundColor = "#000000"; playerObject.currPosDigitalDisplay.style.display = "none"; playerObject.currVolumeDigitalDisplay.style.display = "none"; playerObject.PlayPauseButton.style.left = "0px"; playerObject.PlayPauseButton.style.top = 4 + "px"; // create additional objects //remove volume control from main conteiner and plase it to additional container playerObject.dvs_play_control.removeChild(playerObject.volumecontrol); playerObject.neoVolumeBlockControl=document.createElement('div'); playerObject.neoVolumeBlockControl.dvspl=playerObject; playerObject.neoVolumeBlockControl.style.position="absolute"; playerObject.neoVolumeBlockControl.style.width="16px"; playerObject.neoVolumeBlockControl.style.height="36px"; playerObject.neoVolumeBlockControl.style.left=playerObject.dvs_play_conteiner.clientWidth-28 + "px"; playerObject.neoVolumeBlockControl.style.top=playerObject.dvs_play_conteiner.clientHeight-34-27 + "px"; playerObject.neoVolumeBlockControl.style.backgroundImage="url('dvs/images/backvolumecontrol_linesimple.png')"; playerObject.neoVolumeBlockControl.appendChild(playerObject.volumecontrol); playerObject.dvs_play_conteiner.appendChild(playerObject.neoVolumeBlockControl); playerObject.volumepic.SetXYdrag(false, true); this.DisplayVolumeControl(playerObject); this.DisplayVolumePicMarker(playerObject); var i; var stepY=(playerObject.volumecontrol.clientHeight-this.volumeBarControlSettings.offsetBottom-this.volumeBarControlSettings.offsetTop-this.volumeBarControlSettings.height*this.volumeBarControlSettings.count)/(this.volumeBarControlSettings.count-1); playerObject.volumecontrol.volumeBars=Array(this.volumeBarControlSettings.count); for (i=0; i pos.left+pos.width+5 || mY < pos.top -5 || mY > pos.top+pos.height+20) { this.dvspl.neoVolumeBlockControl.style.display="none"; this.dvspl.dvs_play_conteiner.onmousemove=null; } }; } }