Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 664843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:38:38+00:00 2026-05-13T23:38:38+00:00

I’m writing GWT application where I need to upload video file and encode that

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:38:38+00:00Added an answer on May 13, 2026 at 11:38 pm

    Disclaimer: I have no idea how the Panda Video Converter works, this is just an example of using RequestBuilder to make GET and POST requests to a server.

    The steps to accomplish this seem to be roughly:

    1. Send a POST to hq.pandastream.com/videos.(yaml|xml) with your account ID as a parameter.
    2. Receive a response including the ID of the new video you’ve created (a placeholder)
    3. Display a form to the user based on the ID. The form is retrieved by sending a GET to upload.pandastream.com/videos/[id]/form
    4. Submitting this form uploads the video, whose information can be retrieved by sending a GET to GET 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.xml with your account ID as a parameter.

    RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, "http://hq.pandastream.com/videos.xml");
    rb.sendRequest("account_key=foo", new RequestCallback() {
      protected void onResponseReceived(Request request, Response, response) {
        // parse XML to get "id" element
      }
      // onError() ...
    });
    

    Now that you have the ID, you can make another request to get the upload form HTML.

    rb = new RequestBuilder(RequestBuilder.GET, "http://upload.pandastream.com/videos/" + id + "/form");
    rb.sendRequest(null, new RequestCallback() {
      protected void onResponseReceived(Request request, Response, response) {
         // this may not work, and it may be a bad idea to inject third-party HTML
         // straight into your page. You might also want to open a popup window
         // instead of injecting the HTML directly.
        someWidget.setHTML(response.getText());
      }
      // onError() ...
    });
    

    With that form, the user uploads the video, etc.

    Now, to get info about the video, it’s — you guessed it — another RequestBuilder call.

    rb = new RequestBuilder(RequestBuilder.GET, "http://hq.pandastream.com/videos/" + id + ".xml");
    rb.sendRequest(null, new RequestCallback() {
      protected void onResponseReceived(Request request, Response, response) {
        // parse response XML to get info you want
      }
      // onError() ...
    });
    

    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 RequestBuilder to make GET/POST calls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.