-
Notifications
You must be signed in to change notification settings - Fork 112
Description
So when we start the egress using
return api.RoomCompositeEgressRequest(
room_name=self.event_id,
preset=api.EncodingOptionsPreset.H264_720P_30,
audio_only=False,
custom_base_url=custom_base_url,
segment_outputs=[
api.SegmentedFileOutput(
filename_prefix=f"recordings/{self.event_id}/session{self.counter['max_counter']}",
playlist_name=f"{self.recording_id}-playlist.m3u8",
live_playlist_name=f"{self.recording_id}-live-playlist.m3u8",
segment_duration=2,
s3=api.S3Upload(
bucket=SPACE_NAME,
region=REGION_NAME,
access_key=ACCESS_KEY,
secret=SECRET_KEY,
endpoint=SPACE_ENDPOINT,
force_path_style=True,
),
)
],
file_outputs=[
api.EncodedFileOutput(
file_type=api.EncodedFileType.MP4,
filepath=f"recordings/{self.event_id}/{self.recording_id}.mp4",
s3=api.S3Upload(
bucket=SPACE_NAME,
region=REGION_NAME,
access_key=ACCESS_KEY,
secret=SECRET_KEY,
endpoint=SPACE_ENDPOINT,
force_path_style=True,
),
),
# api.EncodedFileOutput(
# file_type=api.EncodedFileType.OGG,
# filepath=f"recordings/{self.event_id}/{self.recording_id}.ogg",
# s3=api.S3Upload(
# bucket=SPACE_NAME,
# region=REGION_NAME,
# access_key=ACCESS_KEY,
# secret=SECRET_KEY,
# endpoint=SPACE_ENDPOINT,
# force_path_style=True,
# ),
# ),
],
)
Under api.S3Upload, require ACL type so that we can upload public-read files and don't have to worry about the permission