parent
80cddf0fd8
commit
5952632816
|
@ -72,12 +72,15 @@ export default class HLS extends Component {
|
|||
|
||||
onSeeked = () => {
|
||||
if (!this.props.playing) {
|
||||
this.props.onLoadEnd();
|
||||
}
|
||||
};
|
||||
|
||||
onLoadedData = () => {
|
||||
if (this.shouldInitVideoTime) {
|
||||
this.videoElement.currentTime = this.props.startTime;
|
||||
this.shouldInitVideoTime = false;
|
||||
}
|
||||
this.props.onLoadEnd();
|
||||
}
|
||||
};
|
||||
|
||||
loadSource(source = this.props.source) {
|
||||
|
@ -112,6 +115,7 @@ export default class HLS extends Component {
|
|||
onPlaying={this.props.onLoadEnd}
|
||||
onSeeking={this.onSeeking}
|
||||
onSeeked={this.onSeeked}
|
||||
onLoadedData={this.onLoadedData}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue