Skip to content

Commit

Permalink
fix: (xgplayer-flv) preProcessUrl 容错处理
Browse files Browse the repository at this point in the history
  • Loading branch information
王伟 authored and gemxx committed Jul 19, 2024
1 parent c8a3aa6 commit 47ad224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xgplayer-flv/src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class FlvPlugin extends BasePlugin {
softDecode: this.softDecode,
isLive: config.isLive,
media: this.player.video,
preProcessUrl: (url, ext) => this.player.preProcessUrl?.(url, ext) || {url, ext},
preProcessUrl: (url, ext) => this.player?.preProcessUrl?.(url, ext) || {url, ext},
...flvOpts
})

Expand Down

0 comments on commit 47ad224

Please sign in to comment.