How to use the API to Add a New Conversion Profile
Updated: Tue Apr 18 09:21:53 2017, By Contribute to this page
To add a conversion profile, call the conversionProfile.add API action:
<?php
require_once('lib/KalturaClient.php');
$config = new KalturaConfiguration($partnerId);
$config->serviceUrl = 'https://www.kaltura.com/';
$client = new KalturaClient($config);
$client->setKs('AddYourKS');
$conversionProfile = new KalturaConversionProfile();
$conversionProfile->status = KalturaConversionProfileStatus::ENABLED;
$conversionProfile->name = 'YourConversionProfileName';
$conversionProfile->isDefault = KalturaNullableBoolean::TRUE_VALUE;
$results = $client-> conversionProfile ->add($conversionProfile);