-
-
Save kporangehat/ffe4cbd3bc1f9a23cc20 to your computer and use it in GitHub Desktop.
Providing your own transcoded media for the Screening Room web player
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# as long as 'server' is a web server that is correctly configured to serve webm and mp4 mime-types, | |
# this should work for enabling the Screening Room web player and the play button should be enabled | |
# on the Version's thumbnail. | |
mp4_link = { | |
'content_type': 'video/mp4', | |
'url': 'http://server/path/to/movie.mp4', | |
'name': 'movie.mp4' | |
} | |
webm_link = { | |
'content_type': 'video/webm', | |
'url': 'http://server/path/to/movie.webm', | |
'name': 'movie.webm' | |
} | |
result = sg.update('Version', 6620, {'sg_uploaded_movie_mp4': mp4_link, 'sg_uploaded_movie_webm': webm_link}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment