Skip to content

Commit

Permalink
Merge pull request #144 from vlitejs/fix/poster-is-paused
Browse files Browse the repository at this point in the history
Fix poster display after the first playback
  • Loading branch information
yoriiis authored Oct 22, 2024
2 parents 5175ff0 + 141b370 commit 04e4198
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## 6.0.5

### Fixes

- Fix poster display after the first playback, `isPaused` is reset on media end ([#144](https://github.com/vlitejs/vlite/pull/144))

## 6.0.4

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vlitejs",
"version": "6.0.4",
"version": "6.0.5",
"description": "vLitejs is a fast and lightweight Javascript library for customizing video and audio player in Javascript with a minimalist theme (HTML5, Youtube, Vimeo, Dailymotion)",
"keywords": [
"video",
Expand Down
1 change: 1 addition & 0 deletions src/core/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ export default class Player {
} else {
this.elements.outerContainer.classList.replace('v-playing', 'v-paused')
this.elements.outerContainer.classList.add('v-firstStart')
this.isPaused = null
}

if (this.elements.poster) {
Expand Down

0 comments on commit 04e4198

Please sign in to comment.