phearun

Hi everyone,

i occasionally want to writ my own application to play video with full function of KARAOKE. for example we can eliminate song, we just keep music.

Can anyone help or tell me what control should i use

I appreciate your help!



Re: Visual Basic General multimedia in visual studio exp

emanCZ

When you install DirectX 9 there are some references that you can use for

multimedia such as 3D modeling, Playing Sound or long music.

also you can Play video in window mode or fullscreen.

here :

Add Reference (from Project menu): Microsoft.DirectX.AudioVideoPlayBack

Note: it beter for you : read something about "MD" in msDeveloper Network.

**It beter and faster than WMP reference.

Imports Microsoft.DirectX.AudioVideoPlayback

Public Class Player

Dim Video As Video

' Load File

Sub LoadFile(ByVal FileName As String)

Try

Video= New Microsoft.DirectX.AudioVideoPlayback.Video(FileName)

Catch ex As Exception

Msgbox(ex.Message)

End Try

End Sub

'Play it

Sub PlayFile()

If Not CheckDevice() Then Return

Video.Play()

End Sub

Function CheckDevice() As Boolean

If IsNothing(Videoo) Then

Throw New NullReferenceException("Audio device is null.")

End If

End Function

Sub StopPlaying()

If Not CheckDevice() Then Return

Video.Stop()

End Sub

End Class

it so fun.

emanCZ