Scene queuing (#1214)

* Add missing localisation strings
* Ignore container error in scene streams
* Implement missing FindScenes by ID
This commit is contained in:
WithoutPants
2021-03-31 14:36:11 +11:00
committed by GitHub
parent 496900df42
commit d5e9030768
17 changed files with 677 additions and 75 deletions

View File

@@ -15,6 +15,7 @@ interface IScenePlayerProps {
onReady?: () => void;
onSeeked?: () => void;
onTime?: () => void;
onComplete?: () => void;
config?: GQL.ConfigInterfaceDataFragment;
}
interface IScenePlayerState {
@@ -142,6 +143,12 @@ export class ScenePlayerImpl extends React.Component<
}
}
private onComplete() {
if (this.props?.onComplete) {
this.props.onComplete();
}
}
private onScrubberSeek(seconds: number) {
this.player.seek(seconds);
}
@@ -307,6 +314,7 @@ export class ScenePlayerImpl extends React.Component<
onReady={this.onReady}
onSeeked={this.onSeeked}
onTime={this.onTime}
onOneHundredPercent={() => this.onComplete()}
/>
<ScenePlayerScrubber
scene={this.props.scene}