All Answers

All Answers » Re: How to play a video » Comments for "Re: How to play a video"
  • redcard
    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?
  • Frank (ITG)
    Hi Andrew, you can take a look at the various options discussed here: https://wisej.com/support/question/application-downloadpath-name-result-in-redirected-to-download-wx-and-404-error Hope that helps, Frank
  • redcard
    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?
  • Frank (ITG)
    Hi Andrew, will check in more detail later, but maybe calling Pause() on the video control can help as a quick work around ? Best regards, Frank
  • redcard
    That works, thanks
  • conrad
    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.