This commit is contained in:
LittleBoy 2024-12-17 20:54:28 +08:00
parent 661b6f38da
commit e1bcc4c13f
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ export const Player = React.forwardRef<PlayerInstance, Props>((props, ref) => {
playerVideo.setAttribute('playsInline', 'true')
playerVideo.setAttribute('webkit-playsinline', 'true')
if(props.className) playerVideo.setAttribute('className', props.className)
document.querySelector('.video-player-container-inner').appendChild(playerVideo)
document.querySelector('.video-player-container-inner')!.appendChild(playerVideo)
const player = TCPlayer(playerId, {
//sources: [{src: props.url}],

View File

@ -24,7 +24,7 @@ export default function VideoIndex() {
checkedAll: false,
playingIndex: -1,
})
const [checkedIdArray, setCheckedIdArray] = useState<number[]>([])
const [checkedIdArray, setCheckedIdArray] = useState<Id[]>([])
// 加载列表
const loadList = (needReset = true) => {
@ -172,7 +172,7 @@ export default function VideoIndex() {
{/* confirmMessage={`是否确定一键推流选中新闻视频?`}*/}
{/* onSuccess={loadList}*/}
{/*>一键推流</ButtonBatch>*/}
<ButtonPush2Room ids={checkedIdArray}/>
<ButtonPush2Room ids={checkedIdArray} list={videoData}/>
</div>
</div>
<div className="video-player-container ml-16 w-[360px] flex flex-col">