Uploader widget

Uploader widget example

You can easily integrate our uploader widget into your application to provide an easy way for your users to upload their video content into Brid platform.

<script src="https://<<services_domain>>/js/api.min.js"></script>

<div id="bridApiUploader"></div>
<script>
    
// Initialize the uploader widget
$BridApi.Uploader.init({'access_token' : 'YOUR_BEARER_TOKEN', 'partnerId' :'YOUR_PARTNER/SITE_ID'});

// Add the "on" event listener
$BridApi.Uploader.on('VideoAddForm', function(e){

// Use e.detail to get all details about the uploaded video like the video ID, embed code etc.
console.log(e.detail);
    
});
</script>

The above code will load the uploader widget in your app and will provide an easy way for your users to upload their video content.

❗️

API access

It is highly advised that only your trusted users have access to this widget as your API key will be exposed in the web page source.

📘

Upload file size limit

Default upload size limit is 1GB. If you need to upload larger files contact us at [email protected]


Did this page help you?