# Embedded Youtube Videos: URL always showing "https://youtube.com/devicesupport"

**URL:** https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415
**Category:** Bug
**Created:** [5월 7, 2015, 1:13오전 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415 "2015-05-07T01:13:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [5월 7, 2015, 1:13오전 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/1 "2015-05-07T01:13:12Z")

</div>

As seen here:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/8/f8ed520f947f1a16d92f5b62480f5a857c75850e.png) 

There don’t seem to be any unusual steps needed to produce this bug, just posting a youtube video will do it. Affects videos posted before today as well (assuming a recent update is the cause).

Everything else related to the video (actual link to original, video replay) is unaffected.

Update - this appears to only applies to the image generated before the actual video loads. Clicking ‘play’ and loading the video switches out the /devicesupport URL for the title of the Youtube video.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 7, 2015, 1:30오전 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/2 "2015-05-07T01:30:53Z")

</div>

Weird @techapj can you have a look?

---

<div class="post-metadata">

### Author: ![AmiAthena](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amiathena/32/116030_2.png) [@AmiAthena](https://meta.discourse.org/u/AmiAthena)
#### Post date: [5월 7, 2015, 3:46오전 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/3 "2015-05-07T03:46:06Z")

</div>

I just noticed this, too.

---

<div class="post-metadata">

### Author: ![lidel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lidel/32/115991_2.png) [@lidel](https://meta.discourse.org/u/lidel)
#### Post date: [5월 7, 2015, 8:33오전 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/4 "2015-05-07T08:33:04Z")

</div>

The _devicesupport_ message is probably displayed due to deprecation of old API v2 (used by lazyYT while fetching title):

> In March 2014, we announced that the v2 API would be retired in April 20, 2015, and would be shut down soon thereafter. To help you with your migration, we launched the migration guide in September. Now, we’d like to provide you with more details on the plan to retire v2.

> – [http://youtube-eng.blogspot.com/2015/03/dude-are-you-still-on-youtube-api-v2.html](http://youtube-eng.blogspot.com/2015/03/dude-are-you-still-on-youtube-api-v2.html)

The fix is being prepared upstream:

[https://github.com/tylerpearson/lazyYT/issues/34](https://github.com/tylerpearson/lazyYT/issues/34)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 8, 2015, 8:15오전 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/5 "2015-05-08T08:15:16Z")

</div>

Any news on this @techapj

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [5월 8, 2015, 9:01오전 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/6 "2015-05-08T09:01:10Z")

</div>

YouTube Data API (v3) now requires Google Account and registering a new application to retrieve video info via v3 API 😞

Also:

> The YouTube Data API uses a quota to ensure that developers use the service as intended and do not create applications that unfairly reduce service quality or limit access for others. All API requests, including invalid requests, incur at least a one-point quota cost.

More info here: [YouTube Data API Overview &nbsp;|&nbsp; Google for Developers](https://developers.google.com/youtube/v3/getting-started)

Looking into it.

**EDIT** : I may have a fix, working on it.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [5월 8, 2015, 12:38오후 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/7 "2015-05-08T12:38:19Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/pull/3437](https://github.com/discourse/discourse/pull/3437)

and

[https://github.com/discourse/onebox/pull/298](https://github.com/discourse/onebox/pull/298)

* * *

The solution I came up with is to use YouTube oEmbed endpoint instead of v3 API.

This is the only way to fix this issue without depending on v3 API (that requires Google Account credentials).

Also, note that previously oneboxed YouTube videos will have video link instead of title, like

![](https://global.discourse-cdn.com/meta/original/3X/5/c/5cf66bda7ce943977e2954be889f1417deb3c8cc.png)

It’s because until now video title was fetched via API (at runtime), but now video title will be saved as HTML at the time of oneboxing.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 8, 2015, 6:10오후 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/8 "2015-05-08T18:10:58Z")

</div>

Let’s see

https://www.youtube.com/embed/FzRH3iTQPrk?feature=oembed&wmode=opaque

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [5월 8, 2015, 6:41오후 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/9 "2015-05-08T18:41:13Z")

</div>

Let’s hope it works this time 🙏

https://www.youtube.com/embed/fqVIsp-tQJA?feature=oembed&wmode=opaque

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 8, 2015, 8:09오후 UTC](https://meta.discourse.org/t/embedded-youtube-videos-url-always-showing-https-youtube-com-devicesupport/28415/10 "2015-05-08T20:09:56Z")

</div>


