title: iOS Stream video from Google drive Swift
body: <p>I'm building an iOS app that Stream's video from Google drive the videos link looks like this</p>
  
  <p><a href="https://drive.google.com/file/d/0B2Kri7-TaAFJSlJ4UTJuSElGamM/preview" rel="nofollow noreferrer">https://drive.google.com/file/d/0B2Kri7-TaAFJSlJ4UTJuSElGamM/preview</a> </p>
  
  <p>The only way to get the Stream Link from the URL above is by Decoding the webView HTML </p>
  
  <h3>Code:</h3>
  
  <pre><code>let myURLString = "https://drive.google.com/file/d/0B2Kri7-TaAFJSlJ4UTJuSElGamM/preview"
  
      if let myURL = NSURL(string: myURLString) {
  
          do {
              let myHTMLString = try String(contentsOfURL: myURL, encoding: NSUTF8StringEncoding)
              print("HTML : \(myHTMLString)")
  
          } catch {
              print("Error : \(error)")
          }
      } else {
          print("Error: \(myURLString) doesn't  URL")
      }
  </code></pre>
  
  <p>after doing that i get the HTML for the webView </p>
  
  <p><strong>The problem is :</strong></p>
  
  <p>What I'm looking for in the HTML is this "<strong>fmt_stream_map</strong>" this contain is all the Streaming Links that I need too Stream the video but I don't know how to access it and get the Steam Links from it.</p>
  
  <p><strong>PS:</strong> I'm Working with an Android Developer and he told me he used <a href="https://stackoverflow.com/a/33625394/5605581">this</a> method to solve the issue but he couldn't explain it to me and I don't know java</p>