Referencing video from media entry


I want to create a media entry programatically and then add video content to it, without using Drop Folder auto ingestion.
In addition, the video is already located in the file system of my Kaltura CE server, and I’d like the media entry to ‘reference’ it.

Creating media is easy, using media.add .
I thought of using the media.addContent method.
However, it recieves a KalturaResource object and I don’t know which one I need to provide - I’ve seen there are several types for this object, s.t. web resource, ssh, remote storage, drop folder resource etc, but haven’t found a ‘local file system’ type yet.


bump . still stuck on the same issue.

Please see my reply here:

There are also usage examples in the unittests for several of our clientlibs.