@@ -183,6 +183,8 @@ export class VimeoProvider
183183
184184 setVolume ( volume ) {
185185 this . _remote ( 'setVolume' , volume ) ;
186+ // Always update muted after volume because setting volume resets muted state.
187+ this . _remote ( 'setMuted' , peek ( this . _ctx . $state . muted ) ) ;
186188 }
187189
188190 setPlaybackRate ( rate ) {
@@ -296,7 +298,7 @@ export class VimeoProvider
296298 protected override _buildParams ( ) : VimeoParams {
297299 const { $iosControls } = this . _ctx ,
298300 { keyDisabled } = this . _ctx . $props ,
299- { controls, muted , playsinline } = this . _ctx . $state ,
301+ { controls, playsinline } = this . _ctx . $state ,
300302 showControls = controls ( ) || $iosControls ( ) ;
301303 return {
302304 title : this . title ,
@@ -307,7 +309,6 @@ export class VimeoProvider
307309 h : this . hash ,
308310 keyboard : showControls && ! keyDisabled ( ) ,
309311 transparent : true ,
310- muted : muted ( ) ,
311312 playsinline : playsinline ( ) ,
312313 dnt : ! this . cookies ,
313314 } ;
@@ -352,7 +353,10 @@ export class VimeoProvider
352353 . then ( ( info ) => {
353354 if ( ! info ) return ;
354355
355- const { title, poster, duration, pro } = info ;
356+ const { title, poster, duration, pro } = info ,
357+ { $iosControls } = this . _ctx ,
358+ { controls } = this . _ctx . $state ,
359+ showControls = controls ( ) || $iosControls ( ) ;
356360
357361 this . _timeRAF . _start ( ) ;
358362 this . _pro . set ( pro ) ;
@@ -369,10 +373,6 @@ export class VimeoProvider
369373
370374 this . _ctx . delegate . _ready ( detail , trigger ) ;
371375
372- const { $iosControls } = this . _ctx ,
373- { controls } = this . _ctx . $state ,
374- showControls = controls ( ) || $iosControls ( ) ;
375-
376376 if ( ! showControls ) {
377377 this . _remote ( '_hideOverlay' ) ;
378378 }
0 commit comments