VIDEO CONTROL

Answered Closed
0
0

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);
}

  • You must to post comments
Best Answer
0
0

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.

  • You must to post comments
0
0

Hi Ray,

Your code works on my end, can you please check if you have any errors in your DevTools console?

Best,
Alaa

//

  • You must to post comments
Showing 2 results