Kickflip / kickflip-android-sdk

Kickflip Android SDK - Live Video Streaming to the Cloud
https://kickflip.io
Apache License 2.0
660 stars 212 forks source link

Error when get streams #34

Closed nvhaiwork closed 9 years ago

nvhaiwork commented 9 years ago

I'm used bellow code to get all streams, but got message: A Kickflip server error occurre. I still can login user/ start srteam but I can't get streams. Please help me

    KickflipApiClient apiClient = Kickflip.getApiClient(this);
    apiClient.getStreamsByKeyword(null, 0, 100, new KickflipCallback() {
        @Override
        public void onSuccess(Response response) {

            mStreams = (List<Stream>) response;

            LogUtil.e("onSuccess", mStreams.size() + "adf");
            LogUtil.e("onSuccess", mStreams.toString());
        }

        @Override
        public void onError(KickflipException e) {
            LogUtil.e("onError", e.getMessage());
        }
    });
OnlyInAmerica commented 9 years ago

I believe pages start at 1, not 0. Could you change your page request and let me know if the issue persists?

Also, as always, make sure you're using the latest SDK version (1.3.1 as of this writing).

Thanks for the report!

nvhaiwork commented 9 years ago

Ohhhhh, It works. Thanks for your help.