I am deploying final application within Visual Studio due to server and client requirements.
1.How do I disable context menu on webplayer activeX? (when not using browser componet in Winform.) The ActiveX property for the context menu is defaulted to “none”, but still shows up when right mouse click on webplayer window.
2.Will the ocx register on new deployments or will there be issues?
- If decided that browser componet is needed, what is needed to insure successful offline deployment in regards to having the webplayer install?
4.What is webplayer workflow for deployment within Visual Studio? (prefer offline deployment approach if available)
Thanks,
Looking for best practice approach to the deployment using Visual Studio to run webplayer. What files where, when building the deployment and any extra requirements to insure webplayer runs, either Webplayer ActiveX or browser componet running webplayer approach. Also any information of things to consider as what may be an issue and why.
If the webplayer plugin is not installed, it must have to be downloaded from the website, correct.
This is not about version control but about “when the plugin is not there, you can’t use it”, same as you can’t use MS C# applications if you have no .NET framework installed or not the correct one.
When using the webplayer like this, be it as activex component or in an embedded browser window, keep in mind that the Security Sandbox in Unity 3.0 Manual page still fully applies.
Thats part of what I meant with “the garget machines have to fullfill …”, basically the security as if it runs like a normal webplayer (independent of embedded webpage or activex com) and the webplayer plugin must be installed before using it or it won’t do anything
As for data passing: Unsure how you do it at the time but my strong recommendation is DO NOT USE SENDMESSAGE, its overhead is devastating, you won’t get anything near realtime for example. Should you happen to need continous communication, use sockets instead
As for “mono only supports frameworks 2.0”: Wrong. The current mono version used is able to use up to 3.5
But it won’t change the fact that you can’t use anything related to forms naturally
Hello Hannebaum,
I use the same method to deploy my application, I go through a winform with the WebPlayer ActiveX, I encounter the same problems, how to disable the context menu ?
Have you solved your problem ?
thank you,
If you want to set a parameter into disableContextMenu property in ActiveX Unity Web player, you need to prepare IPropertyBag.Read Method in your program (IPropertyBag.Read(String, Object, IErrorLog, UInt32, Object) Method (Microsoft.VisualStudio.OLE.Interop) | Microsoft Learn).
I made a sample C++ program (Visual Studio 2010) which set “true” parameter into disableContextMenu property. See http://www.nibiirosoft.com/download/UnityActiveXSample.zip
And using that codes, I made a player for .unity3d files (http://www.nibiirosoft.com/Product/UniPlayer_en.html).
I hope it will be helpful to you.