Integrating VidyUp with Your Site

There are several different ways your widget can respond when someone successfully uploads a file.

The simplest solution is to have the widget email you when a video is received. You can then view the video and decide what to do with it.

If you would like to integrate the widget with a content management system or your own web application, choose one of the "load page" or "post form" choices.

In this mode, when a video is received, the widget will load a page that you specify, allowing you to save the video information in your CMS or application database.

Then you can decide when and where to show the embed codes for that video.

Result Parameters

When an upload is completed, the widget generates three parameters:

  • embed
  • cid
  • host
Request Methods

You can choose between "GET" and "POST" methods for retrieving your target URL.

If you choose a GET method, you will receive the embed code in the query string. For example, if you entered http://www.myhost.com/savevideo.php you would receive requests of the format http://www.myhost.com/savevideo.php?embed=...&cid=...&host=....

If you want to customize the GET request, you can use curly brackets to indicate where you'd like the parameters embedded. For example, if you entered http://www.myhost.com/savevideo.php?videotag={embed} you would receive requests of the format http://www.myhost.com/savevideo.php?videotag=....

If you choose the POST method, you will receive the embed code as form data. For example, if you entered http://www.myhost.com/savevideo.php you would receive for that URL with each of the parameters passed as POST form data.

Request Targets

Typically this page is loaded in the main browser window, replacing the document which contained the uploader widget. However, you can choose to have the loaded page appear within the iframe.

You can also choose a "silent" mode. In this case the URL you enter will be requested silently, without displaying the results to the user.