Skip to content

Commit

Permalink
Update FlvPlayer/NativePlayer types
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours authored and xqq committed Jun 23, 2018
1 parent 6e8d165 commit e022907
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions d.ts/flv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,17 @@ declare namespace FlvJs {
volume: number;
muted: boolean;
currentTime: number;
/**
* @deprecated FlvPlayer/NativePlayer have its own `mediaInfo` field.
* @desc Keep it for backwards compatibility
* @since 1.4
*/
mediaInfo: NativePlayerMediaInfo | FlvPlayerMediaInfo;
/**
* @deprecated FlvPlayer/NativePlayer have its own `statisticsInfo` field.
* @desc Keep it for backwards compatibility
* @since 1.4
*/
statisticsInfo: NativePlayerStatisticsInfo | FlvPlayerStatisticsInfo;
}

Expand Down Expand Up @@ -306,19 +316,15 @@ declare namespace FlvJs {
[k: string]: any;
}

/**
* @deprecated Use FlvJs.Player instead.
* @since 1.4
*/
// tslint:disable-next-line
interface FlvPlayer extends Player {}
interface FlvPlayer extends Player {
mediaInfo: FlvPlayerMediaInfo;
statisticsInfo: FlvPlayerStatisticsInfo;
}

/**
* @deprecated Use FlvJs.Player instead.
* @since 1.4
*/
// tslint:disable-next-line
interface NativePlayer extends Player {}
interface NativePlayer extends Player {
mediaInfo: NativePlayerMediaInfo;
statisticsInfo: NativePlayerStatisticsInfo;
}

interface LoggingControlConfig {
forceGlobalTag: boolean;
Expand Down

0 comments on commit e022907

Please sign in to comment.