Public API link for displaying the html page for an upload you have created. Can be integrated into an existing form on your own web site as an iframe or as a stand alone upload page by simply using the link directly.
Note that this is not an abstract JSON call but an actual html page to be rendered by the client in-browser. As it is a public request it also does not use authentication.
https://streamio.com/api/v1/uploads/upload_id/public_show.html
GET
200
A HTML5 page providing an upload form sending videos straight to your account. For an example please try a request in your browser and view source.
Just GET it.
curl https://streamio.com/api/v1/uploads/4c483ea1bf4b9802c5000029/public_show.html
In case you want to implement a streamio upload page into a web page of your own you will probably want to get some feedback after a video has completed uploading. This can be done using window.postMessage in modern browsers.
<!DOCTYPE html> <html> <head> <script src="https://rawgithub.com/daepark/postmessage/master/postmessage.js" type="text/javascript"></script> </head> <body> <iframe id="streamio-upload" src="https://streamio.com/api/v1/uploads/4da4387554129002b4000001/public_show" width="400" height="200" frameborder="0"></iframe> <script type="text/javascript" charset="utf-8"> pm.origin = "https://streamio.com" pm.bind("onUploadComplete", function(video) { // The video object is parsed from JSON of the uploaded video identical to the format of videos public show document.getElementById("message").innerHTML = "Completed upload of "+video.title+" with id "+video.id document.getElementById("streamio-upload").style.display = "none" }) </script> <p id="message"></p> </body> </html>