import { BaseProvider } from '../../core/esl-media-provider' ; import { HTMLMediaProvider } from './media-provider' ; /**
 * Simple Video API provider for  ESLMedia author Yuliya Adamskaya
  @ BaseProvider . register export class VideoProvider extends HTMLMediaProvider { static readonly providerName : string = 'video' ; static readonly urlPattern = /\.(mp4|webm|ogv|mov)(\?|$)/ ; protected _el : HTMLVideoElement ; protected createElement ( ) { const el = document . createElement ( 'video' ) ; el . src = this . config . mediaSrc || '' ; return el ; } get defaultAspectRatio ( ) : number { return this . _el . videoWidth / this . _el . videoHeight ; } }