1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Embed Twitch

Discussion in 'XenForo Questions and Support' started by Timelord_, Aug 14, 2013.

  1. Timelord_

    Timelord_ Member

    Anyone know if there is an easy way to embed a twitch.tv stream into a post/forum?
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    I believe Jaxel has an add-on that can do this. If not, you can try with a media code (not sure if that'd work).
  3. Timelord_

    Timelord_ Member

    For some reason, I have a tough time wrapping my head around the media codes. I will check Jaxel to see if he has an addon.
  4. TeflonDon

    TeflonDon Well-Known Member

    Same here, I was able to create my own easily on vBulletin with the AME plugin but it seems more complicated here. :(

    Hopefully there will be some sort of guide in the future.
  5. mistypants

    mistypants Well-Known Member

  6. Martok

    Martok Well-Known Member

    I'm raising this one about embedding Twitch.tv again.

    I've taken a look at the add-on above which works great for live streaming. Unfortunately it doesn't work for videos on the site.

    I've taken a look the BBCode Media Site it created and at the Matched URLs and this is what the expression is:

    Live streams use a URL of the form http://www.twitch.tv/username
    Videos use a URL of the form http://www.twitch.tv/username/c/digits

    What the Matched URLs code seems to do is take both of these URLs and strip them down to just username which then gets used in the embedded HTML to create the BBCode. So basically it works correctly for the live stream but not the video.

    What I want to do is modify the expression so that it will work only for URLs of the form http://www.twitch.tv/username
    Then I want to create another BBCode Media Site which will work for URLs of the form http://www.twitch.tv/username/c/digits

    Any help from @Jake Bunce or any other regex gurus would be greatly appreciated. :)
  7. Martok

    Martok Well-Known Member

Share This Page