File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,16 @@ shaka.ui.MuteButton = class extends shaka.ui.Element {
91
91
this . updateIcon_ ( ) ;
92
92
} ) ;
93
93
94
+ this . eventManager . listen ( this . player , 'loading' , ( ) => {
95
+ this . updateLocalizedStrings_ ( ) ;
96
+ this . updateIcon_ ( ) ;
97
+ } ) ;
98
+
99
+ this . eventManager . listen ( this . controls , 'caststatuschanged' , ( ) => {
100
+ this . updateLocalizedStrings_ ( ) ;
101
+ this . updateIcon_ ( ) ;
102
+ } ) ;
103
+
94
104
this . eventManager . listen ( this . adManager ,
95
105
shaka . ads . Utils . AD_VOLUME_CHANGED , ( ) => {
96
106
this . updateLocalizedStrings_ ( ) ;
Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ shaka.ui.VolumeBar = class extends shaka.ui.RangeElement {
40
40
'volumechange' ,
41
41
( ) => this . onPresentationVolumeChange_ ( ) ) ;
42
42
43
+ this . eventManager . listen ( this . player ,
44
+ 'loading' ,
45
+ ( ) => this . onPresentationVolumeChange_ ( ) ) ;
46
+
47
+ this . eventManager . listen ( this . controls ,
48
+ 'caststatuschanged' ,
49
+ ( ) => this . onPresentationVolumeChange_ ( ) ) ;
50
+
43
51
this . eventManager . listen ( this . adManager ,
44
52
shaka . ads . Utils . AD_VOLUME_CHANGED ,
45
53
( ) => this . onAdVolumeChange_ ( ) ) ;
You can’t perform that action at this time.
0 commit comments