开发者

C# Process properties

开发者 https://www.devze.com 2023-03-21 15:41 出处:网络
I\'m using win platform and Unity3D game engine to create 3D app. When running, 3d application is in full screen mode. I\'m using the following code to call VLC player from this app:

I'm using win platform and Unity3D game engine to create 3D app. When running, 3d application is in full screen mode. I'm using the following code to call VLC player from this app:

        string _path = "C:\\Users\\Saska\\Desktop\\Videi\\intro.mpg --fullscreen";
        foo = new Process();
        foo.StartInfo.FileName = "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe";
        foo.StartInfo.Arguments = _path;
        foo.StartInfo.CreateNoWindow = true;
        foo.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
        foo.Start();

It happens that, when I run VLC, I see VLC window in the beggining (for 2 seconds, until it buffers a movie), then it gets minimized and I see the movie running in full screen mode. When it finishes, I have to close VLC manually, but it happens that my 3D application gets minimized and I have to click on it "to make it normal - fullscreen" again. Is it possible: - to avoid appearance of VLC window in the begging, just to see full screen movie play (I assume no, since VLC player reads the movie) - to make my 3d app window running beneath VLC player in full screen mode so it happens that when VLC finishes I can see 3d app again in full screen mode - to make VLC shuts down when the movie is finished I'm new to process programming开发者_开发技巧 and don't know which terms to "google". I found process NET library, but I see no useful parameters.

Thank you very much. Aleksandra


You're better off using the .Net Interface to VLC. It should be quite easy to use.

Here's a complete sample source code : DMediaPlayer - Simple VLC frontend

0

精彩评论

暂无评论...
验证码 换一张
取 消