question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Video 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dr-offigcommented, Apr 13, 2019

Thanks Pete, that’s great! Certainly covers my use-case. API for custom nodes is an awesome development.

0reactions
PTaylourcommented, Apr 8, 2019

interactive video stuff rather than compositional.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found