We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95caeb5 + 1860473 commit a7950d8Copy full SHA for a7950d8
src/ShellVideo/ShellVideo.js
@@ -122,7 +122,6 @@ function ShellVideo(options) {
122
break;
123
}
124
case 'duration': {
125
- setBackground(false);
126
var intDuration = args.data | 0;
127
// Accumulate average duration over time. if it is greater than minClipDuration
128
// 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
avgDuration = avgDuration ? (avgDuration + intDuration) >> 1 : intDuration;
139
props.loaded = intDuration > 0;
140
- if(props.loaded) onPropChanged('loaded');
+ if(props.loaded) {
+ setBackground(false);
141
+ onPropChanged('loaded');
142
+ }
143
144
145
case 'time-pos': {
0 commit comments