TimeSpan ITimeShifting.GetPosition()
{
IStreamBufferMediaSeeking mediaSeeking = this.streamBufferSource as IStreamBufferMediaSeeking;
if (mediaSeeking != null)
{
long currentposition = 0; // Reference time (100-nanosecond units). 100 * 10e-9 = 10e-7 = 10000000
mediaSeeking.GetCurrentPosition(out currentposition);
return TimeSpan.FromMilliseconds(currentposition / 10000);
}
return TimeSpan.Zero;
}
GraphBuilderBDATimeShifting::ITimeShifting ( ) : double | |
GraphBuilderBDATimeShifting::ITimeShifting ( ) : void | |
GraphBuilderBDATimeShifting::ITimeShifting ( System.TimeSpan position ) : void | |
GraphBuilderBDATimeShifting::ITimeShifting ( System.TimeSpan &start, System.TimeSpan &stop ) : void | |
GraphBuilderBDATimeShifting::ITimeShifting ( double rate ) : void |