Hi,
We have implemented twitter video upload API integration in which the video file is uploaded using INIT, APPEND and FINALIZE call.
INIT call:-
Request: {“command”=>“INIT”, “media_type”=>“video/mp4”, “total_bytes”=>9679570}
Response body: {:method=>:post, :body=>{:media_id=>627049039373058048, :media_id_string=>“627049039373058048”, :expires_after_secs=>3599}
In APPEND call, we pass the whole video in a single chunk.
Request: {“command”=>“APPEND”, “media_id”=>627049039373058048, “segment_index”=>0, “file” => actual file binary content as multipart form request}
Response: segment size must be <= 1.
The above problem is coming with some videos only e.g. http://service.twistage.com/videos/cd47110bfe05a/file.source.
A lot of other videos are working fine too.
Can somebody advise as to why this error is coming up?
Thanks
Ganesh