mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-10-06 22:32:41 +07:00
feat: Skip the autoplay if is playlist by passing the isPlayList to the video.js
This commit is contained in:
@@ -16,6 +16,7 @@ import React, { useEffect, useRef } from 'react';
|
||||
const VideoJSEmbed = ({
|
||||
data,
|
||||
useRoundedCorners,
|
||||
isPlayList,
|
||||
playerVolume,
|
||||
playerSoundMuted,
|
||||
videoQuality,
|
||||
@@ -66,6 +67,7 @@ const VideoJSEmbed = ({
|
||||
window.MEDIA_DATA = {
|
||||
data: data || {},
|
||||
useRoundedCorners: useRoundedCorners,
|
||||
isPlayList: isPlayList,
|
||||
playerVolume: playerVolume || 0.5,
|
||||
playerSoundMuted: playerSoundMuted || (urlMuted === '1'),
|
||||
videoQuality: videoQuality || 'auto',
|
||||
|
||||
@@ -392,6 +392,7 @@ export default class VideoViewer extends React.PureComponent {
|
||||
return React.createElement(VideoJSEmbed, {
|
||||
data: this.props.data,
|
||||
useRoundedCorners: site.useRoundedCorners,
|
||||
isPlayList: !!MediaPageStore.get('playlist-id'),
|
||||
playerVolume: this.browserCache.get('player-volume'),
|
||||
playerSoundMuted: this.browserCache.get('player-sound-muted'),
|
||||
videoQuality: this.browserCache.get('video-quality'),
|
||||
|
||||
Reference in New Issue
Block a user