Quantcast
Channel: API and App Developers Support - Kaltura
Viewing all 1035 articles
Browse latest View live

How to invoke Kaltura API using any Rest Client

$
0
0

@kranthikiranbandaru wrote:

Hello All,

I'm a newbie to Kaltura platform. My goal is to invoke one of the API's of Kaltura using rest client and retrieve the data. I do have the valid Admin secret and partner Ids.

When I try the Try me console of Kaltura , I do get the data , but when I try it from a rest client like "PostMan" , i'm not sure how to send the KS details to the Kaltura APi. Could someone please assist?

Thanks
Kranthi

Posts: 2

Participants: 2

Read full topic


Get username from media entry's userID

$
0
0

@chrs12 wrote:

Hi!

Whats' the fastest way to get a username from user ID? Apparently, the KalturaMediaEntry only contains the User ID.

I've been doing this to grab username from user ID:

KalturaUser user = client.UserService.Get(entry.UserId)

However, this takes a LONG time. If I search for some videos, it takes around 70 milliseconds to grab each username with this method. This makes my search engine really slow at displaying many search results.

Is there an easier/quicker way to do this?

Posts: 4

Participants: 3

Read full topic

Dependent Multirequest Question

$
0
0

@lsanford wrote:

Hi,

I have a list action request for fetching media entries. I'd like to get back the metadata for each of the entries returned. I'd like to use a multirequest so I can get back all the data in one response.

For the second request, I set the objectIdIn to {1:result:objects:0:id}.

However, this just gets back the metadata for the first entry returned in the first request since it uses 0 for the index.

Is there a way to get back all of the metadata for all of the entries returned in the first request?

Is there an index value, a kind of wildcard, I can use to indicate I want the metadata back for each of the entries?

Posts: 2

Participants: 1

Read full topic

Login using kaltura credentials

$
0
0

@himanshu_sharma wrote:

I want kaltura users to login in to my application using kaltura credentials. Means I want to authenticate them with kaltura credentials only, in the same way 'facebook connect' does. I didnt find any documentation related to this on kaltura documentation, can anyone helps how to achive this, or guide my to the link where I can get some help
Any help will be greatly appriciated..
Thanks in advance.

Posts: 5

Participants: 2

Read full topic

Problems with video uploading using Kaltura C# API

$
0
0

@german_bertolini wrote:

Hi to everybody!

I'm having a trouble with the videos uploading. I'm using the latest version of Kaltura C# API. The problem occurs on the request.GetResponse() into KalturaClientBase's "DoQueue" method, after loading all bytes of the file into the request.

The error message is "WebException was unhandled. The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.".

This is weird because before the upload the system makes the media entry and gets the uploadToken id. Sometimes I pause the execution before do the request.GetResponse by a minute and half and then I continue it, the process works fine.

Can you help me?
Thanks in advance.

Posts: 6

Participants: 2

Read full topic

Widevine DRM service during trial period

$
0
0

@cijujohn wrote:

Is it possible to utilize the Widevine DRM service during the 30 days initial trial period? I am able to upload a video via the Publisher admin page which seesm to transcode the video to appropriate format. Next I want to evaluate the DRM stack, so it possible within the trail license period. Thanks...

Posts: 2

Participants: 2

Read full topic

The access to service [media->list] is forbidden

$
0
0

@dsun wrote:

Can anyone help take a loot what is wrong with my NodeJS code? client.media.listAction returns error below. We use Kaltura SaaS.

"The access to service [media->list] is forbidden"

var kaltura = require('./KalturaClient.js');
var kalturaTypes = require('./KalturaTypes.js');
var vo = require('./KalturaVO.js')

var cb = function (results){
if(results){
console.log(results);
return;
}
}

var partnerId = 188XXXX;
var conf = new kaltura.KalturaConfiguration(partnerId);
conf.serviceUrl = "http://www.kaltura.com";

var client = new kaltura.KalturaClient(conf);

var secret = "adminsecretinKMC";
var userId = "myemailaddress";
var type = kalturaTypes.KalturaSessionType.ADMIN;

var expiry = 100000;
var privileges = null;
client.session.start(cb, secret, userId, type, partnerId, expiry, privileges);

var filter = new vo.KalturaMediaEntryFilter();

var filterAdvancedSearch = new vo.KalturaMetadataSearchItem();
filterAdvancedSearch.type = 2; //kaltura.KalturaSearchOperatorType.SEARCH_OR;
filterAdvancedSearch.metadataProfileId = 31;

var filterAdvancedSearchItems = new vo.KalturaSearchCondition();
filterAdvancedSearchItems.field = "/*[local-name()='metadata']/*[local-name()='MediaType']"; // MediaType is the system name is Custom Data in KMC
filterAdvancedSearchItems.value = '1';

filterAdvancedSearch.items = [filterAdvancedSearchItems];
filter.advancedSearch = filterAdvancedSearch;

client.media.listAction(function(results){console.log(results);
}, filter, null);

Posts: 1

Participants: 1

Read full topic

Bulk Video Upload XML fails in API

$
0
0

@ashishgoyal wrote:

Hello All,

When i try bulk upload videos by XML on admin_console its working fine. But when i try it by PHP API it gives me below error

exception 'KalturaClientException' with message 'failed creating formpost data' in \/Kaltura\/KalturaClientBase.php:357\nStack trace:\n#0 \/Kaltura\/KalturaClient.php(4933): KalturaClientBase->doQueue()\n#1 \Kaltura\/Media.php(278): KalturaMediaService->bulkUploadAdd('http:\/\/domain.c...', Object(KalturaBulkUploadFilterJobData), NULL)...

Please find the using PHP API code:

    function bulkUpload($fileData = null){
        	$kClient  = $this->_kClient;
	$kConfig  = $this->_kConfig;
            $fileData = './bulk-upload-file/bulkUpload_1433408776.xml';
            $bulkUploadData = new KalturaBulkUploadFilterJobData();
            $bulkUploadEntryData = null;                
            $result = $kClient->media->bulkuploadadd($fileData, $bulkUploadData, $bulkUploadEntryData); }

Can you please help me guys?

Thanks in Advance

Posts: 6

Participants: 2

Read full topic


Tracking upload progress

$
0
0

@rejohn wrote:

Hello all,

I use API to upload file, and now i want to track the upload progress like upload file in KMC. Is there any method to do that?

thanks.

Posts: 4

Participants: 2

Read full topic

Upload over 2GB error

$
0
0

@michal_bryk wrote:

Hi,

I'm encountering strange issue when uploading files over 2GB.
Every time I get:
MISSING_MANDATORY_PARAMETER
uploadTokenId

I'm using HTTP POST /api_v3/?service=uploadToken&action=upload and upload to Kaltura SaaS trial account.
Smaller files works, i.e. below 2GB uploads fine.
Also upload takes at least 1h.

Any suggestions?
Thanks.

Below full response from server

<?xml version="1.0" encoding="utf-8"?><xml><result><error><objectType>KalturaAPIException</objectType><code>MISSING_MANDATORY_PARAMETER</code><message>Missing parameter &quot;uploadTokenId&quot;</message><args><item><objectType>KalturaApiExceptionArg</objectType><name>PARAM_NAME</name><value>uploadTokenId</value></item></args></error></result><executionTime>0.0034580230712891</executionTime></xml>

Posts: 10

Participants: 3

Read full topic

Sorting videos by metadata

$
0
0

@german_bertolini wrote:

Hi to Everybody,

I'm needing to filter and order my video entries by metadata. By the moment I can filter my video entries, but I can't order (sort) these. I have created a new date field into the metadata, and I want order my video entries by this.

I was trying do it from Kaltura Test Console. The steps I followed are:
1) Login to get Kaltura Session.
2) Select service "media" and then action "list"
3) Select "KalturaMediaEntryFilder" into Filter field.
4) From KalturaMediaEntryFilter tab:
---1) Select "KalturaMetadataSearchItem" into AdvanceSearch field.
---2) From KalturaMetadataSearchItem tab:
------1) Set Metadata Profile Id.
------2) Put +/*[local-name()='metadata']/*[local-name()='Test'] into orderBy field. Test is the field witch I want order the video entries.
------3) Add a new item and then select "KalturaSearchCondition" into the new field.
------4) From new KalturaSearchCondition tab:
------------1) Put /*[local-name()='metadata']/*[local-name()='Test'] into Field field for filter these entries that have the Test field on his metadata.

So, when I click the "Send" button it returns me all video entries that have the "Test" metadata field, but these aren't sorted.

Can anyone help me?
Thanks in advance!!!

Posts: 3

Participants: 2

Read full topic

Kaltura OVP and OTT

$
0
0

@vikasyelapale wrote:

We are using the Kaltura Community Edition for an internal project.
As per my understanding this is the Kaltura OVP.
We would want to know the difference between Kaltura OVP and Kaltura OTT.
Are the APIs different for both? We have got the APIs for Kaltura OVP, but could not find any for OTT.
Also are the HTML players different for Kalrura OVP and Katura OTT ?

Posts: 3

Participants: 2

Read full topic

How could i list the entries i see in KMC using API

$
0
0

@andrei_diaconescu wrote:

Hello,

I am using the Test Console (http://www.kaltura.com/api_v3/testme/index.php#) and I i am trying to get the entries that i see in Kaltura Management Console (KMC);

  1. i generated a session string using session.start => KS
  2. i called data.list, using that generated session KS but i always get an empty list, even though in KMC i see more entries.

    <xml>
    <result>
    <objectType>KalturaDataListResponse</objectType>
    <objects/>
    <totalCount>0</totalCount>
    <relatedObjects/>
    </result>
    <executionTime>0.0794358253479</executionTime>
    </xml>

Can you please help me with with a hint to what i may be doing wrong ?
Maybe i should call another API method to list the entries ?

Posts: 3

Participants: 2

Read full topic

Transcoded file upload only

$
0
0

@saurabhguptag wrote:

I need help regarding uploading all the pre transcoded files and get one video id which has all the uploaded files as the flavor so that I can skip the transcoding option from kaltura side? Is there any way for this using bulk upload or in folder upload?

Posts: 2

Participants: 2

Read full topic

How to achieve Live Streaming of videos in iOS (iPhone/iPad) using Kaltura?

$
0
0

@sunil_lohar wrote:

Hi,
i m able to play Live Streaming in iOS using following code :

NSURL *mediaURL = [NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"];    
    MPMoviePlayerController *mp = [[MPMoviePlayerController alloc] initWithContentURL:mediaURL];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(moviePlayBackDidFinish:)
                                                 name:MPMoviePlayerPlaybackDidFinishNotification
                                               object:nil];
    
    mp.view.frame = self.view.bounds;
    [mp setControlStyle:MPMovieControlStyleFullscreen];
    [mp setMovieSourceType:MPMovieSourceTypeStreaming];
    //[mp setFullscreen:YES];
    
    [self.view addSubview:[mp view]];
    
    [mp prepareToPlay];
    [mp play];

what i m passing is .m3u8 file format url to the MPMoviePlayerController, and i m able to play Live Streaming. but how can i achieve it using Kaltura's Live Streaming ?

according to http://corp.kaltura.com/company/news/press-release/kaltura-%E2%80%98cracks-code%E2%80%99-reliable-hls-video-streaming-android-devices there is Android SDK for live streaming of videos using Kaltura, is there any iOS SDK for Live Streaming ? or Do i have to use iOS built in MPMoviePlayerController for Live Streaming , if yes then what is the way ?

Posts: 1

Participants: 1

Read full topic


Cannot embed player with VAST ad locally, but works on Kaltura test pages

$
0
0

@slavkomae wrote:

Hi,

I work for an Ad Tech company. I am trying to embed your player with a javascript VPAID tag on our servers (or, for starters, working on my local system). Long story short: it works fine on your page (including the ad), but when I try to play it locally, the video plays but the ad is just ignored and not shown. Here's what I get in the console:

30743062:40 kWidget: Kaltura HTML5 Version: 1.9.6

XMLHttpRequest cannot load http://cdnapi.kaltura.com/serverip. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://st.localdev.com' is therefore not allowed access.

So, this "serverip" endpoint comes back without CORS headers. I don't know if this is the reason for the ad to be ignored, but it's the only hint I have.

Here is the exact VAST/VPAID tag I'm trying to run, working on your demo page:

http://player.kaltura.com/modules/AdSupport/tests/VPAID.html#%7B%22flashvars%22%3A%7B%22vast%22%3A%7B%22prerollUrl%22%3A%22http%3A%2F%2Ffwstage.test-adsafeprotected.com%2Fvast%3FanId%3D7%26advId%3D2%26campId%3D3%26chanId%3D5%26placementId%3D6%26pubId%3D8%26includeFlash%3Dfalse%26includeHtml5%3Dtrue%26fwServer%3Dhttp%3A%2F%2Ffwstage.test-adsafeprotected.com%26originalVast%3Dhttp%3A%2F%2Fst1.adsafecontrol.com%2Fvideo%2Fvast3Macros.xml.php%22%7D%7D%7D

And here is the code I'm using to try to embed locally:

Js reference:

http://cdnapi.kaltura.com/p/1995821/sp/199582100/embedIframeJs/uiconf_id/30743062/partner_id/1995821

And the embedding code:
(nodeId is just a local var that resolves to the id of the DIV which hosts the player; it does exist on the page):

mw.setConfig( 'KalturaSupport.LeadWithHTML5', true );
			kWidget.embed({
				targetId: nodeId,
				wid: "_1995821",
				uiconf_id: "30743062",
				"cache_st": 1441290747,
				"entry_id": "1_mftmgzsv",
				flashvars: {
					"vast": {
						"plugin" : true,
						"position" : "before",
						"prerollUrl" : "http://fwstage.test-adsafeprotected.com/vast?anId=7&advId=2&campId=3&chanId=5&placementId=6&pubId=8&includeFlash=false&includeHtml5=true&fwServer=http://fwstage.test-adsafeprotected.com&originalVast=http://st1.adsafecontrol.com/video/vast3Macros.xml.php",
						"numPreroll" : "1",
						"prerollStartWith" : "1",
						"prerollInterval" : "1",
						"preSequence" : "1",
						"postSequence" : "1",
						"timeout" : "4",
						"relativeTo" : "PlayerHolder"
					},
					"noticeMessage": {
						"plugin" : true,
						"position" : "before",
						"text" : "video will start in {sequenceProxy.timeRemaining}"
					},
					"adsOnReplay" : true
				}
			});

Any help would be very much appreciated. Thanks!

Slavko
Integral Ad Science

Posts: 2

Participants: 2

Read full topic

Kaltura's two different iOS SDK and its implementation

$
0
0

@sunil_lohar wrote:

According to Kaltura documentation : http://knowledge.kaltura.com/kaltura-player-sdk-ios

There are two ways to install Kaltura SDK, one is pod and other is traditional way to drag and drop Kaltura SDK.

1)Traditional Way : GitHub kaltura player sdk, has KPViewController class, which is used to play video as per the documents. but not having KalturaPlayer class

2)POD installation : pod 'player-sdk-native-ios', '~> 1.1' they provided KalturaPlayer class which is not present in GitHub link

And [[KPViewController alloc] initWithURL:iFrameURL]; gives the error KPViewController doesnt have initWithURL method.

3)according to demo app : https://github.com/kaltura/IOSReferenceApp they have installed the sdk traditional way but yet they have KalturaPlayer class. And drawPlayer method from MediaInfoViewController_iPhone.m has implementation of playing video ,yet it is not playing video for me, so i m directly calling a method playButtonPressed from same class, which calls method playVideo from PlayerViewController_iPhone class and it plays video but the methdod playVideo opens MPMoviePlayerViewController which is different from KalturaPlayer

So which SDK should i use and if use POD sdk then is it the right way to play the Video because it plays in MPMoviePlayerViewController rather than KPViewController ?

Please help.

Posts: 1

Participants: 1

Read full topic

How to set remote storage in through API?

$
0
0

@cbwilkes wrote:

I have a video sharing website that creates a new partner for each user via the API. After I create each partner I would like to setup remote AWS S3 storage and delivery which I feel I can do through the delieveryProfile and storageProfile services.

My question is how do I set the Remote Storage Policy? And set purge files on deletion from the api?

I can set them from the web interface, but not from the API. I noticed KalturaSystemPartnerConfiguration and the service systempartner exist on older version. I also noticed the file /opt/kaltura/app/deployment/permissions/service.systempartner.systempartner.ini, but I have no clue how to use it.

Posts: 2

Participants: 2

Read full topic

Missed mandatory parameter "secret"

$
0
0

@eugene_manuilov wrote:

I use Kaltura API to get players list. It worked fine, but a few days ago it stopped working. Now it says "Missed parameter secret" when I try to start a new session.

$config = new \Kaltura\Client\Configuration();
$secret = '...';

$this->_client = new \Kaltura\Client\Client( $config );
$this->_client->setPartnerId( '...' );

$this->_api_session = $this->_client->getSessionService();
$ks = $this->_api_session->start( $secret );

Here is what I see in the log:

service url: [http://www.kaltura.com/]
curl: http://www.kaltura.com//api_v3/index.php?service=session&action=start
post: {"format":"2","ignoreNull":"true","clientTag":"php5:15-09-15","apiVersion":"3.3.0","secret":"xxxxxxxxxxxxxxxxxxx","userId":"","type":"0","expiry":"86400","partnerId":"xxxxx","kalsig":"74df07acc8732b51639e73dd79716c4b"}
server: [pa-front-api31], session: []
result (serialized): <?xml version="1.0" encoding="utf-8"?><xml><result><error><objectType>KalturaAPIException</objectType><code>MISSING_MANDATORY_PARAMETER</code><message>Missing parameter &quot;secret&quot;</message><args><item><objectType>KalturaApiExceptionArg</objectType><name>PARAM_NAME</name><value>secret</value></item></args></error></result><executionTime>0.004533052444458</executionTime></xml>

What happens with session start method?

Posts: 3

Participants: 2

Read full topic

Java API example does not work

$
0
0

@konti wrote:

Hi,

Trying to give a shot for the Java API libraries available on the website.
Using it against http://www.kaltura.com (registered for a 30 day trial)
test.properties is set up.

PS I am behind a proxy, but that is also configured.

Here is the error message I am getting:

Generated KS locally: [NDlkZTg4MjVhOWNhZDMyYjNmM2M4Yzk2MzE5NmM3ZmVhODRhODNlNnwyMDAyNzAxOzIwMDI3MDE7MTQ0MjU4Mzg5MzsyOzI2MzM1O2tvbnN0YW50aW4uY3plbGxlckBsaHN5c3RlbXMuY29tOw==]
log4j:WARN No appenders could be found for logger (com.kaltura.client.KalturaClientBase).
log4j:WARN Please initialize the log4j system properly.
Example failed.
com.kaltura.client.KalturaApiException: Invalid KS "NDlkZTg4MjVhOWNhZDMyYjNmM2M4Yzk2MzE5NmM3ZmVhODRhODNlNnwyMDAyNzAxOzIwMDI3MDE7MTQ0MjU4Mzg5MzsyOzI2MzM1O2tvbnN0YW50aW4uY3plbGxlckBsaHN5c3RlbXMuY29tOw==", Error "-1,INVALID_STR"
at com.kaltura.client.KalturaClientBase.getExceptionOnAPIError(KalturaClientBase.java:614)
at com.kaltura.client.KalturaClientBase.throwExceptionOnAPIError(KalturaClientBase.java:618)
at com.kaltura.client.KalturaClientBase.doQueue(KalturaClientBase.java:266)
at com.kaltura.client.services.KalturaMediaService.list(KalturaMediaService.java:322)
at com.kaltura.client.services.KalturaMediaService.list(KalturaMediaService.java:311)
at com.kaltura.client.services.KalturaMediaService.list(KalturaMediaService.java:307)
at Kaltura.list(Kaltura.java:122)
at Kaltura.main(Kaltura.java:68)

Posts: 2

Participants: 2

Read full topic

Viewing all 1035 articles
Browse latest View live