Polyv Help Center

Help Center

10-Minute Quick Start with Video on Demand

Updated: 2021-05-18 14:27:41

Objective

  This document will guide you through completing a full video-on-demand business process in 10 minutes, provided that the system initialization process has been completed.

Video on Demand Business Overview

Process

  This scenario is suitable for the general video-on-demand publishing workflow, including four steps: video upload, video management, publishing and viewing, and log retrieval.

image-20210414110739168

Code Examples

Video Upload

Video Management

Publishing Management - Watch via WeChat

Publishing Management - Watch via Embedded Player HTML Code

<script src='//player.polyv.net/script/player.js'></script>
<div id='plv_88083abbf5d3d0d1bb3d7f04e231b8d8_8'></div><!-- “plv_”之后为视频id-->
<script>
var player = polyvPlayer({
  'wrap':'#plv_88083abbf5d3d0d1bb3d7f04e231b8d8_8', // ”#plv_“之后为视频id
  'width':'600',
  'height':'338',
  'vid': '88083abbf5d3d0d1bb3d7f04e231b8d8_8', // 视频id
  'playsafe': '' // 播放加密视频的凭证, 取值参考文档: https://help.polyv.net/index.html#/vod/api/playsafe/token/create_token
});
</script>

The video ID is the one returned by the video upload API. Insert this HTML code snippet into your website's HTML file to play the video.

Log Retrieval

联系客服,在线咨询