Giter Site home page Giter Site logo

Send timed metadata to controller about media HOT 2 OPEN

thetwom avatar thetwom commented on June 20, 2024
Send timed metadata to controller

from media.

Comments (2)

icbaker avatar icbaker commented on June 20, 2024

Arbitrary Metadata.Entry objects are not sent from MediaSession to MediaController, so what you're observing is expected.

@marcbaechinger might have thoughts on the best way to send time-accurate info from a session to a controller.

@thetwom Can you give some info about what these timed events that you want to send represent? It might help guide us towards a solution.

from media.

thetwom avatar thetwom commented on June 20, 2024

Thanks a lot for taking the time and answering my question. Good to know, that things are working as expected (even though it would have been nice for me if it worked :-).

I guess my case is rather exotic, so I don't know if I want to take your time for finding a solution. Still, I will quickly give a description:

My player is not playing regular media, but it is a metronome, which plays sounds at regular time intervals (like a "clicking" sound 4 times a second). When the app is at the foregound, visual feedback for the "clicks" is required. The player implemention is able to emit the corresponding information shortly before the click starts and I am looking for a way to bring this information to the UI.

Timed metadata seemed like something which would exactly fit the needs, but besides of not being transferred to the controller, I am unsure, if it would able to deliver information reliable within a small enough latency (say 0.1s).

from media.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.