-
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
Dzianis Dashkevich
committed
Oct 16, 2023
1 parent
ef6fc74
commit 499a6ed
Showing
12 changed files
with
114 additions
and
5 deletions.
There are no files selected for viewing
Empty file.
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,4 @@ | ||
export default abstract class Pipeline { | ||
public abstract loadRemoteAsset(uri: string): void; | ||
public abstract loadLocalAsset(asset: string | ArrayBuffer): void; | ||
} |
Empty file.
Empty file.
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,11 @@ | ||
import Pipeline from '@/pipelines/basePipeline.ts'; | ||
|
||
export default class DashPipeline extends Pipeline { | ||
public loadLocalAsset(asset: string | ArrayBuffer): void { | ||
//TODO | ||
} | ||
|
||
public loadRemoteAsset(uri: string): void { | ||
//TODO | ||
} | ||
} |
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,11 @@ | ||
import Pipeline from '@/pipelines/basePipeline.ts'; | ||
|
||
export default class HlsPipeline extends Pipeline { | ||
public loadLocalAsset(asset: string | ArrayBuffer): void { | ||
//TODO | ||
} | ||
|
||
public loadRemoteAsset(uri: string): void { | ||
//TODO | ||
} | ||
} |
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,7 @@ | ||
import Pipeline from '@/pipelines/basePipeline.ts'; | ||
|
||
export default abstract class MsePipeLine extends Pipeline { | ||
public abstract loadLocalAsset(asset: string | ArrayBuffer): void; | ||
|
||
public abstract loadRemoteAsset(uri: string): void; | ||
} |
Empty file.
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,11 @@ | ||
import Pipeline from '@/pipelines/basePipeline.ts'; | ||
|
||
export default class NativePipeline extends Pipeline { | ||
public loadLocalAsset(asset: string | ArrayBuffer): void { | ||
//TODO | ||
} | ||
|
||
public loadRemoteAsset(uri: string): void { | ||
//TODO | ||
} | ||
} |
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,20 @@ | ||
export enum ErrorCategory { | ||
Pipeline, | ||
} | ||
|
||
export enum ErrorCode { | ||
// pipeline | ||
NoSupportedPipelines, | ||
} | ||
|
||
export default abstract class PlayerError { | ||
public abstract readonly category: ErrorCategory; | ||
public abstract readonly code: ErrorCode; | ||
public abstract readonly critical: boolean; | ||
} | ||
|
||
export class NoSupportedPipelinesError extends PlayerError { | ||
public readonly category = ErrorCategory.Pipeline; | ||
public readonly code = ErrorCode.NoSupportedPipelines; | ||
public readonly critical = true; | ||
} |
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