Norbert Eder
Erfahrenes Mitglied
@Christian: Wieso hast du bei deiner Methode GetInterfaces(string) einen bool als Rückgabewert? Entweder du bekommst eine Exception oder es hat funktioniert. Da brauchst du doch keinen Boolean als Rückgabe.
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
this.videoWindow = this.graphBuilder as IVideoWindow;
hr = this.mediaSeeking.SetTimeFormat(TimeFormat.Frame);
ScrollMedia.Maximum = this.mediaPosition.get_Duration;
double
m_stopTime,
m_currentPosition
// Initialisiert die TrackBar. Sollte immer dann aufrufen werden,
// wenn sich das aktuelle Video geändert hat oder die Aufnahme abgeschlossen ist.
public void SeekTrackBar_Init() {
if( mediaPosition == null ) return;
mediaPosition.get_StopTime( out m_stopTime );
mediaPosition.get_CurrentPosition( out m_currentPosition );
seekTrackBar.Maximum = (int) Math.Round( m_stopTime, 0 );
seekTrackBar.Value = (int) Math.Round( m_currentPosition, 0 );
if( m_stopTime > directXCapture.DXcapture.FrameRate )
seekTrackBar.TickFrequency = (int) Math.Round( m_stopTime / capture.FrameRate, 0 );
else
seekTrackBar.TickFrequency = 1;
}
void seekTrackBar_Scroll( object sender, System.EventArgs e ) {
if( mediaPosition == null ) return;
mediaPosition.put_CurrentPosition( seekTrackBar.Value );
}