import { Component , ElementRef } from '@angular/core' ; import { VimeComponent } from '@vime/angular' ; @ Component ( { selector : 'tap-sides-to-seek' , templateUrl : './tap-sides-to-seek.component.html' , } ) export class TapSidesToSeekComponent extends VimeComponent { currentTime = 0 ; duration = - 1 ; see https constructor ( protected ref ) { super ( [ 'currentTime' , 'duration' ] ) ; } onSeekBackward ( ) { if ( this . currentTime < 5 ) return ; this . currentTime -= 5 ; } onSeekForward ( ) { if ( this . currentTime > this . duration - 5 ) return ; this . currentTime += 5 ; } }