View my account

C# D400 playback - delay in Pausing stream

Comments

1 comment

  • MartyG

    In the SDK's C# documentation for playback, they use an instruction called Task.Delay to specify how many milliseconds the program should wait before executing the instruction on the next line.  To quote from the example:

    await Task.Delay(500);
    playback.Pause();

    https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/Documentation/cookbook.md#playback

    So the program is apparently being asked to wait 500 milliseconds (half a second) before executing the pause instruction.

    Does it make any difference if you insert a similar delay instruction directly before your pause instruction, please?

    If that doesn't work, the delay may be occurring with IsPauseRequested (a bool?) becoming True and allowing the pause instruction to execute.  You could tell if this was the cause by having a debug log readout about the current state of IsPauseRequested (whether it is currently true or false).  If it stays False for 10 seconds after the pause is requested and then becomes True, this may be the source of the problem.

     

     

     

    0
    Comment actions Permalink

Please sign in to leave a comment.