4.19 播放器logo设定

 

播放器logo参数,请在播放器的[配置文件]中,按自己的实际情况进行设定,可以设定是否显示Logo,Logo地址,Logo显示位置,Logo宽度,Logo高度,Logo透明度,具体示例参考如下:

 

播放器Logo设置参数
JcScpLogoDisplay String 是否显示Logo图标 yes/no
JcScpLogoPath String Logo地址  
JcScpLogoPosition String Logo位置 top-right/top-left/bottom-left/bottom-right
JcScpLogoWidth Number Logo宽度  
JcScpLogoHeight Number Logo高度  
JcScpLogoAlpha Number Logo透明度 值为0.0 - 1.0

 

常见问题提示:

经常有用户反映,为什么我开启显示logo,也添加了logo地址,为什么在播放器中不显示呢?是不是播放器不支持?
我在这特别提示大家,这个logo地址,强烈推荐使用根地址,如下:
JcScpLogoPath = "images/logo.png" (不推荐相对地址写法,当网页目录层级改变时,容易引起调用logo出错)
JcScpLogoPath = "/player/images/logo.png" (强力推荐根地址写法,这种写法最佳)

 

例(2.3.1)-1:播放器logo参数设定示例2 (显示Logo、Logo具右上角、Logo透明度为100%)

//配置文件参数
......
<Logo_Set
JcScpLogoDisplay = "yes"
JcScpLogoPath = "/player/images/logo.png"
JcScpLogoPosition = "top-left"
JcScpLogoWidth = "180"
JcScpLogoHeight = "70"
JcScpLogoAlpha = "1"
/>
......

本例效果:

 

例(2.3.1)-2:播放器logo参数设定示例2 (显示Logo、Logo具左上角、Logo透明度为100%)

//配置文件参数
......
<Logo_Set
JcScpLogoDisplay = "yes"
JcScpLogoPath = "/player/images/logo.png"
JcScpLogoPosition = "top-right"
JcScpLogoWidth = "180"
JcScpLogoHeight = "70"
JcScpLogoAlpha = "1"
/>
......

本例效果:

 

例(2.3.1)-3:播放器logo参数设定示例3 (显示Logo、Logo具右上角、Logo透明度为50%)

//配置文件参数
......
<Logo_Set
JcScpLogoDisplay = "yes"
JcScpLogoPath = "/player/Images/logo.png"
JcScpLogoPosition = "top-right"
JcScpLogoWidth = "150"
JcScpLogoHeight = "70"
JcScpLogoAlpha = "0.5"
/>
......

 

例(2.3.1)-4:播放器logo参数设定示例4 (显示Logo、Logo具右下角、Logo透明度为100%)

//配置文件参数
......
<Logo_Set
JcScpLogoDisplay = "yes"
JcScpLogoPath = "/player/Images/logo.png"
JcScpLogoPosition = "bottom-right"
JcScpLogoWidth = "150"
JcScpLogoHeight = "70"
JcScpLogoAlpha = "1"
/>
......

 

例(2.3.1)-5:播放器logo参数设定示例5 (隐藏不显示Logo)

//配置文件参数
......
<Logo_Set
JcScpLogoDisplay = "no"
JcScpLogoPath = "/player/Images/logo.png"
JcScpLogoPosition = "top-right"
JcScpLogoWidth = "150"
JcScpLogoHeight = "70"
JcScpLogoAlpha = "0.5"
/>
......