playMaker

Author Topic: Webcam Controller  (Read 2942 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Webcam Controller
« 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/
« Last Edit: March 22, 2016, 06:47:04 PM by dudebxl »

gio987654321

  • Playmaker Newbie
  • *
  • Posts: 1
    • @pump_upp - best crypto pumps on telegram !
Re: Webcam Controller
« Reply #1 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


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Webcam Controller
« Reply #2 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