Upload a video and get it's Embed code

Hi All,

i am new on kaltura. I want to upload video through Api and want to get embed code. please help

This would be a good starting point for uploading:


For uploading, see https://developer.kaltura.org/recipes/upload
and also:
Upload over 2GB error
HTTP request to attach uploadToken to mediaEntry
Logical meaning of mediaEntry in upload API

For embedding: