@vkontakte/videoplayer-core 2.0.49 → 2.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015.cjs.js +4 -4
- package/es2015.esm.js +4 -4
- package/es2018.cjs.js +4 -4
- package/es2018.esm.js +4 -4
- package/esnext.cjs.js +4 -4
- package/esnext.esm.js +4 -4
- package/package.json +1 -1
- package/providers/DashProvider/utils/DashLite.d.ts +0 -60
package/package.json
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Milliseconds } from '@vkontakte/videoplayer-shared';
|
|
2
|
-
import HttpVideoBuffer from "../../../utils/buffer/HttpVideoBuffer";
|
|
3
|
-
import { IDashConfig, IRef, IRepresentation } from '../types';
|
|
4
|
-
interface IParams {
|
|
5
|
-
video: HTMLVideoElement;
|
|
6
|
-
buffer: HttpVideoBuffer;
|
|
7
|
-
selectRepresentation: (representations: IRepresentation[]) => IRepresentation;
|
|
8
|
-
onManifestReady: (representations: IRepresentation[]) => void;
|
|
9
|
-
onIdxRequestPing: (ping: Milliseconds) => void;
|
|
10
|
-
onResponseHeaders: (headers: Headers) => void;
|
|
11
|
-
onBandwidthChange: (payload: {
|
|
12
|
-
size: number;
|
|
13
|
-
duration: number;
|
|
14
|
-
speed: number;
|
|
15
|
-
}) => void;
|
|
16
|
-
onRepresentationPlay: (representation: IRepresentation) => void;
|
|
17
|
-
onError: (id: string, message: string, thrown?: Error | unknown) => void;
|
|
18
|
-
config: IDashConfig;
|
|
19
|
-
onDashCallback?: (eventName: string, param?: any) => any;
|
|
20
|
-
}
|
|
21
|
-
export default class DashLite {
|
|
22
|
-
private _params;
|
|
23
|
-
private _representations;
|
|
24
|
-
private _appendVector;
|
|
25
|
-
private _currentRepresentation?;
|
|
26
|
-
private _stream;
|
|
27
|
-
private _lastLoadOffset?;
|
|
28
|
-
private _loopTimeout?;
|
|
29
|
-
private _cachingPaused;
|
|
30
|
-
private _duration;
|
|
31
|
-
private STREAM_END_THRESHOLD;
|
|
32
|
-
private _video;
|
|
33
|
-
private _buffer;
|
|
34
|
-
private _onDashCallback;
|
|
35
|
-
private _config;
|
|
36
|
-
constructor(params: IParams);
|
|
37
|
-
/**
|
|
38
|
-
* Parse duration from ISO8601 string.
|
|
39
|
-
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
|
40
|
-
* @see https://github.com/moment/moment/blob/develop/src/lib/duration/create.js#L13
|
|
41
|
-
*/
|
|
42
|
-
_parseDurationFromISO8601(input: string): number;
|
|
43
|
-
getRepresentations(): IRepresentation[];
|
|
44
|
-
attachSource(manifestUrl: string, failoverHosts?: string[]): void;
|
|
45
|
-
attachManifest(manifestString: string, failoverHosts?: string[], origin?: string): void;
|
|
46
|
-
_loadInitAndSidx(representation: IRepresentation, cb?: () => void): void;
|
|
47
|
-
startPlay(representation: IRepresentation): void;
|
|
48
|
-
_loadRef(representation: IRepresentation, fromTime: number, needToSeek?: boolean, forcePrecise?: boolean): void;
|
|
49
|
-
setQualityByRepresentation(newRepresentation: IRepresentation, force?: boolean): void;
|
|
50
|
-
setQuality(index: number): void;
|
|
51
|
-
pauseCaching(): void;
|
|
52
|
-
resumeCaching(): void;
|
|
53
|
-
seek(time: number, forcePrecise?: boolean): void;
|
|
54
|
-
updateRefsForCurrentTime(): void;
|
|
55
|
-
_findRef(time: number): IRef | undefined;
|
|
56
|
-
_isLastRef(ref: IRef): boolean;
|
|
57
|
-
_findBufferRangeEnd(time: number): number;
|
|
58
|
-
destroy(): void;
|
|
59
|
-
}
|
|
60
|
-
export {};
|