From 12f7e176fed5d338c75813ee6c2a7d510dcf7495 Mon Sep 17 00:00:00 2001 From: ysyfff Date: Wed, 9 Dec 2020 10:28:30 +0800 Subject: [PATCH] update: custom video attribute --- src/core/media.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/media.js b/src/core/media.js index 0df05177..cd6f9396 100644 --- a/src/core/media.js +++ b/src/core/media.js @@ -24,6 +24,7 @@ export default class Media extends React.Component { onTransitionStartIn, onTransitionRequestOut, onTransitionRequestIn, + videoAttribute = {}, ...extra } = media; @@ -37,6 +38,7 @@ export default class Media extends React.Component { src={source} type="video/mp4" controls + {...videoAttribute} /> ); } else {