Media Fragments
See original GitHub issueVideo context doesn’t seem to play well with Media Fragments. I am hoping to loop different subsections of a video. But, for example, in the code playground the following doesn’t behave as expected
var videoNode1 = vc.video("../../assets/introductions-rant.mp4#t=1,5", 0, 2, { loop: true });
var videoNode2 = vc.video("../../assets/introductions-rant.mp4#t=4,8", 0, 2, { loop: true });
var videoNode3 = vc.video("../../assets/introductions-rant.mp4#t=9,15", 0, 2, { loop: true });
Also tried
var videoNode1 = vc.video("../../assets/introductions-rant.mp4#t=1,5", 1, 2, { loop: true });
var videoNode2 = vc.video("../../assets/introductions-rant.mp4#t=4,8", 4, 2, { loop: true });
var videoNode3 = vc.video("../../assets/introductions-rant.mp4#t=9,15", 9, 2, { loop: true });
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Media Fragments URI 1.0 (basic) - W3C
Media fragment URI: a URI addressing subparts of a media resource - that could be through URI queries or URI fragments. 2.2 Media...
Read more >Media Fragments | Can I use... Support tables for ... - CanIUse
Allows only part of a resource to be shown, based on the fragment identifier in the URL. Currently support is primarily limited to...
Read more >Media Fragments URI - Spatial Dimension - CSS-Tricks
The Media Fragments URI is syntax with which it is possible to only select a certain portion of an image. It looks like...
Read more >Day 61: Supporting Media Fragment URIs for Video and Audio ...
The simple stuff is based off of YouTube's fragment syntax for linking to specific times of a video. In the Media Fragments spec,...
Read more >media fragment - IndieWeb
media fragment is a way of linking to a part of a longer media file. There is a W3C spec for this at...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks Pete, that’s great! Certainly covers my use-case. API for custom nodes is an awesome development.
Thats quite a common use for it. I’d like to make videocontext more user friendly for interactive cases.
How to loop video now
We’ve just released an API for custom nodes. So, for now, you could do a basic implementation in your own node.
https://codesandbox.io/embed/l7wz9qw3kq
If this works ^ for you I’ll do the parsing properly and merge it into the actual
VideoNode
.