Status

Snippets
Campaign
RESOLVED WONTFIX
6 years ago
5 years ago

People

(Reporter: Winston Bowden, Assigned: mkelly)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
Hi there - 

We'd like to use the same set up we used for the Add-on video... have the video play on about:home.

I was given the below for the video content.  Is this what we need?

----

<script src="http://s3.amazonaws.com/s3.www.universalsubtitles.org/embed.js">
({
  "video_url":
"http://videos.mozilla.org/serv/marketing/Firefox/Firefox%20Tabs_1.webm",
  video_config: {
    poster: "/img/covehead/video/poster-newtab.jpg",
    click_to_play: true
  }
})
</script>

The "poster:" image URL may need to be an absolute, rather than relative, URL
depending on where the script is used.

Also note that this only serves the WebM HTML5 version of the video/player, not
the Flash player fall-back for IE or other formats for iOS/Safari, etc.

The universal subtitles service seems to handle the locale detection.

----

Copy for the snippet:

Firefox has new features to make getting to your next task even faster! Check out the video to learn more. [Video]

What's a reasonable time frame for getting this launched?
(Reporter)

Updated

6 years ago
Blocks: 749828
(Assignee)

Comment 1

6 years ago
Assigning to me for dev.

The only thing we need besides the code above is the full link to the poster image, as I can't figure out what domain it's from (http://mozilla.org/img/covehead/video/poster-newtab.jpg doesn't exist).

Time frame for dev completion is by Wednesday at the latest. This does assume that unverisal subtitles work as mentioned without any issue; I'll update this bug if it appears that it will take longer.
Assignee: chrismore.bugzilla → mkelly
(Assignee)

Comment 2

6 years ago
So I've run into a few technical issues with using Universal Subtitles, and more importantly, I've run into what may be an issue with the license on some of the code we have to use for them. I'm going to start investigating these issues tomorrow, but in the meantime I'm extending the timeframe to Friday. Sorry. :(
(Reporter)

Comment 3

6 years ago
No prob.  Thanks for the update.
(Reporter)

Comment 4

6 years ago
fyi - the link for the poster image will be http://www.mozilla.org/img/covehead/video/poster-newtab.jpg.  But it won't work until changes are pushed to production later today.
(Assignee)

Updated

6 years ago
Depends on: 762045
(Assignee)

Comment 5

6 years ago
So I've found/remembered that including an external Javascript file (as Universal Subtitles requires) isn't normally possible on about:home. There are two ways of getting around this:

1. Use AJAX to retrieve the code and eval it, or
2. Include the Universal Subtitles code within the snippet itself.

#1 is possibly a security risk, and requires a change to the Universal Subtitles site to allow us to pull their code via AJAX. I've reached out to them with this idea, but they have yet to give me any info on if they'd be willing to make the change or how long it would take.

#2 might work better, but runs into licensing issues, as the Javascript is licensed under the AGPL, which has provisions about software it is connected to. I've opened bug 762045 to get guidance on how to proceed here.

Winston: Is there are hard release date for this snippet, or is the schedule flexible? Depending on how soon we want this video out, we could instead opt for embedding subtitles directly into the video file and serving different videos to different locales, or we could just go without subtitles if that's appropriate.
(Reporter)

Comment 6

6 years ago
Adding LM.  Laura - what's your feeling on timing/MKs comments. In the interim, we can do a basic snippet that links to the video.
(In reply to Michael Kelly [:mkelly] from comment #5)
> 
> Winston: Is there are hard release date for this snippet, or is the schedule
> flexible? Depending on how soon we want this video out, we could instead opt
> for embedding subtitles directly into the video file and serving different
> videos to different locales, or we could just go without subtitles if that's
> appropriate.

The reason we want to get the snippet out there soon is because we want to be able to educate our users on the change in UI (so basically, the sooner the better).  I mean, the ideal is an embedded video, so if the link doesn't work, then maybe we do the embedded videos directly into the video file.  What would you need for us to do that? Do we have to add the subtitles in manually and re-render the video per locale and then give you those files?

Having said that, I'm wondering if maybe it's better to just link to the video from the snippet to the Universal Subtitle site and the user selects their language from there?

http://www.universalsubtitles.org/en/videos/E8uQz89NVFi4/info/

Update each link for each locale?
(Assignee)

Comment 8

6 years ago
(In reply to Laura Mesa [:lmesa] [:lvmesa] from comment #7)
> What would you need for us to do that? Do we have to add the subtitles in
> manually and re-render the video per locale and then give you those files?

Yes, if we went without Universal Subtitles that's what we'd need.

> Having said that, I'm wondering if maybe it's better to just link to the
> video from the snippet to the Universal Subtitle site and the user selects
> their language from there?
> 
> http://www.universalsubtitles.org/en/videos/E8uQz89NVFi4/info/
> 
> Update each link for each locale?

IMO this option sounds best for now because it gets the info out fastest. We can replace the snippets later with either the pre-rendered subtitles or the Universal Subtitles version.
(In reply to Michael Kelly [:mkelly] from comment #8)

> 
> IMO this option sounds best for now because it gets the info out fastest. We
> can replace the snippets later with either the pre-rendered subtitles or the
> Universal Subtitles version.

Ok cool. I did just tried updating the locale in the URL to es and it didnt take me to the spanish version of the subtitled video. Does it work for you?
(Assignee)

Comment 10

6 years ago
(In reply to Laura Mesa [:lmesa] [:lvmesa] from comment #9)
> Ok cool. I did just tried updating the locale in the URL to es and it didnt
> take me to the spanish version of the subtitled video. Does it work for you?

Nope, it doesn't work for me either. I even changed the locale for my browser and, while the site itself was in Spanish, the video wasn't.

I'll see if I can get help from our contact with universal subtitles. Not sure how long that will take, though. :\
(Assignee)

Comment 11

6 years ago
(In reply to Laura Mesa [:lmesa] [:lvmesa] from comment #9)
> Ok cool. I did just tried updating the locale in the URL to es and it didnt
> take me to the spanish version of the subtitled video. Does it work for you?

So they do have pages for each locale, but they aren't very good for viewing videos:

http://www.universalsubtitles.org/en/videos/E8uQz89NVFi4/be/331313/

A suggested solution was to embed the videos on one of our own pages and link to that, which could work depending on mozilla.org's release schedule and how we want the landing page to appear. That would probably require l10n and more copy and so on for the page, though. :(

So I'm now a fan of adding in the subtitles ourselves. It would avoid the licensing issues as well as the issues above.
Or, we could link them back to the WN page?  http://www.mozilla.org/en-US/firefox/13.0/whatsnew/

Localization has been done and we can customize each link per language. 

That seems like the best bet to me!
(Assignee)

Comment 13

6 years ago
Magical!

Winston: Let me know if you need any help with the basic snippet, I'll keep chasing down this interactive version for the time being.
(Reporter)

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.