internal static bool StartDataStream(VarjoStreamType type, VarjoStreamCallback callback) { if (!IsMRReady()) { return(false); } return(MRStartDataStream(type, callback, IntPtr.Zero)); }
/// <summary> /// Starts the frame stream. /// </summary> /// <returns>True, if frame stream supported and successfully started.</returns> public bool Start() { if (callback != null) { return(true); } callback = new VarjoStreamCallback(NewFrameCallback); return(VarjoMixedReality.StartDataStream(StreamType, callback)); }
private static extern bool MRStartDataStream(VarjoStreamType streamType, VarjoStreamCallback callback, IntPtr userdata);
/// <summary> /// Stops the frame stream. /// </summary> public void Stop() { VarjoMixedReality.StopDataStream(StreamType); callback = null; }
/// <summary> /// Stops the frame stream. /// </summary> public void Stop() { VarjoPluginMR.StopDataStream(StreamType); callback = null; }