/*
 * Kurento Android Media: Android Media Library based on FFmpeg.
 * Copyright (C) 2011  Tikal Technologies
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.kurento.kas.media.rx;

/**
 * 
 * @author mparis
 * 
 */
public class MediaRx {
	public static native int startVideoRx(String sdp_str, int maxDelay, VideoRx videoPlayer);
	public static native int stopVideoRx();
	
	public static native int startAudioRx(String sdp_str, int maxDelay, AudioRx audioPlayer);
	public static native int stopAudioRx();
	
	static {
		System.loadLibrary("kas-media-native");
	}
	
}

/*
 * Kurento Android Media: Android Media Library based on FFmpeg.
 * Copyright (C) 2011  Tikal Technologies
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.kurento.kas.media.rx;

/**
 * 
 * @author mparis
 * 
 */
public class MediaRx {

	public static final int DEFAULT_MAX_DELAY = 200;

	public static native int startVideoRx(String sdp_str, int maxDelay, VideoRx videoPlayer);
	public static native int stopVideoRx();
	
	public static native int startAudioRx(String sdp_str, int maxDelay, AudioRx audioPlayer);
	public static native int stopAudioRx();
	
	static {
		System.loadLibrary("kas-media-native");
	}
	
}

Add DEFAULT_MAX_DELAY as 200 ms.