예제 #1
0
파일: librtmp.c 프로젝트: CodeAsm/ffplay360
static int rtmp_read_pause(URLContext *s, int pause)
{
    RTMP *r = s->priv_data;

    if (!RTMP_Pause(r, pause))
        return -1;
    return 0;
}
예제 #2
0
int rtmp_read_pause(LibRTMPContext *ctx, int pause)
{
    RTMP *r = &ctx->rtmp;

    if (!RTMP_Pause(r, pause))
        return ERROR_UNKNOWN;
    return 0;
}
예제 #3
0
파일: librtmp.c 프로젝트: 411697643/FFmpeg
static int rtmp_read_pause(URLContext *s, int pause)
{
    LibRTMPContext *ctx = s->priv_data;
    RTMP *r = &ctx->rtmp;

    if (!RTMP_Pause(r, pause))
        return AVERROR_UNKNOWN;
    return 0;
}
/*
 * Class:     net_butterflytv_rtmp_client_RtmpClient
 * Method:    pause
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_net_ossrs_sea_RtmpClient_pause
        (JNIEnv * env, jobject thiz, jint pauseTime) {

    return RTMP_Pause(rtmp, pauseTime);
}