Commit 1860473 1 parent 95caeb5 commit 1860473 Copy full SHA for 1860473
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ function ShellVideo(options) {
122
122
break ;
123
123
}
124
124
case 'duration' : {
125
- setBackground ( false ) ;
126
125
var intDuration = args . data | 0 ;
127
126
// Accumulate average duration over time. if it is greater than minClipDuration
128
127
// and equal to the currently reported duration, it is returned as video length.
@@ -137,7 +136,10 @@ function ShellVideo(options) {
137
136
// which is around 34 years of playback time.
138
137
avgDuration = avgDuration ? ( avgDuration + intDuration ) >> 1 : intDuration ;
139
138
props . loaded = intDuration > 0 ;
140
- if ( props . loaded ) onPropChanged ( 'loaded' ) ;
139
+ if ( props . loaded ) {
140
+ setBackground ( false ) ;
141
+ onPropChanged ( 'loaded' ) ;
142
+ }
141
143
break ;
142
144
}
143
145
case 'time-pos' : {
You can’t perform that action at this time.
0 commit comments