You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build an application for my university discipline which simulates a multi-cam environment, like a spectator. The script will have access to some videos and I would like to change between them and keeping it synchronized (same timestamp).
Is it possible to do this with NCLua? I was trying to get a current video timestamp to set to another, but couldn't find any information about it.
Hello @FerroEduardo,
In an NCLua script you cannot directly manipulate the content of a media, you only have access to its anchors and properties. You can change property values, as these are related to the way the media is displayed and not the content itself.
In the newest version of the NCL language, from the ABNT NBR 15606-2:2023 Standard, there is a currentTime property of continuous media (audio and/or video) that you could use to do what you suggested. However, our current reference implementation does not yet include this functionality.
With the current version of Ginga implemented, a simple solution for your application to keep multiple videos synchronized is to start them together, but controlling which video is selected with the properties visible and/or soundLevel.
Hello @FerroEduardo,
In an NCLua script you cannot directly manipulate the content of a media, you only have access to its anchors and properties. You can change property values, as these are related to the way the media is displayed and not the content itself.
In the newest version of the NCL language, from the ABNT NBR 15606-2:2023 Standard, there is a currentTime property of continuous media (audio and/or video) that you could use to do what you suggested. However, our current reference implementation does not yet include this functionality.
With the current version of Ginga implemented, a simple solution for your application to keep multiple videos synchronized is to start them together, but controlling which video is selected with the properties visible and/or soundLevel.
Activity
danielsm commentedon Jul 6, 2023
Hello @FerroEduardo,
In an NCLua script you cannot directly manipulate the content of a media, you only have access to its anchors and properties. You can change property values, as these are related to the way the media is displayed and not the content itself.
In the newest version of the NCL language, from the ABNT NBR 15606-2:2023 Standard, there is a currentTime property of continuous media (audio and/or video) that you could use to do what you suggested. However, our current reference implementation does not yet include this functionality.
With the current version of Ginga implemented, a simple solution for your application to keep multiple videos synchronized is to start them together, but controlling which video is selected with the properties visible and/or soundLevel.
FerroEduardo commentedon Jul 6, 2023
Ok, thanks for the help! :)