-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
78 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { IPipelineDependencies } from '../../types/pipeline.declarations'; | ||
import MsePipeline from './mse-pipeline'; | ||
import { ChunkPlaylistParser, type FullPlaylistParser } from '@videojs/hls-parser'; | ||
|
||
export class HlsPipeline extends MsePipeline { | ||
public static parser: ChunkPlaylistParser | FullPlaylistParser; | ||
|
||
public static create(dependencies: IPipelineDependencies): HlsPipeline { | ||
dependencies.logger = dependencies.logger.createSubLogger('HlsPipeline'); | ||
this.parser = ChunkPlaylistParser.create({ | ||
debugCallback: dependencies.logger.debug, | ||
warnCallback: dependencies.logger.warn, | ||
}); | ||
return new HlsPipeline(dependencies); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,52 @@ | ||
import type { IQualityLevel } from 'src/lib/types/quality-level.declarations'; | ||
import { BasePipeline } from '../base-pipeline'; | ||
import type { IPlayerAudioTrack } from 'src/lib/types/audio-track.declarations'; | ||
import type { | ||
IPlayerTextTrack, | ||
IRemoteVttThumbnailTrackOptions, | ||
IPlayerThumbnailTrack, | ||
} from 'src/entry-points/api-reference'; | ||
import type { PlaybackState } from 'src/lib/consts/playback-state'; | ||
|
||
export default abstract class MsePipeline extends BasePipeline {} | ||
/* eslint-disable */ | ||
export default abstract class MsePipeline extends BasePipeline { | ||
public dispose(): void { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public getAudioTracks(): Array<IPlayerAudioTrack> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public selectAudioTrack(id: string): boolean { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public getQualityLevels(): Array<IQualityLevel> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public selectQualityLevel(): boolean { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public selectAutoQualityLevel(): boolean { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public getTextTracks(): Array<IPlayerTextTrack> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public removeRemoteThumbnailTrack(id: string): boolean { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public addRemoteVttThumbnailTrack(options: IRemoteVttThumbnailTrackOptions): boolean { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public selectThumbnailTrack(id: string): boolean { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public getThumbnailTracks(): Array<IPlayerThumbnailTrack> { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public getPlaybackState(): PlaybackState { | ||
throw new Error('Method not implemented.'); | ||
} | ||
public start(): void { | ||
throw new Error('Method not implemented.'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters