Commit b30ea7f2 authored by 李纪文's avatar 李纪文

feat: 云台控制修改

parent 13044c08
...@@ -131,6 +131,9 @@ class App extends React.Component { ...@@ -131,6 +131,9 @@ class App extends React.Component {
} }
appendControl() { appendControl() {
const { VideoInfo } = this.props;
const type = VideoInfo?.type || '';
if(type === 'rec') return false;
try { try {
if(!this.domRef.current || this.domRef.current.getElementsByClassName('jessibuca-control').length) return false; if(!this.domRef.current || this.domRef.current.getElementsByClassName('jessibuca-control').length) return false;
const parentElement = this.domRef.current.getElementsByClassName("jessibuca-controls-right")[0]; const parentElement = this.domRef.current.getElementsByClassName("jessibuca-controls-right")[0];
......
...@@ -117,7 +117,7 @@ const RecVideo = (props, ref) => { ...@@ -117,7 +117,7 @@ const RecVideo = (props, ref) => {
<div className={classNames(`${prefixCls}-video`)}> <div className={classNames(`${prefixCls}-video`)}>
{showId && ( {showId && (
<TestVideo <TestVideo
VideoInfo={{ ...VideoInfo, id: showId }} VideoInfo={{ ...VideoInfo, id: showId, type: 'rec' }}
JessibucaObj={{ ...JessibucaObj }} JessibucaObj={{ ...JessibucaObj }}
key={showId} key={showId}
ref={jessibuca} ref={jessibuca}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment