Showing results for 
Search instead for 
Did you mean: 
Community Member

Disallowing sharing of videos outside of Canvas

I'm placing student performances on Canvas so students can see how others are done.  They are embedded from Youtube (set to unlisted) and I added some code to remove the Share button that pops up at the end of YouTube videos as I don't want students to be able to share someone else's video-- just view.  The problem is that because its HTML5, when you right click on the video in Canvas, it gives the option to copy the original link or to get he embedding code, among other options.  Is there a way to turn this off or to remove it as an option?

Tags (3)
2 Replies
Community Advocate
Community Advocate

I'm no HTML5 expert, though I try to keep up to date on things as much as I can.  The bottom line is that Canvas appears to remove any command you may try to implement in the HTML editor.  One of the ones I've seen is oncontextmenu="return false;" embedded in something like an <img> tag for images.  (One explanation is here:  ).    But any of these methods can be unreliable, and anyone who really wants to see where the video originated from can view the page source.  And by the way, oncontextmenu will not work in Canvas.  I've tried it with both images as well as href tags and Canvas will simply strip it out upon saving.

Community Coach
Community Coach,

Were you able to find an answer to your question? I am going to go ahead and mark this question as answered because there hasn't been any more activity in a while so I assume that you have the information that you need. If you still have a question about this or if you have information that you would like to share with the community, by all means, please do come back and leave a comment.  Also, if this question has been answered by one of the previous replies, please feel free to mark that answer as correct.