omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Youtube to AVPlayer

    Pythonista
    2
    2
    1374
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robertiii
      robertiii last edited by

      I have used the youtube_dl to get the url of a Youtube video.

      info = ydl.extract_info(url, download=False)
      

      This returns the following url:

      https://r4---sn-vgqs7nlz.googlevideo.com/videoplayback?mt=1505334594&ratebypass=yes&signature=596BCBA425C6E8C20A80D257CE4990A62569894C.A22CF88489DA562D5FCBF19911DDE06331309870&itag=22&requiressl=yes&lmt=1500789596718526&expire=1505356296&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&initcwndbps=1535000&key=yt6&id=o-APiaBd-L8gpN0zAzCgbcQUfWmpHNLAtSd7cCdRaht18S&mn=sn-vgqs7nlz&ipbits=0&mm=31&ms=au&ei=qJW5WZ-eJs3UDeG5kbAH&mv=m&dur=259.854&source=youtube&pl=15&mime=video%2Fmp4&ip=68.38.103.146

      Now, how do I get this to play in an Objc avplayer?

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        why not just play in a webview?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors