- 4.代码使用
- 4.1 [A]swfObject调用
- 4.2 [B]object调用
- 4.3 [C]Ebemb调用
- 4.4 [D]JS形式调用
- 4.5 JS函数交互
- 4.6 广告相关
- [1] 前置广告
- [2] 视频广告
- [3] 暂停广告
- [4] 角标广告
- [5] 后置广告
- [6] 滚动文字广告
- 4.7 开灯关灯
- 4.8 高清模式
- 4.9 分享模式
- 4.10 视频模式
- 4.11 RTMP点播
- 4.12 RTMP直播
- 4.13 视频结束动作
- 4.14 色彩自定义
- 4.15 移动终端适配(New)
- 4.16 HLS直播(m3u8适配)
- 4.17 适配PC/安卓/苹果
- 4.18 收费模式(节目预览)
- 4.19 播放器logo设定
- 4.20 视频文件说明
- 4.21 提示点MoveTip
- 4.22 列表连播功能
视频模式
视频模式:视频模式是指视频画面的显示模式,本播放器可以在配置文件中设定播放器的初始化模式。视频模式共分:
默认等比模式/铺满拉伸/ 4:3/ 16:9 四种模式。
参数名称 | 数据类型 | 参数描述 | 备注 |
视频模式 功能相关的参数 | |||
JcScpsetMode | Number | 视频初始播放模式 | 值为1 / 2 / 3 / 4 分别对应 默认等比模式/铺满拉伸/4:3/16:9 |
当您希望初始化设定视频模式时,可以直接在配置文件中设定,如下( 注意红色加粗 ):
例(4.10)-1:配置文件参数范例 (以下,值为1 ,表示初始化视频将以 默认[等比缩放] 模式来显示)
<CuPlayer>
<Player_Set
JcScpBufferTime = "5"
JcScpVolume = "75"
JcScpCode = "utf8"
JcScpImgDisplay = "no"
JcScpAutoHideControl ="yes"
JcScpControlHideTime ="0.5"
JcScpControlHeight ="40"
JcScpShowLis t= "yes"
JcScpAutoRepeat = "no"
JcScpsetMode = "1"
JcScpAFrontCanClose = "no"
JcScpShowRightmenu = "yes"
JcScpShareMode = "JcScpVideoPath"
/>
<Logo_Set
JcScpLogoDisplay = "yes"
......
......
例(4.10)-2:配置文件参数范例 (以下,值为2 ,表示初始化视频将以 铺满拉伸 模式来显示)
<CuPlayer>
<Player_Set
JcScpBufferTime = "5"
JcScpVolume = "75"
JcScpCode = "utf8"
JcScpImgDisplay = "no"
JcScpAutoHideControl ="yes"
JcScpControlHideTime ="0.5"
JcScpControlHeight ="40"
JcScpShowLis t= "yes"
JcScpAutoRepeat = "no"
JcScpsetMode = "2"
JcScpAFrontCanClose = "no"
JcScpShowRightmenu = "yes"
JcScpShareMode = "JcScpVideoPath"
/>
<Logo_Set
JcScpLogoDisplay = "yes"
......
......
例(4.10)-3:配置文件参数范例 (以下,值为3 ,表示初始化视频将以 4:3 模式来显示)
<CuPlayer>
<Player_Set
JcScpBufferTime = "5"
JcScpVolume = "75"
JcScpCode = "utf8"
JcScpImgDisplay = "no"
JcScpAutoHideControl ="yes"
JcScpControlHideTime ="0.5"
JcScpControlHeight ="40"
JcScpShowLis t= "yes"
JcScpAutoRepeat = "no"
JcScpsetMode = "3"
JcScpAFrontCanClose = "no"
JcScpShowRightmenu = "yes"
JcScpShareMode = "JcScpVideoPath"
/>
<Logo_Set
JcScpLogoDisplay = "yes"
......
......
例(4.10)-4:配置文件参数范例 (以下,值为4 ,表示初始化视频将以 16:9 模式来显示)
<CuPlayer>
<Player_Set
JcScpBufferTime = "5"
JcScpVolume = "75"
JcScpCode = "utf8"
JcScpImgDisplay = "no"
JcScpAutoHideControl ="yes"
JcScpControlHideTime ="0.5"
JcScpControlHeight ="40"
JcScpShowLis t= "yes"
JcScpAutoRepeat = "no"
JcScpsetMode = "4"
JcScpAFrontCanClose = "no"
JcScpShowRightmenu = "yes"
JcScpShareMode = "JcScpVideoPath"
/>
<Logo_Set
JcScpLogoDisplay = "yes"
......
......