title: Stream Foxnews/AbcNews swf video on iPhone's UIWebView
body: <p>I want to run a video from foxnews/abcnews in my news app. I have tried using UIWebView, SafariView and even launching it in safari, but it doesn't run. You can however run the url on your iphone safari browser easily (try copy pasting url from below). I have tried embedding the url in html and also using iframe. </p>
  
  <p><strong>Here is my code</strong></p>
  
  <pre><code>let foxNewsUrl:String! = "https://video.foxnews.com/assets/video-player.swf?video_id=4921342359001&amp;d=video.foxnews.com&amp;auto_play=true"
  let abcNewsUrl:String! = "https://abcnewsplayer-a.akamaihd.net/player/2.19.0.0004/amp.premier/AkamaiPremierPlayer.swf?settings_url=https://abcnewsplayer-a.akamaihd.net/player/2.19.0.0004/amp.premier/amp.premier.flashonly.xml?sec=1&amp;params=%7B%22playerId%22%3A%22facebookHTTPS%22%7D&amp;data_feed_url=http://abcnews.go.com/video/itemfeed?id=39515399&amp;auto_play=true&amp;ad_control_enabled=false"
  
  let embedHTML:String! = "&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style=\"margin:0\"&gt; &lt;embed id=\"yt\" src=\"\(foxNewsUrl)\" type=\"application/x-shockwave-flash\" width=\"100%\" height=\"100%\"&gt;&lt;/embed&gt;&lt;/body&gt;&lt;/html&gt;";
  
  let nsurl = NSURL( string: abcnewHtml)
  let request = NSURLRequest(URL: nsurl!)
  
  let myWebView:UIWebView = UIWebView(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, UIScreen.mainScreen().bounds.height))
  
  // loadRequest in UIWebView:
  myWebView.loadRequest(request)
  
  // load embed html in UIWebView
  myWebView.loadHTMLString(embedHTML!, baseURL: nil)
  self.view.addSubview(myWebView)
  
  // launch SafariViewController
  let htmlUrl3 = NSURL( string: abcNewsUrl)
  let svc = SFSafariViewController(URL: htmlUrl3!)
  self.presentViewController(svc, animated: false, completion: nil)
  
  // launch Safari outside of the app: this also doesn't work, 
  // it opens a 'Safari cannot download this file' dialog.
  UIApplication.sharedApplication().openURL(NSURL(string: foxNewsUrl!)!)
  </code></pre>
  
  <p>None of these are working. Please help. Any help will be deeply appreciated.</p>