feat: Add a method to support player in the same page (e.g. for the embed page)

This commit is contained in:
Yiannis Christodoulou
2025-09-18 11:15:26 +03:00
parent e780ffd5f9
commit 5066f60c00
5 changed files with 29 additions and 14 deletions
+2 -2
View File
@@ -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;