Skip to content

Commit fbf0a5a

Browse files
committed
Parse manifest to json before encoding
1 parent 67c698a commit fbf0a5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ex_webrtc_recorder/s3/utils.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if Code.ensure_loaded?(ExAws.S3) do
2222
{:ok | :error, term()}
2323
def upload_manifest(manifest, s3_bucket_name, s3_path, s3_config \\ []) do
2424
manifest
25+
|> ExWebRTC.Recorder.Manifest.to_json!()
2526
|> Jason.encode!()
2627
|> ExWebRTC.Utils.chunk(@chunk_size)
2728
|> ExAws.S3.upload(s3_bucket_name, s3_path)

0 commit comments

Comments
 (0)