No Source in Simple Editor

14 replies [Last post]
Joined: 06/18/2009
Points: 5

Hi All,

I apologize if I am asking an obvious question. I am quite new to Kaltura (and loving it by the way) and having a difficult time adjusting to it.

I am currently attempting to create a remix using the Standard Video Editor. I am following the example on the "Create a Remix" guide, and when the editor loads, on the "Clips Library" tab, it says "No Source."

I know this has to do something with the entryID, which is currently

$entryId = @$res["result"]["entry"]["id"];

If I manually enter one of my entryID's (e.g. qsta35r03o), it shows up in the Editor no problem. However, I'd like to import several clips into the library.

How would I go about doing this?

Thanks!

Joined: 06/18/2009
Points: 4

Hello,

I am actually having the same problem and I am interested in finding a solution as well.

Thanks

Joined: 03/29/2009
Points: 764

Hi,

Please take a look at this guide - http://www.kaltura.org/how-pre-populate-your-editor-content.

Let us know if you find it helpful.

Joined: 06/18/2009
Points: 5

Thanks for the reply. I tried accessing this page (both last night and right now), and I get the following:

Access denied
You are not authorized to access this page.

I've tried to access this as a logged in member and logged out. Any ideas?

Joined: 06/18/2009
Points: 5

Aha, I googled the URL, and was able to find the cached page. I'll take a look at that.

Joined: 06/18/2009
Points: 5

Okay, so I've checked out the "How to Pre-populate" instructions (the cached version, at least). And I've done almost everything verbatim, as instructed. (With the exception of adding my own ID, and secret code).

However, it appears that it's not working. And I'm pretty sure that I'm doing something wrong.

I get the following error:

Your new mix ID is ""
These entries were added to the mix -

Warning: Invalid argument supplied for foreach() in /home/kylerenk/public_html/kaltura/remix/index.php on line 52

Here is what I am currently using:

 <HTML>
<head>
<script type="text/javascript" src="swfobject.js"></script>
</HEAD><BODY>
<?php
        require_once("../kaltura_client.php");
        // CHANGE THE FOLLOWING PARAMS TO YOUR PARTNER AND APPLICATION INFORMATION:
        $userId = "kyle";
        $partnerId = "123456";
        $subPartnerId = "12345678";
        $secret = "xxxxxxxxxxxxxxxxxxxxxxxxx";
        $adminsecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
        $host = "www.kaltura.com";
        $mix_name = "Mix Title";
        $filtered_entries = "remix_this";

        // create admin session for listentries
        $config = new KalturaConfiguration($partnerId, $subPartnerId);
        $config->serviceUrl = $host;
        $client = new KalturaClient($config);
        $user = new KalturaSessionUser();
        $user->userId = $userId;

        $result = $client->startSession($user, $adminsecret, true, "edit:*");
        $sessionId = @$result["result"]["ks"];
        $client->setKS($sessionId);

        // create the filter
        $filter = new KalturaEntryFilter();
        // .... that are admin-tagged for this purpose (i.e. for the remix)
        $filter->multiLikeAndAdminTags = $filtered_entries;

        // list entries that are returned with the filter defined above
        $result = $client->listEntries($user, $filter, false, null, $pageSize, $page);
        $entries = $result['result']['entries'];
       
        // create new web session for creating a new mix (roughcut) and addEntry
        $result = $client->startSession($user, $secret, false);
        $sessionId = @$result["result"]["ks"];
        $client->setKs($sessionId);

        // create a new mix (roughcut)
    $mix = new KalturaEntry;
    $mix->name = $mix_name;
       
    $result = $client->addRoughcutEntry($user, -2, $mix);
        $mix_id = @$result["result"]["entry"]["id"];
        echo '<b>Your new mix ID is </b>"' . $mix_id . '"<br>';
       
        // add entries to roughcut defined as $mix_id
        echo '<b>These entries were added to the mix - </b><br>';
        foreach ($entries as $key => $entry) {
                $e = new KalturaEntry;
                $e->name = $entry["name"];
                $e->source = 23;
                $e->mediaId = $entry["id"];
                $result = $client->addEntry($user, 'entry-' . $mix_id, $e, null, '0');
                echo $entry["id"] . '-' . $entry["name"] . '<br>';
                }
?>

<script type="text/javascript">
var params = {
        allowScriptAccess: "always",
        allowNetworking: "all",
        wmode: "opaque"
};
                       
var flashVars = <?php echo json_encode($flashVars); ?>;
swfobject.embedSWF("http://www.kaltura.com/kcw/ui_conf_id/36200", "kcw", "680", "360", "9.0.0", false, flashVars, params);
</script>
</BODY></HTML>

Any ideas on how I might get this working? Many thanks for helping me learn this!

Joined: 06/18/2009
Points: 5

Any ideas on my error?

Joined: 03/29/2009
Points: 764

Hi,

We will take a look and reply shortly - sorry for the delay.

Joined: 01/05/2009
Points: 1697

Did you insert your partner id, sub partner id, secret and admin secret ?
See my attached updated script - Do not forget to replace your partner details.

AttachmentSize
pre-populated-mix.rar11.02 KB
Joined: 06/18/2009
Points: 4

I am having the same problem as well. I followed all of the directions and compared your code to my own and I get the same error. See attached image.

Joined: 01/05/2009
Points: 1697

hi nathalie,

Did you set the parameters right and replaced the values with your partner details ?

Joined: 06/18/2009
Points: 4

Ok, I missed the last digit in the admin-secret when I copied it so that is what caused the error. My silly mistake. However, now it creates the mix but the player/remixer hangs and never completely loads. Also, I am unsure of where I am supposed to put the mix ID that is generated. I don't know how to create a remix site(sorry I'm really new to this).

I also wanted to know, once the editor is configured properly how do I connected it to a player that was created using the KMC? I have already tried several methods to no avail. Nothing happens when the remix button is pressed on the player.

Thanks

Joined: 01/05/2009
Points: 1697

Well, in fact you don't need to work hard to create a full basic remix site - you can just download, configure and use the remix site project.
Download and configure the parameters on /lib/config.php .

The mix id (entry id) is what you use to pass around the platform to identify the specific video mix. All you need to do is pass the partner parameters and entry id to the player or editor and all works out of the box.

Joined: 06/18/2009
Points: 4

Ok, I'll try my luck with the remix site. Thank you for all of your help!

-Nathalie

Joined: 01/05/2009
Points: 1697

Cool Nathalie,

Please let us know how it goes and share your application :)