@@ -19,7 +19,7 @@ import {
1919import { defaultStyle } from "../../../core/Constants" ;
2020import { useFullscreen } from "../../../hooks/useFullscreen" ;
2121import { useToggle } from "../../../hooks/useToggle" ;
22- import { Block , Elem } from "../../../utils/bem" ;
22+ import { cn } from "../../../utils/bem" ;
2323import ResizeObserver from "../../../utils/resize-observer" ;
2424import { clamp , isDefined } from "../../../utils/utilities" ;
2525import "./Video.scss" ;
@@ -497,14 +497,14 @@ const HtxVideoView = ({ item, store }) => {
497497
498498 return (
499499 < ObjectTag item = { item } >
500- < Block name = "video-segmentation" ref = { mainContentRef } mod = { { fullscreen : isFullScreen } } >
500+ < div className = { cn ( "video-segmentation" ) . mod ( { fullscreen : isFullScreen } ) . toClassName ( ) } ref = { mainContentRef } >
501501 { item . errors ?. map ( ( error , i ) => (
502502 < ErrorMessage key = { `err-${ i } ` } error = { error } />
503503 ) ) }
504504
505- < Block name = "video" mod = { { fullscreen : isFullScreen } } ref = { videoBlockRef } >
506- < Elem
507- name = " main"
505+ < div className = { cn ( "video" ) . mod ( { fullscreen : isFullScreen } ) . toClassName ( ) } ref = { videoBlockRef } >
506+ < div
507+ className = { cn ( "video" ) . elem ( " main") . toClassName ( ) }
508508 ref = { videoContainerRef }
509509 style = { { height : Number ( item . height ) } }
510510 onMouseDown = { handlePan }
@@ -553,13 +553,12 @@ const HtxVideoView = ({ item, store }) => {
553553 />
554554 </ >
555555 ) }
556- </ Elem >
557- </ Block >
556+ </ div >
557+ </ div >
558558
559559 { loaded && (
560- < Elem
561- name = "timeline"
562- tag = { Timeline }
560+ < Timeline
561+ className = { cn ( "video-segmentation" ) . elem ( "timeline" ) . toClassName ( ) }
563562 playing = { isSyncedBuffering && item . isBuffering ? item . wasPlayingBeforeBuffering : playing }
564563 buffering = { isSyncedBuffering ? item . isBuffering : false }
565564 length = { videoLength }
@@ -612,7 +611,7 @@ const HtxVideoView = ({ item, store }) => {
612611 onAction = { handleAction }
613612 />
614613 ) }
615- </ Block >
614+ </ div >
616615 </ ObjectTag >
617616 ) ;
618617} ;
0 commit comments