Skip to content

Commit

Permalink
docs: ✏️ (xgplayer-flv) update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gemxx committed Aug 14, 2024
1 parent d6c698c commit 45baa7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions packages/xgplayer-flv/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 3.0.20
feat: 🎸 (xgplayer-transmuxer) support opus codec for audio
feat: 🎸 (flv&hls) support g711 play by AudioContext

## 3.0.19
>* refactor: update download speed evaluate strategy, export configuration for speed evaluate
Expand Down
4 changes: 3 additions & 1 deletion packages/xgplayer-flv/src/flv/services/buffer-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ export class BufferService {

const mse = this._mse
const afterAppend = () => {
this.emit(EVENT.APPEND_BUFFER, {})
if (this.flv?.emit) {
this.flv?.emit(EVENT.APPEND_BUFFER, {})
}
}

// emit demuxed track
Expand Down
3 changes: 0 additions & 3 deletions packages/xgplayer-transmuxer/src/codec/opus.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ export class OPUS {
const originCodec = 'opus'
const config = new Uint8Array(data.buffer, data.byteOffset + 8, data.byteLength - 8)

console.log('config:', config)
// config[0] = 0 // ??

return {
outputGain,
sampleRate,
Expand Down

0 comments on commit 45baa7a

Please sign in to comment.