How can i play windows media audio/video file(wmv) in windows media control in vb6? I tried playing it through this code but it didn't work
wmp.URL = App.Path & "filename"
wmp.Controls.play
How can i play windows media audio/video file(wmv) in windows media control in vb6? I tried playing it through this code but it didn't work
wmp.URL = App.Path & "filename"
wmp.Controls.play
The statement you show is correct. Are you sure of the file path, file type, and that the file is okay? The URL is specified without double quotes even if it has spaces in the path. Can you play the file in Windows Media Player if you just open it? If none of these help, can you post the actual code and the actual url you are setting?
You forgot the backslash between App.Path and "filename".
wmp.URL = App.Path & "\" & "filename"
wmp.Controls.play
wmp.URL = App.Path & "\" & "filename"
wmp.Controls.play
you dont need the & "\" just leave it how you had it and put the \ before filename like this
wmp.URL = App.Path & "\filename"
wmp.Controls.play