I'm using ActiveX to control media files using VB.NET and have encountered lots of "Error HRESULT E_FAIL has been returned from a call to a COM component" without further explanation.
Here are some of them that I've found, please be so kind to tell me what I can do.
1. vlc.playlist.isPlaying returns exception: Error HRESULT E_FAIL has been returned from a call to a COM component. at AXVLC.IVLCPlaylist.get_isPlaying()
Condition: items is added into the playlist but not yet played. If vlc.playlist.playItem(thesong) has been executed, then this error does not appear anymore, even after paused or stopped
2. vlc.audio.channel returns exception: Error HRESULT E_FAIL has been returned from a call to a COM component. at AXVLC.IVLCAudio.set_channel(Int32 channel)
Condition: playlist is not played, but sometime works.
To reproduce the error:
Code: Select all
vlc.playlist.playItem(thesong)
vlc.audio.channel = 3
3. vlc.input.rate returns exception: Error HRESULT E_FAIL has been returned from a call to a COM component. at AXVLC.IVLCInput.set_rate(Double rate)
Condition: same as number 2 above
I've googled them all and including in this forum and can't seem to find any clue.
Is there anything I've missed here? wrong keywords perhaps?
Thnx in advance.
Pls advice.