playMaker

Author Topic: Webcam Controller  (Read 1262 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Webcam Controller
« on: March 22, 2016, 03: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, 03:47:04 PM by dudebxl »

gio987654321

  • Playmaker Newbie
  • *
  • Posts: 1
    • View Profile
Re: Webcam Controller
« Reply #1 on: March 29, 2020, 01: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