Disable context menu on html5 video
Copy link to clipboard
Copied
Hi Guys,
Im using StageWebView to play youtube videos in Android and iOS.
I need to disable the context menu in this html5 video, because I do not want you to see/copy the video url.
Can anybody help me ?
Thanks you guys
Im using:
- Flash CC 2014
- Air 16.0.0.222
- Android 4.4.4
:: MY CODE ::
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.geom.Rectangle;
import flash.media.StageWebView;
import flash.events.ErrorEvent;
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
var w : int = 540;
var h : int = 720; //304;
var testview:StageWebView = new StageWebView();
testview.stage = this.stage;
testview.viewPort = new Rectangle(0, 0, w,h);
testview.loadString( getHTML5Player("oaJwulqZdkk") );
testview.addEventListener(ErrorEvent.ERROR, onError);
function onError(event:ErrorEvent):void {
erro.text = "not able to reach location: "+ event.errorID;
}
function getHTML5Player( videoId : String ) : String
{
return "<iframe id=\"player\" type=\"text/html\" width=\"540\" height=\"304\"" +
"src=\"http://www.youtube.com/embed/"+videoId+"?rel=0\ ?hd=1\ ?fs=1\" frameborder=\"0\"> </iframe>";
}
