UNPKG

intentful

Version:

Create Custom Skills with less headache

31 lines (30 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APLVideo = void 0; const helpers_1 = require("../../interfaces/helpers"); const component_1 = require("../component"); class APLVideo extends component_1.APLComponent { constructor(props) { super('Video', props); } componentSpecificModel() { return { audioTrack: this.props.audioTrack, autoplay: this.props.autoplay, muted: this.props.muted, scale: this.props.scale, source: this.props.source, onEnd: this.props.onEnd, onPause: this.props.onPause, onPlay: this.props.onPlay, onTimeUpdate: this.props.onTimeUpdate, onTrackFail: this.props.onTrackFail, onTrackReady: this.props.onTrackReady, onTrackUpdate: this.props.onTrackUpdate }; } componentSpecificRequestHandlers() { return (0, helpers_1.convertVideoSourcePropsToRequestHandlers)(this.props); } } exports.APLVideo = APLVideo;