WARNING: This API has been deprecated and should not be used for new projects. Click here for more information.

Media API Sample: create_video

This sample uses the Media API create_video() WRITE method to upload a video and associated metadata. The Anytime jQuery plugin is used for date/time pickers.

There are hard-coded values below from a Brightcove Learning demo account that you can use to test with or you can substitute the read and write tokens for your own account.

Note: you should never hard-code your tokens into a client-side application in the manner shown here for demonstration purposes only. Also be aware that even if you require the use to enter the token, it will be transmitted as plain text unless the form submits over an https connection.

View the source for this page to see the code.

Input form

Write token:

API location:

Video name:

Short description:

Tags (comma-separated, no spaces):

Start date:   Start time:

End date:   End time:

Encode to:

Create multiple renditions:

Create Video

Media API Request

JSON Request

Media API Response