Closed
Bug 1027273
Opened 11 years ago
Closed 11 years ago
Create video embed markup/syntax for Resources
Categories
(Webmaker Graveyard :: webmaker.org, defect)
Webmaker Graveyard
webmaker.org
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
Reporter | ||
Comment 1•11 years ago
|
||
* 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/
Reporter | ||
Comment 2•11 years ago
|
||
@ 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>
]
},
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(aki)
Reporter | ||
Comment 3•11 years ago
|
||
* 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>"
]
},
Comment 4•11 years ago
|
||
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
Assignee | ||
Comment 5•11 years ago
|
||
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)
Reporter | ||
Comment 6•11 years ago
|
||
* 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.
Comment 7•11 years ago
|
||
yeah, someone needs to at least do some styles before this will work, so hold off on adding
Flags: needinfo?(kate)
Comment 9•11 years ago
|
||
Here's a thought on making those videos responsive, will attach screen-shots as well
Attachment #8442430 -
Flags: feedback?(kate)
Comment 10•11 years ago
|
||
Attachment #8442444 -
Flags: feedback?(matt)
Comment 11•11 years ago
|
||
Attachment #8442448 -
Flags: feedback?(matt)
Reporter | ||
Comment 12•11 years ago
|
||
Amaze! thanks Aki
* Kate work for you?
* Aki, if Kate R+'s this, can you let us know the right JSON syntax to use?
Reporter | ||
Updated•11 years ago
|
Attachment #8442448 -
Flags: feedback?(kate)
Comment 13•11 years ago
|
||
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.
Reporter | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Comment 14•11 years ago
|
||
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 15•11 years ago
|
||
Comment on attachment 8442448 [details]
kyw2u.png
looks good, see comments in code review
Attachment #8442448 -
Flags: feedback?(kate) → feedback+
Reporter | ||
Updated•11 years ago
|
Attachment #8442448 -
Flags: feedback?(matt) → feedback+
Reporter | ||
Comment 16•11 years ago
|
||
* Not sure where this stands, now that Aki's on PTO
Assignee: kat → nobody
Reporter | ||
Comment 17•11 years ago
|
||
* 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?
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(kate)
Comment 18•11 years ago
|
||
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)
Reporter | ||
Comment 19•11 years ago
|
||
* Ok. Moving to [july11]. And will file ticket to get this added to the template.
Whiteboard: [resources][2014Q2][June27] → [resources][2014Q2][july11]
Reporter | ||
Updated•11 years ago
|
Attachment #8442444 -
Flags: feedback?(matt) → feedback+
Assignee | ||
Comment 20•11 years ago
|
||
Just a note that I'm happy to dig into the JSON and update these sections when the template is finalised.
Comment 21•11 years ago
|
||
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)
Reporter | ||
Comment 22•11 years ago
|
||
* Nice one, Aki. Thanks!
Assignee | ||
Comment 23•11 years ago
|
||
@Aki mind pinging me when this is ready to go so I can add syntax into the pad?
Flags: needinfo?(aki)
Comment 24•11 years ago
|
||
Kat: will-do. Still in exploratory mode, nailing down what that syntax will be.
Flags: needinfo?(aki)
Comment 25•11 years ago
|
||
Attachment #8442448 -
Attachment is obsolete: true
Comment 26•11 years ago
|
||
This is what the json would look like in one timeline-type section within a discover, make, or teach section.
Comment 27•11 years ago
|
||
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+
Comment 28•11 years ago
|
||
Also let's move that example markup somewhere other than navigation though :P
Comment 29•11 years ago
|
||
@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)
Assignee | ||
Comment 30•11 years ago
|
||
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)
Assignee | ||
Updated•11 years ago
|
Summary: Add embedded videos to Privacy resources page → Create video embed markup/syntax for Resources
Comment 31•11 years ago
|
||
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)
Updated•11 years ago
|
Assignee: nobody → kat
Assignee | ||
Comment 32•11 years ago
|
||
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
Comment 33•11 years ago
|
||
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.
Description
•