libvlc_media_new_location not working for http url
Posted: 25 Feb 2013 21:02
In C#, I've got something like the following:
and
The rest of the code is:
However, neither of the libvlc_media_new_ functions results in the video being played. I just get a blank panel on my windows form. I have verified that the video exists and is playable (using Firefox). Also, if I do something like this (on another file):
... the video plays just fine.
I would appreciate any help I can get on this.
Thanks,
Gerald
Code: Select all
libvlc_media_new_path(_vlc, "http://cds.mytvandmovies.com/test/top_gear.mp4")
Code: Select all
libvlc_media_new_location(_vlc, "http://cds.mytvandmovies.com/test/top_gear.mp4")
Code: Select all
_player = libvlc_media_player_new_from_media(_media);
libvlc_media_player_set_hwnd(_player, _videoWindowHandle);
libvlc_video_set_mouse_input(_player, 0);
libvlc_video_set_key_input(_player, 0);
if (_player == IntPtr.Zero) return;
int ret = libvlc_media_player_play(_player);
Code: Select all
_media = libvlc_media_new_path(_vlc, "C:\\Users\\abc\\Documents\\Completed\\Betty.Boop.S01E27.DVDRip.XviD-DOCUMENT.avi");
I would appreciate any help I can get on this.
Thanks,
Gerald