Closed Bug 1027273 Opened 11 years ago Closed 11 years ago

Create video embed markup/syntax for Resources

Categories

(Webmaker Graveyard :: webmaker.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: matt, Assigned: kat)

References

Details

(Whiteboard: [resources][2014Q2][july11])

Attachments

(4 files, 1 obsolete file)

* Let's start by adding videos to the Privacy page. Then we can use that to make sure we have a process that works for adding videos / Popcorn to the other pages as well * Kat: the most streamlined way to do that is for you to edit the JSON and submit a pull request here: https://github.com/mozilla/webmaker.org/blob/master/public/data/content.json * Let's make sure we understand from Aki / Kate the right way to edit the JSON for this
* Kat: in addition to what you may already have, I have some embedded video to use for this particular page here, which I originally created for this very purpose: http://openmatt.org/how-to-teach-online-privacy/
Assignee: nobody → kat
No longer depends on: 1018274
@ Aki / Kate: is this the correct approach to use for including an embedded iframe in the JSON blob? { "title": "What's a web browser?", "links": [ "<strong>It's one of the most important pieces of software on your computer</strong>. But many people don't even know what it is! <a href='https://openmatt.makes.org/thimble/MTYwOTEwNTQwOA==/learn-about-your-web-browser'>This page quickly explains what browsers are and why they matter.</a>" "<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/BrXPcaRlBqo?rel=0" frameborder="0" allowfullscreen></iframe> ] },
Flags: needinfo?(aki)
* I just noticed errors already. Trying again: { "title": "What's a web browser?", "links": [ "<strong>It's one of the most important pieces of software on your computer</strong>. But many people don't even know what it is! <a href='https://openmatt.makes.org/thimble/MTYwOTEwNTQwOA==/learn-about-your-web-browser'>This page quickly explains what browsers are and why they matter.</a>" "<iframe width='560' height='315' src='//www.youtube-nocookie.com/embed/BrXPcaRlBqo?rel=0' frameborder='0' allowfullscreen></iframe>" ] },
Change the src to be https. The width and height attributes will be problematic for some screen sizes. ideall some styles should be written to support this
so is this correct form, kate? just want to be 100% sure before i go in and start making edits to the resource pages. "<iframe width='560' height='315' https='//www.youtube-nocookie.com/embed/BrXPcaRlBqo?rel=0' frameborder='0' allowfullscreen></iframe>" (should we leave width and height out, so you can restyle/make responsive?)
Flags: needinfo?(kate)
* Thanks Kate. As Kate points out, the ideal way to do this would be through the template itself. * e.g., "youtube_embed" or "popcorn_embed" * we may need to punt this to next train... thinking on it w. Kat now.
yeah, someone needs to at least do some styles before this will work, so hold off on adding
Flags: needinfo?(kate)
I have thoughts on this! May open a PoC PR shortly.
Flags: needinfo?(aki)
Here's a thought on making those videos responsive, will attach screen-shots as well
Attachment #8442430 - Flags: feedback?(kate)
Attached image a2fx3.png
Attachment #8442444 - Flags: feedback?(matt)
Attached image kyw2u.png (obsolete) —
Attachment #8442448 - Flags: feedback?(matt)
Amaze! thanks Aki * Kate work for you? * Aki, if Kate R+'s this, can you let us know the right JSON syntax to use?
Attachment #8442448 - Flags: feedback?(kate)
Matt: This is still a proof of concept, I think we'd have to think of a way to write a script for you to maybe just enter the video id to generate the tags. Definitely something for the next train, but just happened to be on my mind because it was something I had *just* done on a personal project a few days ago.
Status: NEW → ASSIGNED
Comment on attachment 8442430 [details] [review] https://github.com/mozilla/webmaker.org/pull/822 Excellent approach, I think we should template-ize it though
Attachment #8442430 - Flags: feedback?(kate) → feedback-
Comment on attachment 8442448 [details] kyw2u.png looks good, see comments in code review
Attachment #8442448 - Flags: feedback?(kate) → feedback+
Attachment #8442448 - Flags: feedback?(matt) → feedback+
* Not sure where this stands, now that Aki's on PTO
Assignee: kat → nobody
* Kate: based on what you've seen so far in this initial test run, should Kat continue following the same approach for adding videos to the other pages?
Flags: needinfo?(kate)
Personally I think this needs more work before we can continue on this. If it's critical we land it, we can do a work around
Flags: needinfo?(kate)
* Ok. Moving to [july11]. And will file ticket to get this added to the template.
Whiteboard: [resources][2014Q2][June27] → [resources][2014Q2][july11]
Blocks: 1030283
Attachment #8442444 - Flags: feedback?(matt) → feedback+
Just a note that I'm happy to dig into the JSON and update these sections when the template is finalised.
Comment on attachment 8442430 [details] [review] https://github.com/mozilla/webmaker.org/pull/822 Updated based on Kate's inspiring github comments, possibly ready for a full json update, followed by prime time?
Attachment #8442430 - Flags: feedback- → feedback?(kate)
* Nice one, Aki. Thanks!
@Aki mind pinging me when this is ready to go so I can add syntax into the pad?
Flags: needinfo?(aki)
Kat: will-do. Still in exploratory mode, nailing down what that syntax will be.
Flags: needinfo?(aki)
Attached image yl59r.png
Attachment #8442448 - Attachment is obsolete: true
Attached file Sample Sub-section
This is what the json would look like in one timeline-type section within a discover, make, or teach section.
Blocks: 1031283
Comment on attachment 8442430 [details] [review] https://github.com/mozilla/webmaker.org/pull/822 A couple of small suggestions but I think this looks good to go, and monumentally more functional than what we have currently. Yay!
Attachment #8442430 - Flags: feedback?(kate) → feedback+
Also let's move that example markup somewhere other than navigation though :P
@codekat it's all you if you're ready to make some changes—here's your sample code: https://github.com/gesa/webmaker.org/blob/1027273/video-embed/public/data/content.json#L2-L104
Flags: needinfo?(kat)
Great, blob is perfect - thanks Aki. Have added to my own syntax notes for JSON, and will embed the first videos now (in a separate bug for clarity's sake) Two more additions to your markup re: our chat about this on IRC... Please add markup for: 1) Embedded TED talks (like http://www.ted.com/talks/gary_kovacs_tracking_the_trackers ) 2) Embedded Popcorn videos (like https://openmatt.makes.org/popcorn/22j3 ) Thank you!
Flags: needinfo?(kat) → needinfo?(aki)
Summary: Add embedded videos to Privacy resources page → Create video embed markup/syntax for Resources
Kat could you actually file separate bugs for those two embeds? They're definitely things I can do, but I'd like to have the actual but to track them.
Flags: needinfo?(aki)
Assignee: nobody → kat
Hey Aki, created bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=1032389 Is for both, hope that's fine. Closing as resolved for now so we can move to those last changes :)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Commits pushed to master at https://github.com/mozilla/webmaker.org https://github.com/mozilla/webmaker.org/commit/bb29f4c7a0df3aab70bf1eb93e9c03e5d4ff8a76 Fixes Bug 1027273 - Add embedded videos to Privacy resources page Proof of Concept https://github.com/mozilla/webmaker.org/commit/31f9ebe9979f4bda6c31a41e39fe476435b2331e Merge pull request #822 from gesa/1027273/video-embed Bug 1027273 - Add embedded videos to Privacy resources page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: