Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21127

Windows Media Player Control ERROR Trap

$
0
0
Hi everyone,

Assuming that we try to play a video on our WMP VB control
and the video is not available, and then we get these errors

Name:  WMP ERROR 1.png
Views: 14
Size:  7.4 KB
Name:  WMP ERROR 2.png
Views: 11
Size:  8.3 KB

Is been a long time since I've been asking myself if there is a code to trap
any error coming from the Windows Media Player control on Visual Basic 6.

I asked this question years ago on another forum and the only code that I know is this:
Code:

Private Sub WindowsMediaPlayer1_MediaError(ByVal pMediaObject As Object)
MsgBox "Media error problem"
End Sub

It does work but just to let you know there were errors, but still show the WMP popup
would be nice if I could get a suggestion or any help.
Thanks in advance
Attached Images
  

Viewing all articles
Browse latest Browse all 21127

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>