Created
October 24, 2016 07:06
-
-
Save guntidheerajkumar/04eb9cbe6239645c5056820e45b302b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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