Skip to content

Commit 04e4198

Browse files
authored
Merge pull request #144 from vlitejs/fix/poster-is-paused
Fix poster display after the first playback
2 parents 5175ff0 + 141b370 commit 04e4198

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## 6.0.5
4+
5+
### Fixes
6+
7+
- Fix poster display after the first playback, `isPaused` is reset on media end ([#144](https://github.com/vlitejs/vlite/pull/144))
8+
39
## 6.0.4
410

511
### Fixes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vlitejs",
3-
"version": "6.0.4",
3+
"version": "6.0.5",
44
"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)",
55
"keywords": [
66
"video",

src/core/player.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ export default class Player {
319319
} else {
320320
this.elements.outerContainer.classList.replace('v-playing', 'v-paused')
321321
this.elements.outerContainer.classList.add('v-firstStart')
322+
this.isPaused = null
322323
}
323324

324325
if (this.elements.poster) {

0 commit comments

Comments
 (0)