File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ shaka.ui.PlayButton = class extends shaka.ui.Element {
126
126
*/
127
127
updateAriaLabel ( ) {
128
128
const LocIds = shaka . ui . Locales . Ids ;
129
- if ( this . isEnded ( ) ) {
129
+ if ( this . isEnded ( ) && this . video . duration ) {
130
130
this . button . ariaLabel = this . localization . resolve ( LocIds . REPLAY ) ;
131
131
} else {
132
132
const label = this . isPaused ( ) ? LocIds . PLAY : LocIds . PAUSE ;
@@ -140,7 +140,7 @@ shaka.ui.PlayButton = class extends shaka.ui.Element {
140
140
*/
141
141
updateIcon ( ) {
142
142
const Icons = shaka . ui . Enums . MaterialDesignIcons ;
143
- if ( this . isEnded ( ) ) {
143
+ if ( this . isEnded ( ) && this . video . duration ) {
144
144
this . button . textContent = Icons . REPLAY ;
145
145
} else {
146
146
this . button . textContent = this . isPaused ( ) ? Icons . PLAY : Icons . PAUSE ;
You can’t perform that action at this time.
0 commit comments