where is the addRoughcutEntry Class? Where is there a good example of the code for the Standard editor?

2 replies [Last post]
Joined: 06/26/2010
Points: 8

I tried using the code from the wiki and it doesn't work with the php client libraries for php 5.

I have edited it so that it can work (creation of ks, KalturaEntry is KalturaEntryType) but in the KalturaClient.php, the function addRoughcutEntry does not exist.

Where can I find good sample code? The Wiki code does NOT work and there is NO documentation.

THanks,
Luis

Joined: 05/14/2009
Points: 69

addRoughcutEntry is in API v2. It does not exist in API v3 anymore.
I presume you have to use mixing service and add action in API v3 to create a mix entry. I can not find the sample code for this either.

Joined: 05/14/2009
Points: 69

Here is my code to create a new remix with pre-populate contents in C# API v3.
After this, the default timeline will be filled in and no thumbnail.
You can use KClient.BaseEntryService.UpdateThumbnailFromSourceEntry to update the thumbnail.

    public KalturaMixEntry CreateNewMix(string MixName, string[] mediaIDs, KalturaEditorType editorType)
    {
        KalturaMixEntry mixEntry = new KalturaMixEntry();

        //-- Mix Name and EditorType are requuired  
        mixEntry.Name = MixName;
        mixEntry.EditorType = editorType;
        mixEntry = _kClient.MixingService.Add(mixEntry);

        foreach (string mediaID in mediaIDs)
        {
            _kClient.MixingService.AppendMediaEntry(mixEntry.Id, mediaID);
        }
       
        return mixEntry;
    }