mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-10-06 22:32:41 +07:00
feat: Add a method to support player in the same page (e.g. for the embed page)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import React from 'react';
|
||||
import { VideoJSPlayer } from './components';
|
||||
|
||||
function VideoJS() {
|
||||
return <VideoJSPlayer />;
|
||||
function VideoJS({ videoId = 'default-video', ...props }) {
|
||||
return <VideoJSPlayer videoId={videoId} {...props} />;
|
||||
}
|
||||
|
||||
export default VideoJS;
|
||||
|
||||
Reference in New Issue
Block a user