VB.Net 2003 Activex Video Play Problem
Posted: 16 Mar 2006 16:47
Hi All,
I am developing a interface for VLC for streaming Television content captured from TV Tuner Card using VB.Net. I have embedded the VLC activex in my VB Form.
I wanted to pass the MRL information dynamically to the Activex. However the dynamic passing does not seem to work properly.
While Embedding the Plugin I have set MRL property as Blank
My Example Code is as follows :
Private Sub AxVLCPlugin1_Enter
Dim strArray() As String
AxVLCPlugin1.playlistClear()
AxVLCPlugin1.AutoPlay = True
AxVLCPlugin1.addTarget("dshow:// :dshow-vdev=""ULi M9205 TV Box"" :dshow-adev=""ULI M9205 "" :dshow-size="""" :dshow-caching=200 :dshow-chroma="""" :dshow-fps=0.000000 :no-dshow-config :dshow-tuner :dshow-tuner-channel=58 :dshow-tuner-country=60 :dshow-tuner-input=2", strArray, AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, 0)
If Not AxVLCPlugin1.Playing Then
AxVLCPlugin1.play()
End If
End Sub
If I start VLC Player externally and play the above MRL it works. After that (stopping VLC Player) if I start my VB.Net application it works perfectly.
If I change the Tuner-Channel to something else (For example Channel 12) in the VLC Player and then start my VB Application it will play the Channel 12 - though in my application I have coded it to play channel 58.
Did anyone have similar problems ? I am coding on the wrong event ?
Please let me know.
Thanks very much for developing a very nice solution.
Satish
I am developing a interface for VLC for streaming Television content captured from TV Tuner Card using VB.Net. I have embedded the VLC activex in my VB Form.
I wanted to pass the MRL information dynamically to the Activex. However the dynamic passing does not seem to work properly.
While Embedding the Plugin I have set MRL property as Blank
My Example Code is as follows :
Private Sub AxVLCPlugin1_Enter
Dim strArray() As String
AxVLCPlugin1.playlistClear()
AxVLCPlugin1.AutoPlay = True
AxVLCPlugin1.addTarget("dshow:// :dshow-vdev=""ULi M9205 TV Box"" :dshow-adev=""ULI M9205 "" :dshow-size="""" :dshow-caching=200 :dshow-chroma="""" :dshow-fps=0.000000 :no-dshow-config :dshow-tuner :dshow-tuner-channel=58 :dshow-tuner-country=60 :dshow-tuner-input=2", strArray, AXVLC.VLCPlaylistMode.VLCPlayListAppendAndGo, 0)
If Not AxVLCPlugin1.Playing Then
AxVLCPlugin1.play()
End If
End Sub
If I start VLC Player externally and play the above MRL it works. After that (stopping VLC Player) if I start my VB.Net application it works perfectly.
If I change the Tuner-Channel to something else (For example Channel 12) in the VLC Player and then start my VB Application it will play the Channel 12 - though in my application I have coded it to play channel 58.
Did anyone have similar problems ? I am coding on the wrong event ?
Please let me know.
Thanks very much for developing a very nice solution.
Satish