- Home /
Plugins in a Web Player
Hi guys,
I was trying to add plugins to a web based player and according to the unity manual. It says that plugins disabled when building a Web Player for security reasons. Is there any work around for this? I have an external game controller and I want to use that in my web based game. I would like to know if this is possible?
Thanks in advance! Any help would be greatly appreciated.
Regards, Deepak.
Answer by jonas-echterhoff · Jun 07, 2010 at 11:19 AM
No, there is no way around it - if we allowed people to run arbitrary code in the web player, they could implement any kind of malicious code using the web player, so we cannot allow it. What is the controller you need to support?
Answer by deepak · Jun 08, 2010 at 08:20 AM
Hi Jonas,
Thanks for your reply. We have designed our own controller which is interfaced as USB HID device. Hence we need to read the HID report data from USB to play the game...And since Unity does support the USB library, we have to use a C# code which is a USB HID library to open the HID port, read data, pass to Unity...and such a C# project code has to be made into a plugin...
for this case, any way we could do it...we do want to publish our game into browser
Answer by kdemarest · Jul 15, 2010 at 05:38 AM
Jonas, is there any chance of having the Web Player do what Adobe Flash does with the Microphone or the iPhone does with GPS readings, that is, give the user a popup whether they want to allow access to the USB device?
Your answer
![](https://koobas.hobune.stream/wayback/20220613054601im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Web Player Disable Mouse Look 1 Answer
How to use dll in webplayer? 2 Answers
Detect if webplayer is supported or not from UserAgent 0 Answers
Building WebPlayer for 3.4> with 3.5 beta 2 Answers
Detect if Web Player is running in Facebook Canvas or not. 2 Answers