No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [V1]@quasar/qmedia Dynamic audio source

    [v1] App Extensions
    6
    9
    411
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pavarine last edited by

      I’m using a q-media component with a :source prop that comes initially as a string that comes from the data() initial data of my component.

      When certain events occurs on my component, I’m trying (in a method) to change the source of the q-media components like:

      any_method() {
        this.cur_audio_url = "another_audio_url"
      }
      

      But the audio source is not changing. Is the source prop of q-media component intended to be reactive? Is that anything I can do to achiev such a thing?

      <q-media-player
      	  ref="audio_player"
      	  type="audio"
      	  background-color="black"
      	  radius="1rem"
      	  track-language="English"
      	  :autoplay="true"
      	  :source="cur_audio_url"
      	  @loaded="audio_loaded"
      	  @ready="audio_ready"
      >
      
      patryckx digiproduct 2 Replies Last reply Reply Quote 0
      • patryckx
        patryckx @pavarine last edited by patryckx

        @pavarine
        I’m not sure, but I believe it’s not reactive.
        Because you will initialize your player with the settings, not play with them in real time.
        You will probably have to force update on the component.

        P 1 Reply Last reply Reply Quote 0
        • P
          pavarine @patryckx last edited by

          @patryckx Thanks for helping. What would be the best way to do this? I tried to set and reset some prop that actually is reactive (at least in the documentation the ‘muted’ props is passed as :muted, so I think it is reactive) but it also didn’t work.

          1 Reply Last reply Reply Quote 0
          • Hawkeye64
            Hawkeye64 last edited by

            @pavarine Can you add an issue and I will look into it in my next round of QMediaPlayer updates. Thanks.
            https://github.com/quasarframework/app-extension-qmediaplayer/issues

            digiproduct 1 Reply Last reply Reply Quote 0
            • digiproduct
              digiproduct @pavarine last edited by

              @pavarine I think @Hawkeye64 is probably the best person to advise you on this

              1 Reply Last reply Reply Quote 0
              • digiproduct
                digiproduct @Hawkeye64 last edited by

                @Hawkeye64 you beat me to it by seconds 😁

                1 Reply Last reply Reply Quote 1
                • P
                  pavarine last edited by

                  Ok guys, I’ll do this… Thanks for attention…

                  1 Reply Last reply Reply Quote 0
                  • A
                    Agung Pratama last edited by

                    someone help me !! , can quasar play audio format file .au??

                    dobbel 1 Reply Last reply Reply Quote 0
                    • dobbel
                      dobbel @Agung Pratama last edited by

                      @Agung-Pratama

                      Did you try to play an .au file?

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post