Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: dudebxl on March 22, 2016, 06:33:07 PM

Title: Webcam Controller
Post by: dudebxl on March 22, 2016, 06:33:07 PM
I proper webcam action. Full control (play, pause, stop, take picture, UI adapt, aspect ratio, etc)

But in all honesty if you want to take a picture from a camera device (on mobile) then the webcam is not the way and purchasing a camera plugin is a better option.

Also:
+ WebcamCount
+ WebcamIsFrontFacing

On ecosystem or https://snipt.net/dudebxl/
Title: Re: Webcam Controller
Post by: gio987654321 on March 29, 2020, 04:56:25 PM
Hello Up this topic .I had a good perspective with your webcam controller.
Meanwhile ive got an error on 2019.3
 
NullReferenceException
HutongGames.PlayMaker.Actions.WebcamController.OnUpdate () (at Assets/PlayMaker Custom Actions/WebCam/WebcamController.cs:222)
HutongGames.PlayMaker.FsmState.OnUpdate () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmState.cs:265)
HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state) (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:2786)
HutongGames.PlayMaker.Fsm.Update () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/Fsm.cs:1995)
PlayMakerFSM.Update () (at C:/Projects/Playmaker_1.9.0/Projects/Playmaker.source.unity/Assets/PlayMaker/PlayMakerFSM.cs:594)

the first runtime all is ok .
but when i reload the scene . Webcam is shutdown :s .
problem with the  WebcamController.OnUpdate () ?

how can i resolve it ?
by advance many thanks for your feedback .

GiO

Title: Re: Webcam Controller
Post by: jeanfabre on April 14, 2020, 01:58:24 AM
Hi,

 you most likely need to stop the webcam, can you confirm you do that before quitting the scene that runs the webcam?

Bye,

 Jean