Skip to content

Commit

Permalink
Merge branch 'main' of github.com:shiyiya/oplayer into main
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Nov 14, 2022
2 parents e4d5c65 + 213cffd commit a9184d3
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 67 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Player.make(document.getElementById('oplayer'), {

## Who use OPlayer?

- [UPV](https://月色真美.life) : free animes no ad
- [UPV](https://web.月色真美.life) : free animes no ad
- [enime.moe](https://enime.moe) : An anime streaming site. Just hop in and watch with speed without VPN or ads

## Support
Expand Down
2 changes: 1 addition & 1 deletion examples/standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@oplayer/dash": "workspace:*",
"@oplayer/hls": "workspace:*",
"@oplayer/ui": "workspace:*",
"hls.js": "^1.2.5",
"hls.js": "^1.2.7",
"lit": "^2.4.1"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@babel/plugin-proposal-object-rest-spread": "^7.20.2",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-destructuring": "^7.20.2",
"@babel/plugin-transform-parameters": "^7.20.1",
"@babel/plugin-transform-parameters": "^7.20.3",
"@babel/plugin-transform-spread": "^7.19.0",
"@babel/plugin-transform-template-literals": "^7.18.9",
"@changesets/cli": "^2.25.2",
Expand All @@ -46,7 +46,7 @@
"terser": "^5.15.1",
"tslib": "^2.4.1",
"typescript": "^4.8.4",
"vite": "^3.2.2",
"vite": "^3.2.3",
"vite-plugin-banner": "^0.6.1"
}
}
7 changes: 4 additions & 3 deletions packages/core/src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,10 @@ export class Player {
this.isCustomLoader = false
}

async changeQuality(src: string) {
this.emit('videoqualitychange', src)
await this.load({ src })
async changeQuality(source: Omit<Source, 'poster'>) {
this._resetStatus()
this.emit('videoqualitychange', source)
await this.load(source)
}

async changeSource(source: Source) {
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.5.0"
"dashjs": "^4.5.1"
}
}
2 changes: 1 addition & 1 deletion packages/hls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
},
"devDependencies": {
"@oplayer/core": "workspace:*",
"hls.js": "^1.2.5"
"hls.js": "^1.2.7"
}
}
2 changes: 1 addition & 1 deletion packages/torrent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
},
"devDependencies": {
"@oplayer/core": "workspace:*",
"webtorrent": "^1.9.1"
"webtorrent": "^1.9.2"
}
}
Loading

1 comment on commit a9184d3

@vercel
Copy link

@vercel vercel bot commented on a9184d3 Nov 14, 2022

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.