-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaAssetService.min.js
18 lines (17 loc) · 3.2 KB
/
KalturaAssetService.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var KalturaAssetService={add:function(asset){var kparams=new Object();kparams.asset=asset;return new KalturaRequestBuilder("asset","add",kparams);},addFromBulkUpload:function(fileData,bulkUploadJobData,bulkUploadAssetData){var kparams=new Object();var kfiles=new Object();kfiles.fileData=fileData;kparams.bulkUploadJobData=bulkUploadJobData;kparams.bulkUploadAssetData=bulkUploadAssetData;return new KalturaRequestBuilder("asset","addFromBulkUpload",kparams,kfiles);},count:function(filter){if(!filter)
filter=null;var kparams=new Object();if(filter!=null)
kparams.filter=filter;return new KalturaRequestBuilder("asset","count",kparams);},deleteAction:function(id,assetReferenceType){var kparams=new Object();kparams.id=id;kparams.assetReferenceType=assetReferenceType;return new KalturaRequestBuilder("asset","delete",kparams);},get:function(id,assetReferenceType){var kparams=new Object();kparams.id=id;kparams.assetReferenceType=assetReferenceType;return new KalturaRequestBuilder("asset","get",kparams);},getAdsContext:function(assetId,assetType,contextDataParams){var kparams=new Object();kparams.assetId=assetId;kparams.assetType=assetType;kparams.contextDataParams=contextDataParams;return new KalturaRequestBuilder("asset","getAdsContext",kparams);},getPlaybackContext:function(assetId,assetType,contextDataParams,sourceType){if(!sourceType)
sourceType=null;var kparams=new Object();kparams.assetId=assetId;kparams.assetType=assetType;kparams.contextDataParams=contextDataParams;kparams.sourceType=sourceType;return new KalturaRequestBuilder("asset","getPlaybackContext",kparams);},getPlaybackManifest:function(assetId,assetType,contextDataParams,sourceType){if(!sourceType)
sourceType=null;var kparams=new Object();kparams.assetId=assetId;kparams.assetType=assetType;kparams.contextDataParams=contextDataParams;kparams.sourceType=sourceType;return new KalturaRequestBuilder("asset","getPlaybackManifest",kparams);},groupRepresentativeList:function(groupBy,unmatchedItemsPolicy,orderBy,filter,selectionPolicy,pager){if(!orderBy)
orderBy=null;if(!filter)
filter=null;if(!selectionPolicy)
selectionPolicy=null;if(!pager)
pager=null;var kparams=new Object();kparams.groupBy=groupBy;kparams.unmatchedItemsPolicy=unmatchedItemsPolicy;if(orderBy!=null)
kparams.orderBy=orderBy;if(filter!=null)
kparams.filter=filter;if(selectionPolicy!=null)
kparams.selectionPolicy=selectionPolicy;if(pager!=null)
kparams.pager=pager;return new KalturaRequestBuilder("asset","groupRepresentativeList",kparams);},listAction:function(filter,pager){if(!filter)
filter=null;if(!pager)
pager=null;var kparams=new Object();if(filter!=null)
kparams.filter=filter;if(pager!=null)
kparams.pager=pager;return new KalturaRequestBuilder("asset","list",kparams);},listPersonalSelection:function(filter){var kparams=new Object();kparams.filter=filter;return new KalturaRequestBuilder("asset","listPersonalSelection",kparams);},removeMetasAndTags:function(id,assetReferenceType,idIn){var kparams=new Object();kparams.id=id;kparams.assetReferenceType=assetReferenceType;kparams.idIn=idIn;return new KalturaRequestBuilder("asset","removeMetasAndTags",kparams);},update:function(id,asset){var kparams=new Object();kparams.id=id;kparams.asset=asset;return new KalturaRequestBuilder("asset","update",kparams);}}