Beispiel #1
0
        /// <summary>
        /// Stops the playback
        /// </summary>
        /// <remarks>
        /// Calling Stop() will stop all streaming playback sensors and will reset the playback(returning to beginning of file)
        /// </remarks>
        public void Stop()
        {
            object error;

            NativeMethods.rs2_playback_device_stop(Handle, out error);
        }
Beispiel #2
0
        /// <summary>
        /// Un-pauses the playback
        /// </summary>
        /// <remarks>
        /// Calling Resume() while playback status is "Playing" or "Stopped" does nothing
        /// </remarks>
        public void Resume()
        {
            object error;

            NativeMethods.rs2_playback_device_resume(Handle, out error);
        }
Beispiel #3
0
        /// <summary>
        /// Set the playing speed
        /// </summary>
        /// <param name="speed">Indicates a multiplication of the speed to play (e.g: 1 = normal, 0.5 twice as slow)</param>
        public void SetSpeed(float speed)
        {
            object error;

            NativeMethods.rs2_playback_device_set_playback_speed(Handle, speed, out error);
        }
Beispiel #4
0
        /// <summary>
        /// Pauses the playback
        /// </summary>
        /// <remarks>
        /// Calling Pause() in "Paused" status does nothing
        /// If Pause() is called while playback status is "Playing" or "Stopped", the playback will not play until Resume() is called
        /// </remarks>
        public void Pause()
        {
            object error;

            NativeMethods.rs2_playback_device_pause(Handle, out error);
        }
Beispiel #5
0
        /// <summary>
        /// Set the playback to a specified time point of the played data
        /// </summary>
        /// <param name="time">The time point to which playback should seek, expressed in units of nanoseconds (zero value = start)</param>
        public void Seek(long time)
        {
            object error;

            NativeMethods.rs2_playback_seek(Handle, time, out error);
        }