-
Notifications
You must be signed in to change notification settings - Fork 3
hardcode allowing to embed videos from ovs #2987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,11 @@ export function convertToEmbedUrl(url: string): string | null { | |
| return id ? `https://player.vimeo.com/video/${id}` : null | ||
| } | ||
|
|
||
| // --- ODL VIDEO EMBED --- | ||
| if (hostname === "video.odl.mit.edu") { | ||
| return url | ||
|
Comment on lines
+48
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixModify the Prompt for AI Agent
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. People will paste the embed video, we may end up allowing m3u8 directly also subsequently, so let's leave this as is |
||
| } | ||
|
|
||
| // Not a supported video platform | ||
| return null | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might change / better organization this validation. See https://github.com/mitodl/mit-learn/pull/2968/changes#r2860467411 for discussion.
is an effort to support video embeddings directly in the article editor without iframes. We need this soon, though, and we need it with transcripts and cover images, so we are going to use the OVS video embed page for now.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I should mention that the thumbnail and captions aren't actually working at https://video.odl.mit.edu/videos/5444a783abb94d1fb773ff390d21a603/embed/ (The data exists, but isn't hooked up to videojs quite right), but Matt is working on fixing that and it seems like a much smaller lift than adding m3u8+Captions+cover images here.