Closed Bug 959676 Opened 11 years ago Closed 11 years ago

Properly parse and support embed style URLs in the app

Categories

(Webmaker Graveyard :: Popcorn Maker, enhancement)

x86
macOS
enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: humph, Assigned: thecount)

Details

Attachments

(1 file)

This is a bit of an edge case, but it would be nice if PM knew how to deal with embed URLs (i.e., what you'd put in <iframe src=...>. NOTE: I'm not suggesting we switch to expecting this type of URL; only that we do the right thing if we're given one. * YouTube ttps://www.youtube.com/embed/CLg2JbELs9o?feature=youtube_gdata&rel=0&modestbranding=1&iv_load_policy=3&showinfo=0&origin=https%3A%2F%2Fpopcorn.webmaker.org&controls=0&wmode=opaque&enablejsapi=1 Here we need the video ID, CLg2JbELs9o * Vimeo https://player.vimeo.com/video/46353153?api=1&player_id=1389718102887&title=0&byline=0&portrait=0&butteruid=1389717725429 Here we need the id video/46353153 * SoundCloud https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/11921587&show_artwork=false&buying=false&liking=false&sharing=false&download=false&show_comments=false&show_user=false&single_active=false We need the tracks/11921587 bit out of the query string here
Assignee: nobody → scott
Attachment #8359922 - Flags: review?(david.humphrey)
Comment on attachment 8359922 [details] [review] https://github.com/mozilla/popcorn.webmaker.org/pull/411 I think Matt is a better candidate reviewer for this.
Attachment #8359922 - Flags: review?(david.humphrey) → review?(schranz.m)
Comment on attachment 8359922 [details] [review] https://github.com/mozilla/popcorn.webmaker.org/pull/411 Minor lint fails. Also, if I use that example Vimeo URL, copy what it adds to the source and try to add that url as media it doesn't detect it as the same media already added and will let me add it again. YouTube/SoundCloud are fine in these regards.
Attachment #8359922 - Flags: review?(schranz.m) → review-
Attachment #8359922 - Flags: review?(schranz.m) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(scott)
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Flags: needinfo?(scott)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: