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

feat: 云台控制修改

parent 13044c08
......@@ -131,6 +131,9 @@ class App extends React.Component {
}
appendControl() {
const { VideoInfo } = this.props;
const type = VideoInfo?.type || '';
if(type === 'rec') return false;
try {
if(!this.domRef.current || this.domRef.current.getElementsByClassName('jessibuca-control').length) return false;
const parentElement = this.domRef.current.getElementsByClassName("jessibuca-controls-right")[0];
......
......@@ -117,7 +117,7 @@ const RecVideo = (props, ref) => {
<div className={classNames(`${prefixCls}-video`)}>
{showId && (
<TestVideo
VideoInfo={{ ...VideoInfo, id: showId }}
VideoInfo={{ ...VideoInfo, id: showId, type: 'rec' }}
JessibucaObj={{ ...JessibucaObj }}
key={showId}
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