Skip to content

Commit

Permalink
Merge pull request #1 from cloudinary/feat-new-system-profile-live-st…
Browse files Browse the repository at this point in the history
…reaming

feat: new system profile live streaming
  • Loading branch information
jakub-roch authored Jan 13, 2025
2 parents 1701181 + 2bc3d24 commit 3594fb0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/default-profiles/cld-live-streaming.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"playerOptions": {},
"sourceOptions": {
"type": "live",
"sourceTypes": ["hls"]
}
}
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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];

0 comments on commit 3594fb0

Please sign in to comment.