nkoehler / mat-video

:tv: mat-video is an Angular 8/9+ video player using Material!
https://nkoehler.github.io/mat-video/
MIT License
91 stars 47 forks source link

Getting time where I stopped the video in between #42

Closed BNRao closed 4 years ago

BNRao commented 4 years ago

PLEASE FILL THIS OUT IF YOU WANT HELP WITH AN ISSUE!

Bug, feature request, or proposal:

feature request

What is the current behavior?

What is the expected behavior?

I need to get the time where I stopped the video

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV

What is the use-case or motivation for changing an existing behavior?

Requirement for my project

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 7

Is there anything else I should know?

nkoehler commented 4 years ago

The following will set the video time to a typescript variable: currentTime: number

<mat-video [src]="src" [(time)]="currentTime"></mat-video>

When you stop the video, just check the value of currentTime

Closing.