Skip to content

Commit

Permalink
fix: plugins ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Mar 4, 2024
1 parent 8f9dac1 commit b6f152e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dash/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/dash",
"version": "1.2.23",
"version": "1.2.24",
"description": "Dash plugin for oplayer",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
1 change: 1 addition & 0 deletions packages/dash/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class DashPlugin implements PlayerPlugin {

apply(player: Player) {
this.player = player
return this
}

async load({ $video }: Player, source: Source) {
Expand Down
2 changes: 1 addition & 1 deletion packages/hls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/hls",
"version": "1.2.24.beta.1",
"version": "1.2.24",
"description": "Hls plugin for oplayer",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
1 change: 1 addition & 0 deletions packages/hls/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class HlsPlugin implements PlayerPlugin {

apply(player: Player) {
this.player = player
return this
}

async load({ $video }: Player, source: Source) {
Expand Down
1 change: 1 addition & 0 deletions packages/mpegts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class MpegtsPlugin implements PlayerPlugin {

apply(player: Player) {
this.player = player
return this
}

async load({ $video, options }: Player, source: Source) {
Expand Down
2 changes: 1 addition & 1 deletion packages/torrent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/torrent",
"version": "1.2.23",
"version": "1.2.24",
"description": "Torrent plugin for oplayer.",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
1 change: 1 addition & 0 deletions packages/torrent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class TorrentPlugin implements PlayerPlugin {

apply(player: Player) {
this.player = player
return this
}

async load({ $video }: Player, source: Source) {
Expand Down

0 comments on commit b6f152e

Please sign in to comment.