Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to post videos from Android to Jwplayer server


Hi, I am very new to Jwplayer. I have integrate JW player in my app. Is there a way to upload my videos to JWplayer server through android app programatically?

8 Community Answers

George

JW Player Support Agent  
1 rated :

Hi,

We don’t allow client applications to upload directly to the JW Platform as it poses a security risk for your API key and secret. You also have an API limit of 60 calls per minute so having the client connect directly to the JW Platform is not recommended.

Instead, you should upload the content to your server as an intermediate step and enqueue the videos to be uploaded to the JW Platform. This allows you to keep your API key and secret private and also manage the rate of uploading to JW Platform.

k...

User  
1 rated :

We are going to purchase JW platform. If we go any intermediate server it would be like two transfer. We are looking option for upload video from mobile application to JW platform and get the response to mobile application directly.

Kindly give us the option for this.

George

JW Player Support Agent  
1 rated :

Hi,

As mentioned this cannot be an option due to security risks and API limits.
https://developer.jwplayer.com/jw-platform/docs/developer-guide/management-api/

You need an intermediate server.

k...

User  
1 rated :

Hi George,

Thanks for your response.

I have been trying to upload the videos using below mentioned URI from my client side(Android).

http://api.jwplatform.com/v1/videos/listtext=d%C3%A9mo&api_nonce=80684854&api_timestamp="+timeStamp+"&api_format=xml&api_signature="+sha1key+"&api_key=mykey

I am getting the response code of 400 bad authentication.

In the link provided, https://github.com/raphi/jwplayer-api-client they have given code to upload videos from Ruby rails.

So, by any point of view is it possible to upload the videos from client side(Either android/ios) to JW player server.

Please assist me with this.

Liam

User  
0 rated :

Hi,

As already mentioned by George, Direct client either Android/ios/windows or any other platform cannot directly upload videos to JW platform. Jw player architect layers are designed in such a way that it protects the authentication info of users. Instead you need a 'intermediate server' to upload the same to JW platform.

George

JW Player Support Agent  
0 rated :

Hi,

Here’s how I do it:
http://qa.jwplayer.com.s3.amazonaws.com/~george/BishopQA.zip

Review UploadActivity, the JWPlatform package

Martin

User  
0 rated :

Yes, it is working with the given project code. Check it now

George

JW Player Support Agent  
0 rated :

I’ll go ahead close this ticket now

This question has received the maximum number of answers.