Giter VIP home page Giter VIP logo

zradio's People

Contributors

draganratkovich avatar hxebolax avatar vovamobile avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

zradio's Issues

Is it possible to create two commands to switch from the previous to the next station in the favorites?

Hi Héctor,
do you think it is possible to create two commands to go to the next or previous station?
This is handy because that way you would use two shortcuts instead of one for each radio station.
Right now the add-on allows you to store 5 favorite stations with shortcuts.
Instead with two commands, next station and previous station, it allows you to switch between all your favorite radios.
For example:
I have 20 stations in my favorites and I'd like to be able to load them all by switching between them without opening the main window.
It can be very useful!
Thanks for everything you do!

Is it possible to create a combo box to change the output of the audio device?

Hi Héctor,
do you think it is possible to develop a combo box to change the audio device without moving the speech synthesis?
Very useful if you are listening to the radio from the speakers without NVDA coming out; in this way we could have NVDA in the headphones and the radio in the speakers.
Congratulations on the add-on!
👏
Greetings!

Inicialización opcional de mpv y algunas sugerencias para el código

MPV es un reproductor que tarda bastante en iniciarse. Esto afecta a la carga general de NVDA, cuyo tiempo aumenta considerablemente cuando el complemento está activo. Mi propuesta consistiría en iniciar MPV sólo cuando el usuario vaya realmente a utilizar ZRadio. Para ello, se podría hacer lo siguiente:

  • Asignar a la variable player el valor None por defecto.
  • Crear una función cuyo único propósito sea iniciar el reproductor. La función comprobará si player es None. En caso de serlo, instancia el reproductor: player = mpv.MPV(ytdl=True, vo=False).
  • En cada script y evento dentro de la clase GlobalPlugin, se debería llamar a la función que inicia el reproductor. Cuando el reproductor esté iniciado, las llamadas a la función no causarán retraso alguno. El único retraso que experimentará el usuario será cuando llame a cualquier función de ZRadio por primera vez tras iniciar NVDA.

Por otro lado, los 5 scripts que reproducen rápidamente las 5 emisoras favoritas tienen muchísimo código repetido. Sería interesante crear una función que reciba como parámetro el número de la radio que se desea reproducir, y llamarla desde cada script. Eso reducirá la cantidad de líneas del archivo, y también los potenciales errores que pudieran surgir.

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.