-
Notifications
You must be signed in to change notification settings - Fork 18
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
Embedding videos using Opencast IDs #1174
Embedding videos using Opencast IDs #1174
Conversation
This pull request has conflicts ☹ |
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.
That feature makes sense to us!
Looking at the code: could you try to avoid the duplication of code in the GraphQL queries? You can use a fragment for that. Check routes/Video.tsx
and its eventFragment
for orientation. I think it should be straight forward? But if you encounter weird problems, feel free to reach out.
Previously, embedding videos was only possible using the Tobira ID. This change introduces the ability to embed videos with Opencast IDs using the same embedding format (`/~embed/!v/:<opencast-id>`). This enhancement improves flexibility and consistency in video embedding options.
e4804bb
to
9cda08f
Compare
I did not think about the fragment feature; I introduced a fragment and rebased the PR onto the current master. |
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.
Just a few comments, otherwise good to go
- Remove duplicate embed player code - Make useFragment typesafe
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.
Thanks!
Previously, embedding videos was only possible using the Tobira ID. This change introduces the ability to embed videos with Opencast IDs using the same embedding format (
/~embed/!v/:<opencast-id>
). This enhancement improves flexibility and consistency in video embedding options.