I’m implementing an aggregation of videos from Kaltura on the server in nodeJs. I get the videos for a specific category with the media.listAction and the corresponding MediaEntryFilter. I’m trying to get the wid for the embed code with the widget.listAction and the WidgetFilter.entryIdEqual set to the video.id. I get widgets back, but no combination of video.id and widget.id filed in the embed snipplet will work. How can I get the wid for a specific entryId and a uiconf_id, so I can calculate the embed code for this video.
Thanks for any help
wid param should always be set to
_$PARTNER_ID. So, if your partner ID is 102, the
wid param should be set to
With regards to generating embed codes, you may find this project interesting:
The problem is the video is access restricted. We are able to generate an iframe embed code for a restricted video in Kaltura and this code works, but I dont get it runing for other videos. We can not cut and past the embed-code for all videos, I have to calculate the embed-Code on the server.
This is a working embed code for a restricted video and you can see, that the wid is not the _$PARTNER_ID
<iframe id="kaltura_player" src="https://cdnapisec.kaltura.com/p/2396981/sp/239698100/embedIframeJs/uiconf_id/42494131/partner_id/2396981?iframeembed=true&playerId=kaltura_player&entry_id=0_jt5kyhyh&flashvars[streamerType]=auto&flashvars[localizationCode]=en&flashvars[leadWithHTML5]=true&flashvars[sideBarContainer.plugin]=true&flashvars[sideBarContainer.position]=left&flashvars[sideBarContainer.clickToClose]=true&flashvars[chapters.plugin]=true&flashvars[chapters.layout]=vertical&flashvars[chapters.thumbnailRotator]=false&flashvars[streamSelector.plugin]=true&flashvars[EmbedPlayer.SpinnerTarget]=videoHolder&flashvars[dualScreen.plugin]=true&flashvars[Kaltura.addCrossoriginToIframe]=true&&wid=1_5q4m17fi" width="400" height="285" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow="autoplay *; fullscreen *; encrypted-media *" sandbox="allow-forms allow-same-origin allow-scripts allow-top-navigation allow-pointer-lock allow-popups allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation" frameborder="0" title="Kaltura Player"></iframe>
If content entitlement is enabled, you will need to pass a valid KS (Kaltura Session) in the embed code. Please see my response here: Disableentitlement vs read only role
Thank you for this.
Is there no way to generate an iframe embed code like I have send in a previous post to integrate into a webpage when the user is allowed to see this video. This would be the easiest way to integrate the video in web and mobile and we could generate the iframe embed snipplet once on the server. Or is there a possibility to get the iframe embed code for an entryId with a KS from the Kaltura NodeJs API.
Thanks and best regards
You can generate the KS (on the server side, using NodeJS or any of our supported clients) by calling session.start(). Needless to say that one should refrain from using JS on the client side for such operations since doing so would mean that anyone could easily obtain your partner secret by viewing the page’s source. Once generated, You can set the KS in the embed code.
If you’re using KMS (Kaltura MediaSpace), you may achieve the same goal by utilising certain KMS modules. KMS is proprietary software and is not available to community users. If you are a Kaltura customer, I suggest you approach your account manager. They will be able to advise you on the solution most suitable to your specific needs.