Cusomizing KMC

14 replies [Last post]
Joined: 06/04/2009
Points: 9

Hi guys..I have downloadr the source code from http://www.kaltura.org/project/kmc and import it on Flex Builder 3, when I run it and "invalid_ks" appear..I was wondering why there is no log-in panel visible?

Thanx...

Joined: 02/22/2009
Points: 4

Hi,

Let's define the problem and what is what you just saw:
the KMC project is composite from few stand alone application such as: Login | Sign up | Content | Account | Application Studio ... (and more to come) as I understand from your question you tried to run one of the stand alone applications ( because you didn't mention i will guess it's the Content Application) the first thing every app does is communicate with Kaltura API to get the data is needed to present at it's first Screen, what you saw is an error that occur if you don't have a session key or as we call it ks.

Solution:
1. generate a ks:
go to http://www.kaltura.com/index.php/partnerservices2/testme set you partnerId, secret, uid and select "start session" service generate the ks and copy it (be advised that the ks sometimes has '=' chars in it so don't double click to copy it mark it all and pay attention to that).

2. insert the ks as a flashvar in index.template.html:
take the ks you just copied and paste it in the project index.template.html file in the flashvars section (replace the existing one with this new one) and then run the app.

note: the ks is valid to 24 hours you will need to create it if you work locally. (one might want to generate a ks automatically via Kaltura API this is possible as well).

Boaz

Joined: 04/05/2009
Points: 11

Thank you so much sir for the reply...I changed the flashvars in the folder "content/html-template" but still I can't compile it, or there is another file "index.template.html"? I got these errors.. "Unable to resolve bundle 'collections' for locale 'en_US_kaltura'" its like 54 of them...I attach the screenshot.

Thanx a lot Boaz..

Joined: 04/05/2009
Points: 11

Hi sir...I just resolved the bundle resource error by adding to the project properties under "Flex compiler" the additional arguments "-locale=en_US_kaltura -source-path=locale/{locale}" but still I got the error "unable to open 'locale/en_US_kaltura'" even though it was in the directory.

Thanx again sir...

Joined: 07/18/2009
Points: 5

Because locale is a folder in the same level as src, you have to specify
"-locale=en_US_kaltura -source-path=../locale/{locale}"

Joined: 01/05/2009
Points: 1697

Hi,

You need to create a new base locale bundle, here is how:
1. open command line (or terminal)
2. cd to \Flex Builder 3\sdks\3.0.0\bin
3. run the following: copylocale en_US en_US_kaltura
For more info see: Flex 3: Feature Introductions: Runtime Localization.

Joined: 07/18/2009
Points: 5

On a Mac when you cd to the bin folder in a terminal, you have to type
./copylocale en_US en_US_kaltura

Joined: 04/05/2009
Points: 11

Hi...thanks for that....There are no errors in the "Problem Panel" still when I run it ...an "INTERNAL_SERVERL_ERROR" even though I provide the necessary flashvars in the index.template.html..
"flashvars", "partner_id=20859"+
"&subp_id=2085900"+
"&uid=ccmc"+
"&devFlag=true"+
"&host=0"+
"&debugMode=1" +
"&entryId=-1" +
"&kshowId=-1" +
"&openCw=openCw" +
"&widget_id=190"+ //b56d54bb5a
"&ks=YjRhOTBmNmQ5N2M3NWI4.....
What makes this error?
What kind of KS will I provide? From the Administrator or Web Secret?

Thanx a lot Sir..

Joined: 01/05/2009
Points: 1697

Web secret.
Can you use fiddler to check what service returned this answer ?

Joined: 11/09/2010
Points: 3

Hi,

Can you please tell the steps for running the Kaltura Contribution Wizard Project in my local environment. I downloaded the zipped source(kcw_v1.5.2) from kaltura site. After setting up in local environment, it pop ups with error "PARTNER_ACCESS_FORBIDDEN" though i gave the partner id, session, user id in index.template.html file.

since it is urgent requirement, I need a guidence and help on how to proceed further...

It would be very helpful, if i get the complete procedure and manual documents for successfully running this project.

Thanks

Joined: 04/05/2009
Points: 11

I still have an error..when I tried to change the ks flashvar to " ", an "UNKNOWN_PARTNER_ID" pops-up

UNKNOWN_PARTNER_IDUnknown partner_id [ 208**]-from fiddler

and when I provided it with the correct ks

INTERNAL_SERVERL_ERRORInternal server error INVALID_STR - from fiddler

Joined: 04/05/2009
Points: 11

[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://kaldev.kaltura.com/index.php/partnerservices2/listentries"] messageId="1A449C24-8F4B-EBA0-2964-F780C271ADED" type="fault" bubbles=false cancelable=true eventPhase=2]

By the way, Im using Flex builder 3 and Windows Xp Pro SP2..

Thanx Kalturian..

Joined: 07/03/2009
Points: 9

I just resolved this error by clicking on 'Logout' link in the top right corner.

I then had to login again, which went fine, and the error disappeared.

Maybe a hint, to check if you had login remember + cookies enabled, which causes bad auth strings.

Greets!

Joined: 03/08/2010
Points: 4

I can get to the point where it says: INTERNAL_SERVERL_ERROR

But there is no logout option. what is the proper way to get around this

Joined: 04/29/2010
Points: 6

Hi all
I added the custom button using application studio(editing player).This suggests to add following code in my html file
function func1(entryID){//body content here...}

But i don't know how to use entryID.When I use alert method in the body content,I find that on clicking the button on the player it does not hit the function.Please give an example if pssible.
Thanks.