#47803 closed defect (bug) (worksforme)
Problem with Oembed and Youtube url with a "-" char
Reported by: | jpegtobbe | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Embeds | Keywords: | |
Focuses: | Cc: |
Description
Think i might have found a bug with oembed. When pasting a youtube link in the wysiwyg content editor the link isn't converted to a embed element. It seams its because of a "-" char in the youtube video id string: https://www.youtube.com/watch?v=6Y92-NFRXIc
Change History (4)
#1
in reply to:
↑ description
;
follow-up:
↓ 2
@
5 years ago
#2
in reply to:
↑ 1
@
5 years ago
Replying to wpza:
Replying to jpegtobbe:
Think i might have found a bug with oembed. When pasting a youtube link in the wysiwyg content editor the link isn't converted to a embed element. It seams its because of a "-" char in the youtube video id string: https://www.youtube.com/watch?v=6Y92-NFRXIc
This reply may possibly be irrelevant, however, doesn't the URL have to be an embed URL? Or else you get an access control CORS error of some sort.
Could you try https://www.youtube.com/embed/6Y92-NFRXIc instead?
Its the same with https://www.youtube.com/embed/6Y92-NFRXIc .. doesn't work.
#3
follow-up:
↓ 4
@
5 years ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
Thank you for the bug report, @jpegtobbe!
You can't embed this video, as embedding has been disabled by the video owner. You can see this for yourself by inserting the manual embed HTML into a post, and previewing it:
<iframe width="560" height="315" src="https://www.youtube.com/embed/6Y92-NFRXIc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
#4
in reply to:
↑ 3
@
5 years ago
Replying to pento:
Thank you for the bug report, @jpegtobbe!
You can't embed this video, as embedding has been disabled by the video owner. You can see this for yourself by inserting the manual embed HTML into a post, and previewing it:
<iframe width="560" height="315" src="https://www.youtube.com/embed/6Y92-NFRXIc" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Oh i see, you are right! Thanks. That explains the other videos on my dev site. They can be embedded on the page, but cannot be played. Strange that some disabled videos can be embedded and some cannot.
Replying to jpegtobbe:
This reply may possibly be irrelevant, however, doesn't the URL have to be an embed URL? Or else you get an access control CORS error of some sort.
Could you try https://www.youtube.com/embed/6Y92-NFRXIc instead?