CLP1611.Camera live image using MJpeg RTP protocol support implemented.
This commit is contained in:
@@ -142,16 +142,16 @@ namespace TBF.UiBridge
|
||||
public static event EventHandler<ProcedureCompletedEventArgs> ProcedureCompletedHandler;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Called from the state machine when the procedure is completed and UI needs to be updated.
|
||||
/// </summary>
|
||||
public static void OnImageUpdated(object sender, ImageUpdatedEventArgs data)
|
||||
{
|
||||
if (ImageUpdatedHandler == null) return;
|
||||
try { ImageUpdatedHandler(sender, data); }
|
||||
catch (Exception e) { log.Error("ImageUpdatedHandler(...) failed", e); }
|
||||
}
|
||||
public static event EventHandler<ImageUpdatedEventArgs> ImageUpdatedHandler;
|
||||
/// <summary>
|
||||
/// Called from any RTP listener thread (e.g. MJpeg RTP listener thread)
|
||||
/// </summary>
|
||||
public static void OnImage(int cameraIdx, System.Drawing.Image image)
|
||||
{
|
||||
if (ImageHandler == null) return;
|
||||
try { ImageHandler(null, new ImageEventArgs(cameraIdx, image)); }
|
||||
catch (Exception e) { log.Error("ImageHandler(...) failed", e); }
|
||||
}
|
||||
public static event EventHandler<ImageEventArgs> ImageHandler;
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user