mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
add posterMix
This commit is contained in:
1 parent
d5b4851a8f
commit
ec97a5912e
9 files changed
+77
-55
No files matched your search
+12
-1
@@ -1,6 +1,17 @@
|
||||
const $container = document.querySelector('.artplayer-app');
|
||||
|
||||
// 在服务器端可以直接访问 Artplayer.html 属性,返回供 ssr 使用的 html
|
||||
// 然后直接插值于播放器的容器里
|
||||
// const Artplayer = require('artplayer');
|
||||
// console.log(Artplayer.html);
|
||||
// 在浏览器端,开启 useSSR 即可
|
||||
|
||||
// 模拟效果
|
||||
$container.innerHTML = Artplayer.html;
|
||||
|
||||
var art = new Artplayer({
|
||||
useSSR: true,
|
||||
container: '.artplayer-app',
|
||||
container: $container,
|
||||
url: 'https://artplayer.org/assets/sample/video.mp4',
|
||||
title: 'One More Time One More Chance',
|
||||
poster: '/assets/sample/poster.jpg',
|
||||
|
||||
Reference in new issue
Block a user