tips
Updated: 2024-09-11 15:29:22
<div id="player"></div>
<script>
new Vue({
el: '#player',
data() {
return {
vodPlayerJs: 'https://player.polyv.net/script/player.js',
vid:'88083abbf5b42072ec029201d9fee095_8',
};
},
mounted(){
this.loadPlayerScript(this.loadPlayer);
},
methods: {
loadPlayerScript(callback) {
if (!window.polyvPlayer) {
const myScript = document.createElement('script');
myScript.setAttribute('src', this.vodPlayerJs);
myScript.onload = callback;
document.body.appendChild(myScript);
} else {
callback();
}
},
loadPlayer() {
const polyvPlayer = window.polyvPlayer;
this.player = polyvPlayer({
wrap: '#player',
vid: this.vid ,
autoplay:false
});
}
},
destroyed() {
if (this.player) {
this.player.destroy();
}
}
})
</script>
- Uncategorized
- Web Viewing Page
- Page Menu
- Page Interaction
- Quick Settings
- Page Info
- Page Viewing Conditions
- Live Stream Interaction
- Get Channel Lottery Record List
- Get Winning Records for a Single Channel Session Lottery
- Export Winning Records for a Single Channel Session Lottery
- Send Like
- Send Tipping Message
- Set Lottery Winner Info
- Set Channel Survey Info
- Query Channel Survey Details
- Query Channel Survey List
- Query Channel Survey Results
- Paginate Query Survey Results
- Query Check-in Results
- Query Check-in Records by Check-in ID
- Query Check-in Records by Session ID
- Query Channel Quiz Card Results
- Web Viewing Page
- Viewing Data
- Get Historical Peak Concurrent Viewers for a Channel Within a Time Range
- Query Channel Viewing Logs
- Paginate Query Channel Viewing Logs
- Query Channel Statistics for a Specific Time Period
- Query Aggregated Statistics for Multiple Channels
- Query Channel Real-Time Online Viewers
- Query Real-Time Online Viewers for Multiple Channels
- Query Channel Historical Concurrent Viewers
- Document Management
- Account-Level Operations
- Modify Live Stream Channel Category Name
- Delete Live Stream Channel Category
- Modify Live Stream Channel Category Order
- Get Live Stream User Account Info API
- Get Account Co-Stream Minutes Usage and Remaining
- Get All Account Channel Basic Info API
- Get Account Replay Videos
- Create Live Stream Category Under Account
- Query Live Stream Categories Under Account
- Set Feature Toggle Status
- Set Account Single Sign-On Token
- Query Feature Toggle Status API
- Query Detailed Info for All Channels Under Account
- Query Revenue Details for All or a Specific Channel Under Account
- Query Summary Info for All Channels Under Account
- Channel Management
