Thanks Frank, that helped. But another question: In production the video files are stored on a separate server. I tried setting the “SourceURL” to a UNC path and nothing plays. Does the video have to be in the web root folder to be played?
This was helpful. But now I have another issue. When the user clicks “Play” we open a dialog box that contains the video control. I added the handler to write the bytes of the file to the response stream, so the video plays correctly. But when the user closes that dialog, the audio of the video continues to play.
It’s not a huge deal for now. I tried calling Dispose() on the video control on FormClosing, but that didn’t help. Any suggestions?
Can the video “SourceURL” be a link to YT, Vimeo or SC? I’m trying a YouTube link and I get “Invalid Content” even after changing the web.config as indicated above.