Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix poster display after the first playback #144

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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