import * as Plyr from 'plyr' ; import { PlyrDriver , PlyrDriverCreateParams , PlyrDriverDestroyParams , PlyrDriverUpdateSourceParams } from './plyr-driver' ; export class DefaultPlyrDriver implements PlyrDriver { create ( params ) { return new Plyr ( params . videoElement , params . options ) ; } updateSource ( params ) { params . plyr . source = params . source ; } destroy ( params ) { params . plyr . destroy ( ) ; } }