Skip to content

Commit b524a16

Browse files
committed
feat: add segment type
1 parent 055ef93 commit b524a16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

videodb/_upload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"STREAMING_API", "https://vcmgicsv1d.execute-api.us-east-1.amazonaws.com"
1919
)
2020
SEGMENT_DURATION = os.getenv("SEGMENT_DURATION", 1)
21+
SEGMENT_TYPE = os.getenv("SEGMENT_TYPE", "fmp4")
2122

2223

2324
def upload(
@@ -76,6 +77,7 @@ def upload(
7677
"media_id": media_id,
7778
"user_id": _connection.user_id,
7879
"segment_duration": SEGMENT_DURATION,
80+
"segment_type": SEGMENT_TYPE,
7981
},
8082
)
8183
streaming_data.raise_for_status()

0 commit comments

Comments
 (0)