Copyright © 2011 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
hi
I'm using the PHP implementation to add entries after uploading via the KSU, and I've got everything working apart from the licenseType, which I just can't set. licenseType in ps2 is just a string, right?
Also, is there a way to use the PHP framework to set a displayCredit instead of credit? I'd like users to be able to dynamically set the name that's credited to a submission.
Cheers.
so is it possible to get an UploadTokenId from the KSU then, or is it now redundant since it implements partner services v2?
Hi,
license type is not a string, it is an int field defined an enum:
KalturaLicenseTypeSee the definition: (from the generator schema).
<const name="UNKNOWN" value="-1"/>
<const name="NONE" value="0"/>
<const name="COPYRIGHTED" value="1"/>
<const name="PUBLIC_DOMAIN" value="2"/>
<const name="CREATIVECOMMONS_ATTRIBUTION" value="3"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_SHARE_ALIKE" value="4"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NO_DERIVATIVES" value="5"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL" value="6"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL_SHARE_ALIKE" value="7"/>
<const name="CREATIVECOMMONS_ATTRIBUTION_NON_COMMERCIAL_NO_DERIVATIVES" value="8"/>
<const name="GFDL" value="9"/>
<const name="GPL" value="10"/>
<const name="AFFERO_GPL" value="11"/>
<const name="LGPL" value="12"/>
<const name="BSD" value="13"/>
<const name="APACHE" value="14"/>
<const name="MOZILLA" value="15"/>
</enum>
For the credit - you can only set the user name and the creditUserName fields.
Make sure you're using the latest api_v3 client library.