forked from BRETT/BRETT
Loop uploaded videos during playback
Enable Plyr's loop option so videos restart automatically instead of stopping at the end. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,7 @@ onMounted(async () => {
|
|||||||
const { default: PlyrClass } = await import('plyr')
|
const { default: PlyrClass } = await import('plyr')
|
||||||
player = new PlyrClass(videoEl.value, {
|
player = new PlyrClass(videoEl.value, {
|
||||||
disableContextMenu: false,
|
disableContextMenu: false,
|
||||||
|
loop: { active: true },
|
||||||
storage: { enabled: true, key: '4brett-player' },
|
storage: { enabled: true, key: '4brett-player' },
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user