Skip to content

Commit

Permalink
Fix: only use on danmuka plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 8, 2023
1 parent a6aac5a commit 08000eb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/views/Cinema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,12 @@ onBeforeUnmount(() => {
getMovieList();
const danmukuPlugin = artplayerPluginDanmuku({
// 弹幕数组
danmuku: [],
speed: 4
});
const playerOption = computed(() => {
return {
url: room.currentMovie.pullKey
Expand All @@ -659,14 +665,7 @@ const playerOption = computed(() => {
isLive: room.currentMovie.live,
type: parseVideoType(room.currentMovie),
headers: room.currentMovie.headers,
plugins: [
artplayerPluginDanmuku({
// 弹幕数组
danmuku: [],
speed: 4
}),
syncPlugin.plugin
]
plugins: [danmukuPlugin, syncPlugin.plugin]
};
});
</script>
Expand Down

0 comments on commit 08000eb

Please sign in to comment.