File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @api.stream/studio-kit" ,
3- "version" : " 3.0.43 " ,
3+ "version" : " 3.0.44 " ,
44 "description" : " Client SDK for building studio experiences with API.stream" ,
55 "license" : " MIT" ,
66 "private" : false ,
Original file line number Diff line number Diff line change @@ -110,12 +110,14 @@ export const Background = {
110110 if ( videoRef . current ) {
111111 videoRef . current ! . src = src
112112 videoRef . current ! . play ( ) . catch ( ( ) => {
113- videoRef . current . muted = true
114- videoRef . current . play ( )
113+ if ( videoRef . current ) {
114+ videoRef . current . muted = true
115+ videoRef . current . play ( )
116+ }
115117 } )
116118 if ( hasPermission ( role , Permission . UpdateProject ) ) {
117119 interval = setInterval ( ( ) => {
118- if ( videoRef . current . duration ) {
120+ if ( videoRef . current ? .duration ) {
119121 const timePending =
120122 videoRef . current . duration - videoRef . current . currentTime
121123 trigger ( 'VideoTimeUpdate' , {
You can’t perform that action at this time.
0 commit comments