I’m writing GWT application where I need to upload video file and encode that video into different video formats. I’ve decided to use Panda Video Converter. I was able to run panda on my EC2 instance (using their image) and I can upload video from Panda’s test pages but now I’m trying to make same thing with my own application in GWT.
The question that I have is: How do I get Video id and how do I post my video to the server. What URL do I need to use for that? I tried to read their documentation but have no clue where to start. This is my fist time working with webservices and url, probably that’s why I don’t how it works.
I’m writing GWT application where I need to upload video file and encode that
Share
Disclaimer: I have no idea how the Panda Video Converter works, this is just an example of using
RequestBuilderto make GET and POST requests to a server.The steps to accomplish this seem to be roughly:
hq.pandastream.com/videos.(yaml|xml)with your account ID as a parameter.upload.pandastream.com/videos/[id]/formGET hq.pandastream.com/videos/id.(yaml|xml)Since the only elements of this process are POST and GET requests, you can use the RequestBuilder to make these requests for you in GWT.
We’ll go through step by step.
Send a POST to
hq.pandastream.com/videos.xmlwith your account ID as a parameter.Now that you have the ID, you can make another request to get the upload form HTML.
With that form, the user uploads the video, etc.
Now, to get info about the video, it’s — you guessed it — another
RequestBuildercall.Another disclaimer: This is a very rough outline of what appears to be the process of uploading a video, based on the docs you linked. This just serves as a basic example of using
RequestBuilderto make GET/POST calls.