mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
For embed players, use longer timeout to keep controls visible
This commit is contained in:
parent
61bfa67e42
commit
41b0bdcb50
@ -1592,14 +1592,16 @@ function VideoJSPlayer({ videoId = 'default-video' }) {
|
|||||||
|
|
||||||
// Default sample video
|
// Default sample video
|
||||||
return [
|
return [
|
||||||
/* {
|
|
||||||
src: '/videos/sample-video-white.mp4',
|
|
||||||
type: 'video/mp4',
|
|
||||||
}, */
|
|
||||||
{
|
{
|
||||||
|
src: '/videos/sample-video.mp4',
|
||||||
|
// src: '/videos/sample-video-white.mp4',
|
||||||
|
//src: '/videos/sample-video.big.mp4',
|
||||||
|
type: 'video/mp4',
|
||||||
|
},
|
||||||
|
/* {
|
||||||
src: '/videos/sample-video.mp3',
|
src: '/videos/sample-video.mp3',
|
||||||
type: 'audio/mpeg',
|
type: 'audio/mpeg',
|
||||||
},
|
}, */
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1921,8 +1923,7 @@ function VideoJSPlayer({ videoId = 'default-video' }) {
|
|||||||
|
|
||||||
// Milliseconds of inactivity before user considered inactive (0 = never)
|
// Milliseconds of inactivity before user considered inactive (0 = never)
|
||||||
// For embed players, use longer timeout to keep controls visible
|
// For embed players, use longer timeout to keep controls visible
|
||||||
//inactivityTimeout: isEmbedPlayer ? 5000 : 2000,
|
inactivityTimeout: isEmbedPlayer || isTouchDevice ? 5000 : 2000,
|
||||||
inactivityTimeout: 2000,
|
|
||||||
|
|
||||||
// Language code for player (e.g., 'en', 'es', 'fr')
|
// Language code for player (e.g., 'en', 'es', 'fr')
|
||||||
language: 'en',
|
language: 'en',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user