bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 157 forks source link

What is _stretchPaused used for? #138

Closed germain-gg closed 5 years ago

germain-gg commented 5 years ago

Hi,

Looking through the code I stumbled upon _stretchPaused. I could not find any documentation for it nor any reference to it being used in the project.

Media nodes have a setter to change its value.

Could anyone help me understand what this does? I'd be happy to document it in the codebase or remove it if found not relevant.

Thank you, Germain

PTaylour commented 5 years ago

I haven't used it.

This looks like the most interesting bit of the code:

https://github.com/bbc/VideoContext/blob/c2a41abaf08f1ba9f8e5a84ad13f4437274b05e9/src/SourceNodes/sourcenode.js#L400-L405

So you can tell a node to pause and simultaneously update the stop time so that when the node is resumed it continues to the original media stopping point.

Is that what it looked like to you?

germain-gg commented 5 years ago

Yeah I guess so. I am a bit unsure what the use case is. I'd be keen to hear them