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 InitSoundSystem method (inside the form initialisation function).
At this point you can use are the following method to load and play a sound file:
LoadSound 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
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 position of a certain amount
RewindSound to rewind the song position 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 class to load and play a video clip file:
VideoPlayer.Create to create a new video player object
VideoPlayer.Load to load a video from the hard disk
VideoPlayer.Play to playback 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.