共有リンクからInstagramビデオを再生しようとしていますが、次のコードを使用しましたがストリーミングしません。 Facebook上のグラフAPIのようなソースビデオURLを取得するAPIはどれですか?AVPlayerを使用してInstagramビデオを再生する方法
URLはこれがプレイヤーを開きますが、ビデオを再生しません すべてのヘルプは高く評価され、このhttps://instagram.com/p/BOzamYMA-vb/
let videoURL = NSURL(string: "https://instagram.com/p/BOzamYMA-vb/")
let player = AVPlayer(url: videoURL! as URL)
let playerViewController = AVPlayerViewController()
playerViewController.player = player
self.present(playerViewController, animated: true) {
playerViewController.player!.play()
}
のようなものです。
は動画URLではありません、1つは、ウェブページのURLで、Webページのデータから動画のURLを解析しようと – NANNAV
はい、まさにそれはInstagramのリンクとして完璧に見える –