How to work with single songs and video clips |
|
As already stated in the How to use the control in your projects section, the first thing to do is to call the InitDJSystem method (in the form or dialog initialisation routine).
At this point the methods you can use are the following:
LoadSound, LoadSoundFast or LoadSoundFromRawFile to load a song from the hard disk LoadSoundFromMemory or LoadSoundFromRawMemory to load a song from a memory buffer LoadInternetStream to load a song from the Internet or from a Shoutcast/Icecast server PlaySound to playback the loaded song PlaySoundLoop to playback the loaded song in looping mode PlaySoundRange to playback a portion of the loaded song PlaySoundRangeLoop to playback a portion of the loaded song in looping mode with the capability of setting the exact number of loops PauseSound to pause the currently playing song ResumeSound to resume a paused song StopSound to stop the currently playing song SeekSound to seek the song to a given position ForwardSound to forward the song of a certain amount RewindSound to rewind the song of a certain amount CloseSound to discard the loaded song from memory: note that once the container form will be closed, you won't need to do any clean-up action: the control will automatically free each previously allocated resource.
or the following methods of the VideoPlayer object to load and play a video clip file:
VideoPlayer.Create to create a new video player object VideoPlayer.Load or VideoPlayer.LoadForTempoChange to load a video from the hard disk VideoPlayer.Play to playback the loaded video VideoPlayer.PlayRange to playback a portion of the loaded video VideoPlayer.Pause to pause the currently playing video VideoPlayer.Resume to resume a paused video VideoPlayer.Stop to stop the currently playing video VideoPlayer.Seek to seek the video to a given position VideoPlayer.Forward to forward the video position of a certain amount VideoPlayer.Rewind to rewind the video position of a certain amount VideoPlayer.Close to discard the loaded video from memory: note that once the container form will be closed, you won't need to do any clean-up action: the control will automatically free each previously allocated resource.
|