Skip to content

Instantly share code, notes, and snippets.

@guntidheerajkumar
Created October 24, 2016 07:06
Show Gist options
  • Save guntidheerajkumar/04eb9cbe6239645c5056820e45b302b1 to your computer and use it in GitHub Desktop.
Save guntidheerajkumar/04eb9cbe6239645c5056820e45b302b1 to your computer and use it in GitHub Desktop.
///Playing Video in ViewController
var filePath = NSBundle.PathForResourceAbsolute("sample", "gif", NSBundle.MainBundle.BundlePath);
var gifData = NSData.FromFile(filePath);
VideoWebView.ScalesPageToFit = true;
VideoWebView.LoadData(gifData, "image/gif", "gif", new NSUrl(""));
var filterView = new UIView(this.View.Frame);
filterView.BackgroundColor = UIColor.Black;
filterView.Alpha = 0.05f;
this.View.AddSubview(filterView);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment