Skip to main content

How to play a fragment of the source file?

Products: Media Player SDK .Net

You can enable fragment playback by setting the start and stop time to the player object.

Sample code

// enable fragment playback
MediaPlayer1.Selection_Active = true;

//set start time to 2000 ms
MediaPlayer1.Selection_Start = TimeSpan.FromMilliseconds(2000);

// set stop time to 5000 ms
MediaPlayer1.Selection_Stop = TimeSpan.FromMilliseconds(5000);

Required redists

  • Base redist
  • SDK redist

How can the required redists be installed or deployed to the user's PC?


Visit our GitHub page to get more code samples.