自用示例
<div class="video"> <p style='margin:0;padding:0;' id='p1'><p><script type="text/javascript" src="http://player.youku.com/jsapi"></script><p style="width:800px;height=640px"><br/></p><p id="test"><br/></p> <script type="text/javascript">player0 = new YKU.Player('test',{ client_id: 'c253a1c2c2d2b127', vid: 'XODY4MDc1NTcy', width: '800', height: '640', show_related: false, });</script> </div>
网络收集示例
<div id="youkuplayer"></div> <script type="text/javascript" src="http://player.youku.com/jsapi"> player = new YKU.Player('youkuplayer',{ client_id: 'YOUR YOUKUOPENAPI CLIENT_ID', vid: 'YOUKU VIDEOID' }); function playVideo() { player.playVideo(); } function pauseVideo() { player.pauseVideo(); } function seekTo(s) { player.seekTo(s); } function currentTime() { return player.currentTime(); }
相关专题
API
2022-06-15 121API是开发中必备知识点,合理的应用API可以大大节省开发成本,为您整理收集了包含API接口的信息,包含API接口,API代码,API源码,助你更快的学习使用API技术....
- 带五套模板的API接口系统源码 [2024-01-18]
- layui框架API接口调用管理系统源码 [2024-01-16]
- 小西瓜API管理系统源码2.0 [2023-12-07]
- ApiDebug在线api接口调试浏览器插件 [2023-12-07]
- 抖音短视频去水印官方API接口源码 [2023-10-04]