Hi,
I have the following video control with a valid SourceURL set to a working web-page.
Nothing happens in the video control when I run it, it just stays black.
Here is the code I am running – any ideas?
private void button3_Click(object sender, EventArgs e)
{
try
{
video2.SourceURL = “https://dfveyl7nyt9z5.cloudfront.net/IMG_1738.mp4”;
video2.Play();
video2.Invalidate();
video2.Update();
}
catch (Exception exception)
{
MessageBox.Show(“Video failed with “+ exception);
}
Hi,
It works now for me as well now. The problem was due to mis-specifying the URL I had specified the URL as video2.SourceURL = “https://dfveyl7nyt9z5.cloudfront.net//IMG_1739.mp4”; instead of video2.SourceURL = “https://dfveyl7nyt9z5.cloudfront.net/IMG_1739.mp4”; The extra slash before the file name caused it to choke. Thanks for your help.
Hi Ray,
Your code works on my end, can you please check if you have any errors in your DevTools console?
Best,
Alaa
//