diff --git a/src/default-profiles/cld-live-streaming.json b/src/default-profiles/cld-live-streaming.json new file mode 100644 index 0000000..c424594 --- /dev/null +++ b/src/default-profiles/cld-live-streaming.json @@ -0,0 +1,7 @@ +{ + "playerOptions": {}, + "sourceOptions": { + "type": "live", + "sourceTypes": ["hls"] + } +} diff --git a/src/index.ts b/src/index.ts index 3166de6..b16c878 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import cldDefault from './default-profiles/cld-default.json'; import cldLooping from './default-profiles/cld-looping.json'; import cldAdaptiveStream from './default-profiles/cld-adaptive-stream.json'; +import cldLiveStreaming from './default-profiles/cld-live-streaming.json'; export const cldDefaultProfile = { name: 'cld-default', @@ -20,4 +21,10 @@ export const cldAdaptiveStreamProfile = { config: cldAdaptiveStream, }; -export const defaultProfiles = [cldDefaultProfile, cldLoopingProfile, cldAdaptiveStreamProfile]; +export const cldLiveStreamingProfile = { + name: 'cld-live-streaming', + isDefault: true, + config: cldLiveStreaming, +}; + +export const defaultProfiles = [cldDefaultProfile, cldLoopingProfile, cldAdaptiveStreamProfile, cldLiveStreamingProfile];