
Upload video from an iPhone app to JWplayer platform
We are trying to upload videos from an iPhone app to JWplayer platform using the following api
https://api.jwplatform.com/v1/videos/create?api_format=json
The above api is successfully returning the key and token.
We have fetched the key, token and sent it to the following api along with video file path via input stream
http://upload.jwplatform.com/v1/videos/upload?api_format=json
But we are getting the response as
{ status code: 400, headers {
"Access-Control-Allow-Origin" = "*";
"Content-Length" = 166;
"Content-Type" = "text/html";
Date = "Fri, 11 Aug 2017 15:33:32 GMT";
Server = nginx;
} }
Please assist us with this.
Thanks