@Override public RequestResponse call(Object... args) throws ClientException, IOException { if (!video.isLoaded()) { video.load().isPlaying(true); } RequestResponse response = new RequestResponse(); DrawableFrame frame = (DrawableFrame) video.getFrame(); response.put("drawable", frame != null ? frame.getDrawable() : null); response.put("fps", frame != null ? video.getFps() : 0); response.put("current_frame", video.getFramePosition()); response.put("frame_count", video.getFrameCount()); response.put("info", video.getInfo()); return response; }