Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Gstream单显影剂_C#_Monodevelop_Gstreamer - Fatal编程技术网

C# Gstream单显影剂

C# Gstream单显影剂,c#,monodevelop,gstreamer,C#,Monodevelop,Gstreamer,我想使用monodevelop开发一个应用程序。 由于我需要使用Gstreamer来播放音频和视频(事实上,我必须使用Gstreamer-#),所以我尽了最大努力想办法做到这一点,但不幸的是,我没有找到任何合适的链接 如果有人知道一些事情,如果你能与我分享,我将不胜感激。如医生所说,你需要引用gstreamer-sharp.dll,这反过来又需要gstreamersharpglue-0.10.dll在同一目录中 Gst.Application.Init(); // First init GStr

我想使用
monodevelop
开发一个应用程序。 由于我需要使用Gstreamer来播放音频和视频(事实上,我必须使用Gstreamer-#),所以我尽了最大努力想办法做到这一点,但不幸的是,我没有找到任何合适的链接


如果有人知道一些事情,如果你能与我分享,我将不胜感激。

如医生所说,你需要引用gstreamer-sharp.dll,这反过来又需要gstreamersharpglue-0.10.dll在同一目录中

Gst.Application.Init(); // First init GStreamer - important!!
var pipeDescription = "playbin uri=myVid.avi name=myBin";
var pipeline = Gst.Parse.Launch(pipeDescription) as Gst.Bin; //Launch Pipeline
var someElementInPipe = pipeline.GetChildByName("myBin") as Gst.Element;
pipeline.SetState(Gst.State.Playing);
----或使用ElementFactory进行手动管道施工----

有关更多示例,请查看以下测试:

你是说开发C#IDE还是开发C#库?另外,你问的问题也不清楚,你能试着重新表述一下你的问题吗?@ArtB你的评论的第一部分也不清楚。您最肯定的意思是,即开源、跨平台、C#的实现和与Microsoft.NET Framework二进制兼容的CLR。@从随后的编辑来看,monocoder似乎是他想要的IDE。我本来打算纠正他的问题,但我发现有一个叫做“mono developer”的库,他可能是这个意思,我用了一天的时间来找出为什么我的
Gst.ElementFactory.Make
结果总是空的,我在这里找到了答案!!非常感谢
Gst.Application.Init();
var pipeline = new Gst.Pipeline();
var elementA = Gst.ElementFactory.Make("someElement");
var elementB = Gst.ElementFactory.Make("someElement");
pipeline.Add(elementA, elementB);
elementA.Link(elementB);
pipeline.SetState(Gst.State.Playing);