Reputation: 250
Can anyone tell me the proper way to deploy a C# WinForms application that uses gstreamer-sharp? The only way I can get it to work is to work is by setting the gstreamer bin directory as my Application's working directory.
I have seen examples trying to temporarily set the application's path to the various gstreamer directories, but this still does not work for me and I get errors that DLL's are missing.
Environment.GetEnvironmentVariable("PATH") + ";C:\\gstreamer\\1.0\\x86\\bin\\");
Environment.SetEnvironmentVariable("PATH",
Environment.GetEnvironmentVariable("PATH") + ";C:\\gstreamer\\1.0\\");
Environment.SetEnvironmentVariable("PATH",
Environment.GetEnvironmentVariable("PATH") + ";C:\\gstreamer\\1.0\\x86\\lib\\");
Environment.SetEnvironmentVariable("PATH",
Environment.GetEnvironmentVariable("PATH") + ";C:\\gstreamer\\1.0\\x86\\");
Should I just deploy all of the gstreamer DLLs inside my application's bin driectory? I was hoping to have them run the installer and then my application could could reference it.
Any help on this would be greatly appreciated.
Upvotes: 2
Views: 1211
Reputation: 940
Adding the bin directory only should be enough. You can look at https://github.com/Vocaluxe/Vocaluxe/blob/develop/Vocaluxe/Lib/Sound/Playback/GstreamerSharp/CGstreamerSharpAudio.cs to see how initialization is done in Vocaluxe.
Upvotes: 1
Reputation: 250
Probably the easiest solution I can come up with is manually putting the gstreamer bin directory in the system's PATH.
Upvotes: 0