Skip to content

Commit

Permalink
release ui and upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Jun 22, 2023
1 parent f490324 commit 3c97e34
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 82 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export class Player<Context extends Record<string, any> = Record<string, any>> {
if (volume != this.volume) this.setVolume(volume)
if (playbackRate != this.playbackRate) this.setPlaybackRate(playbackRate)
if (isPreloadNone && keepTime) this.$video.load()
if (keepTime) this.seek(currentTime)
if (keepTime && !this.options.isLive) this.seek(currentTime)
if (shouldPlay && !this.isPlaying) this.$video.play()
resolve()
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
},
"devDependencies": {
"@oplayer/core": "workspace:*",
"dashjs": "^4.7.0"
"dashjs": "^4.7.1"
}
}
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@oplayer/torrent": "workspace:*",
"@oplayer/ui": "workspace:*",
"mdx-embed": "^1.1.2",
"next": "^13.4.6",
"next": "^13.4.7",
"nextra": "^2.7.1",
"nextra-theme-docs": "^2.7.1",
"react": "^18.2.0",
Expand All @@ -28,6 +28,6 @@
"devDependencies": {
"@types/react": "^18.2.13",
"@types/react-dom": "^18.2.6",
"sass": "^1.63.4"
"sass": "^1.63.6"
}
}
2 changes: 1 addition & 1 deletion packages/plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@oplayer/core": "workspace:*",
"@oplayer/ui": "workspace:*",
"chokidar": "^3.5.3",
"glob": "^10.2.7",
"glob": "^10.3.0",
"vite-plugin-css-injected-by-js": "^3.1.1"
},
"keywords": [],
Expand Down
16 changes: 16 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## [1.2.29]

- hover background for icon
- add previous,next button icon
```js
// 1. set icon
player.use([ui({ icons: { previous: 'svg', next: 'svg' } })])
// 2. listen event
player.on(['previous', 'next'], () => {
// ...
})
```

```
## [1.2.28]
- fix grid thumbnails
Expand All @@ -9,3 +24,4 @@
- fix IOS loading state
- update desktop default size and mobile size on fullscreen
```
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/ui",
"version": "1.2.28",
"version": "1.2.29",
"description": "ui plugin for oplayer",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
Loading

1 comment on commit 3c97e34

@vercel
Copy link

@vercel vercel bot commented on 3c97e34 Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

oplayer – ./

oplayer-shiyiya.vercel.app
oplayer.vercel.app
oplayer-git-main-shiyiya.vercel.app

Please sign in to comment.