Skip to content

Commit 1860473

Browse files
committed
Shell v5 - Background Fix
1 parent 95caeb5 commit 1860473

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ShellVideo/ShellVideo.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ function ShellVideo(options) {
122122
break;
123123
}
124124
case 'duration': {
125-
setBackground(false);
126125
var intDuration = args.data | 0;
127126
// Accumulate average duration over time. if it is greater than minClipDuration
128127
// and equal to the currently reported duration, it is returned as video length.
@@ -137,7 +136,10 @@ function ShellVideo(options) {
137136
// which is around 34 years of playback time.
138137
avgDuration = avgDuration ? (avgDuration + intDuration) >> 1 : intDuration;
139138
props.loaded = intDuration > 0;
140-
if(props.loaded) onPropChanged('loaded');
139+
if(props.loaded) {
140+
setBackground(false);
141+
onPropChanged('loaded');
142+
}
141143
break;
142144
}
143145
case 'time-pos': {

0 commit comments

Comments
 (0)