Python: media.updateThumbnail

Hi Everyone,

i do have two short Questions.

The media.updateThumbnail function has been deprecated, unfortunately i am unable to find the alternative for it, could you please help me about that?

The second Question is an issue i happen to have if i update the Thumbnail on a Video File.

This is the code i am using:

Summary
config = KalturaConfiguration(000)
config.serviceUrl = "someURL"
client = KalturaClient(config)

ks = client.session.start(
    "secret",
    "secret",
    KalturaSessionType.ADMIN,
    000,
    86400,
)
client.setKs(ks)

kalturaVideoID = "someVideoID"
thumbnailFileData = open("../jpg/samplePic.jpg", 'rb')
result = client.media.updateThumbnailJpeg(kalturaVideoID, thumbnailFileData)

It works just fine, it does set the thumbnail to the sample Pic i told it to, but it does not show the thumbnail in the Video information’s. it only Shows the first frame of the Video.

image

Thanks in advance!

Regards,
Urghss

Hello @urghsss,

The media.updateThumbnail.* actions were all deprecated a long time ago. Please use the thumbasset service instead (https://developer.kaltura.com/api-docs/service/thumbAsset).

At Kaltura, deprecated actions (or whole services for that matter) will typically continue to be available but their use is discouraged (which is why they were deprecated).

Cheers,

1 Like

Hi @Jess, thanks alot. Solved all my problems!