UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. gwado
    3. Topics
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 11
    • Groups 0

    Topics

    • gwadoG

      How to retrieve and select available audio outputs

      Watching Ignoring Scheduled Pinned Locked Moved App Development
      2
      0 Votes
      2 Posts
      187 Views
      ikozI
      @gwado Ubuntu Touch uses PulseAudio, commands are the same as on other "normal" Linux distros. To list available outputs (sinks): pactl list sinks As the commands are the same as on Ubuntu desktop, you can search for how to do that in Ubuntu, e.g.: change default audio device, and change PulseAudio I/O output
    • gwadoG

      [solved using UT Tweak Tool] Use a timer even if the screen is off (in standby mode)

      Watching Ignoring Scheduled Pinned Locked Moved App Development
      5
      0 Votes
      5 Posts
      279 Views
      K
      Disabling app suspension is a last resort and it would make your app unconfined if you toggle the setting in your app itself. If you use media hub, your media should keep on playing even if the app is suspended. Worth checking the music app and other music app in the store. I wouldn't be surprised if there are still some issues related to it though.
    • gwadoG

      What's the best way to store a user password?

      Watching Ignoring Scheduled Pinned Locked Moved App Development
      14
      0 Votes
      14 Posts
      606 Views
      arubislanderA
      @adorsaz said in What's the best way to store a user password?: Although, IIRC Ubuntu Touch lets user use phone without password/pin code. Maybe this is the reason such service is not provided to app developpers ? Ubuntu desktop also allows passwordless login. So that in itself is not the reason there is no implementation of libsecret on UT. The real reason is probably simply that none was implemented as yet.
    • gwadoG

      Problem initializing audio player for automatic playback on launch

      Watching Ignoring Scheduled Pinned Locked Moved App Development
      7
      0 Votes
      7 Posts
      343 Views
      gwadoG
      @CiberSheep Thank you for sharing this code with me. I've noticed that the problem seems to exist for this app too, as the developer uses a timer to start playback with a delay. I applied this in my code and it seems to work. I'll now be able to add a few features to it. Thanks again. Here's a code snippet if it helps anyone in the future. Timer interval (1500ms) to be adapted. Timer { id: playStarter interval: 1500 onTriggered: { musicPlayer.play() } } MediaPlayer { id: musicPlayer } function pause() { musicPlayer.pause(); } function play() { if (musicPlayer.source) { musicPlayer.pause(); playStarter.restart(); } }