mitodl / odl-video-service

building blocks for a basic video service for ODL
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

map TechTV routes to OVS routes #418

Closed pdpinch closed 6 years ago

pdpinch commented 6 years ago

This needs some more detailed description, probably with some interim steps, e.g.

questions

emmello commented 6 years ago

Videos on TechTV which are Protected will have a 1 in the database collection in the Protected column of the database.

example: http://techtv.mit.edu/collections/6036spring2017 This collection has "Protected, remove protection" checked off, designating this as a protected collection. Access to this list is secured through Moira / Touchstone access.

Videos on TechTV can be designated as Private (database field Private will have a 1, and the Private_token field will have an AWS Cloudfront hash link. For instance, this video is on TechTV:

http://techtv.mit.edu/videos/5014-intuitively-obvious-clips

Options in the righthand margin allow the video owner to make the video private, as well as to enable embedding and downloading.
image

When private is selected, a link appears at the top of the video page that the owner can copy and send out to others. This video is only secured through obscurity.

The private link for this video would be http://techtv.mit.edu/videos/b552f7de1d65f52295e4241fe9d72834645d2297/private

If embed is on, a user would have the ability to choose embed size (large medium small, responsive or custom) and this information is build into the iFrame code:

Embed code for this video:

image

pdpinch commented 6 years ago

It looks like the slug is an option part of the path, i.e. http://techtv.mit.edu/videos/5014-intuitively-obvious-clips is the same as http://techtv.mit.edu/videos/5014

emmello commented 6 years ago

Yeah, the most important part is the number there - if someone renames the file, they can share that link, which is probably what happened there.

mbertrand commented 6 years ago

@blarghmatey I plan to have the TechTV video URL's working in OVS as is, with just the domain replaced, for example:

http://techtv.mit.edu/videos/358-measurements-demo-lecture-1 -> http://video.odl.mit.edu/videos/358-measurements-demo-lecture-1

http://techtv.mit.edu/embeds/358/ -> http://video.odl.mit.edu/embeds/358/

http://techtv.mit.edu/videos//private --> http://video.odl.mit.edu/videos//private

mbertrand commented 6 years ago

@pdpinch question about # 2 in the description (map public TechTV embed URLs to corresponding YouTube URLs): do you want the public videos to be played from Youtube via VideoJS-Youtube plugin at an OVS URL? The front-end code for that hasn't been finalized yet.

pdpinch commented 6 years ago

I'm turning this into an epic, and I'll modify PR #434 so that it's only fixes the private part.

mbertrand commented 6 years ago

@pdpinch @emmello I think the checkboxes could use some tweaking:

pdpinch commented 6 years ago

Makes sense, but since this is an epic now, I copied these checkboxes to #436

pdpinch commented 6 years ago

This is done, although we overlooked download links (#639)