Skip to content

Media/video timestamp doubt #180

Closed
Closed

Description

@FerroEduardo

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.

Activity

  1. danielsm commented on Jul 6, 2023

    @danielsm
    Collaborator

    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.

  2. FerroEduardo commented on Jul 6, 2023

    @FerroEduardo
    Author

    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.

    Ok, thanks for the help! :)

  3. transferred this issue fromTeleMidia/ncluaon Jul 10, 2023
  4. locked and limited conversation to collaborators on Jul 10, 2023
  5. converted this issue into a discussion #181 on Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions