本文整理汇总了Java中org.freedesktop.gstreamer.GStreamer类的典型用法代码示例。如果您正苦于以下问题:Java GStreamer类的具体用法?Java GStreamer怎么用?Java GStreamer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GStreamer类属于org.freedesktop.gstreamer包,在下文中一共展示了GStreamer类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import org.freedesktop.gstreamer.GStreamer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
/**
* Init Gstreamer
*/
try
{
GStreamer.init(this);
} catch (Exception e)
{
Log.e(TAG, e.getLocalizedMessage());
finish();
return;
}
//nativeInit();
setContentView(R.layout.video_activity_layout);
String rtspURL = "";
GStreamerSurfaceView firstSurfaceView = (GStreamerSurfaceView) findViewById(R.id.surface_view_1);
/*nativeSetUri(rtspURL, TCP_TIMEOUT);
nativePlay();*/
}
示例2: SpiceCommunicator
import org.freedesktop.gstreamer.GStreamer; //导入依赖的package包/类
public SpiceCommunicator (Context context, RemoteCanvas canvas, Handler handler, ConnectionInfo connection) {
this.canvas = canvas;
this.handler = handler;
this.connection = connection;
this.context = SpiceClientNewContext();
try {
GStreamer.init(context);
} catch (Exception e) {
e.printStackTrace();
canvas.displayShortToastMessage(e.getMessage());
}
}
示例3: init
import org.freedesktop.gstreamer.GStreamer; //导入依赖的package包/类
public static GstAhc init(Context context) throws Exception {
System.loadLibrary("gstreamer_android");
System.loadLibrary("android_camera");
GStreamer.init(context);
if (!nativeClassInit()) {
throw new Exception("Failed to load application jni library.");
}
return new GstAhc(context);
}