Skip to content

Commit

Permalink
fix(player): vimeo playing and progress events not fired
Browse files Browse the repository at this point in the history
closes #1054
  • Loading branch information
mihar-22 committed Dec 15, 2023
1 parent 5720ce3 commit a3fceac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions packages/vidstack/src/providers/vimeo/embed/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const trackedVimeoEvents: VimeoEvent[] = [
// 'loadeddata',
// 'loadedmetadata',
// 'loadstart',
'playProgress',
'loadProgress',
'pause',
'play',
'playbackratechange',
Expand Down Expand Up @@ -62,7 +64,7 @@ export type VimeoEvent =
| 'pause'
| 'play'
| 'playbackratechange'
| 'playprogress'
| 'playProgress'
| 'progress'
| 'qualitychange'
| 'ready'
Expand Down Expand Up @@ -96,8 +98,8 @@ export interface VimeoEventPayload {
play: VimeoPlayPayload;
pause: void;
ready: void;
playprogress: VimeoProgressPayload;
loadprogress: VimeoProgressPayload;
playProgress: VimeoProgressPayload;
loadProgress: VimeoProgressPayload;
bufferstart: void;
bufferend: void;
loaded: { id: number };
Expand Down
4 changes: 2 additions & 2 deletions packages/vidstack/src/providers/vimeo/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ export class VimeoProvider
case 'play':
this._onPlay(trigger);
break;
case 'playprogress':
case 'playProgress':
this._onPlayProgress(trigger);
break;
case 'pause':
this._onPause(trigger);
break;
case 'loadprogress':
case 'loadProgress':
this._onLoadProgress(payload.seconds, trigger);
break;
case 'waiting':
Expand Down

0 comments on commit a3fceac

Please sign in to comment.