Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitch Clips URL not embedding the video player on Discord correctly #7230

Open
ThatSameer opened this issue Oct 25, 2024 · 1 comment
Open
Assignees
Labels

Comments

@ThatSameer
Copy link

Description

Up until earlier this year, when twitch clip links were sent on Discord, every link had the video player embedded to play within Discord itself.

However, earlier this year, I began noticing most twitch clip links now do not embed the video player within Discord. Instead, it now takes you to the external (twitch) webpage to view it.

On rare occasions, the twitch clip link will embed the video within Discord. I can't find any reproducable pattern to make it work. It just sometimes work, sometimes doesn't but more often it doesn't. The same clip link can also sometimes produce the embed video player and most times not.

Checking the Discord embed debugger for the links, it gives the warning "Unable to extract video: Internal error". On the rare occasion where it does work, there is no warning.

Steps to Reproduce

Any Twitch clip link can be used to reproduce the issue. Here are a few random example links for testing:

Paste any of the above links into a Discord text channel and send. They should embed the video player within Discord.

Discord Embed Debugger:

Expected Behavior

In the Discord text channel, the link should embed with the video player to be able to play the video within Discord

Current Behavior

More than 50% of the time, the video player does not get embedded and only shows as link

Screenshots/Videos

Working example (rare occurrence):

Discord text channel

image

Discord Embed Debugger

{
  "embeds": [
    {
      "type": "video",
      "url": "https://clips.twitch.tv/EncouragingBoringTeaPJSugar-S5daNdF5uTK1QDzK",
      "title": "ohbunnies - nickyem",
      "description": "Watch ohbunnies's clip titled \"nickyem\"",
      "provider": {
        "name": "Twitch"
      },
      "thumbnail": {
        "url": "https://static-cdn.jtvnw.net/twitch-clips-thumbnails-prod/EncouragingBoringTeaPJSugar-S5daNdF5uTK1QDzK/1e3fe380-ab11-40e7-87f6-dd24bebc84e1/preview.jpg",
        "proxy_url": "https://images-ext-1.discordapp.net/external/Ci9fKVX5qwXuid5NzVtmr1OZlypxnJ5xA_78pdqNPaA/https/static-cdn.jtvnw.net/twitch-clips-thumbnails-prod/EncouragingBoringTeaPJSugar-S5daNdF5uTK1QDzK/1e3fe380-ab11-40e7-87f6-dd24bebc84e1/preview.jpg",
        "width": 1664,
        "height": 936,
        "placeholder": "8wcOBIBoh3eQeHhReIKVggBcCQ==",
        "placeholder_version": 1
      },
      "video": {
        "url": "https://clips.twitch.tv/embed?clip=EncouragingBoringTeaPJSugar-S5daNdF5uTK1QDzK&parent=meta.tag",
        "width": 620,
        "height": 378
      }
    }
  ]
}

Broken example:

Discord text channel

image

Discord Embed Debugger

image
{
  "embeds": [
    {
      "type": "link",
      "url": "https://clips.twitch.tv/LaconicChillyOkapiHeyGuys-k0cUv6XTjI5jm2Ch",
      "title": "Emiru - Jason Emiru cosplay?!?",
      "description": "Watch Emiru's clip titled \"Jason Emiru cosplay?!?\"",
      "provider": {
        "name": "Twitch"
      },
      "thumbnail": {
        "url": "https://clips-media-assets2.twitch.tv/xDrgxJNHFL-l04yOY5tgoQ/AT-cm%7CxDrgxJNHFL-l04yOY5tgoQ-social-preview.jpg",
        "proxy_url": "https://images-ext-1.discordapp.net/external/JSy6-B7Ew-1npvG7QzTxvnah317dqBurRW8PxK69x30/https/clips-media-assets2.twitch.tv/xDrgxJNHFL-l04yOY5tgoQ/AT-cm%257CxDrgxJNHFL-l04yOY5tgoQ-social-preview.jpg",
        "width": 1920,
        "height": 1080,
        "placeholder": "2QcGBIKDu2qfdndzd1W+b/FrRQ==",
        "placeholder_version": 1
      }
    }
  ]
}

Client and System Information

Currently on: stable 337154 (65fd300) Host 0.0.322 arm64 Build Override: N/A macOS 14 (23.3.0)

However, same issue no matter what device I send the Twitch clip links on.

@ThatSameer ThatSameer added the bug label Oct 25, 2024
@jkcailteux jkcailteux self-assigned this Oct 29, 2024
@jkcailteux
Copy link
Contributor

Have a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants