Skip to content

Instantly share code, notes, and snippets.

@kporangehat
Created March 18, 2014 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kporangehat/ffe4cbd3bc1f9a23cc20 to your computer and use it in GitHub Desktop.
Save kporangehat/ffe4cbd3bc1f9a23cc20 to your computer and use it in GitHub Desktop.
Providing your own transcoded media for the Screening Room web player
# 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