← Back to team overview

touch-packages team mailing list archive

[Bug 1496981] [NEW] Wishlist: Preview widget type queues audio tracks

 

Public bug reported:

If more than one audio tracks are put into VariantBuilder object, it would be nice, if audio tracks will be added into a queue and will be played automatically in any kind of order, one after the other track.
E.g.: 
{
    PreviewWidget w1("tracks", "audio");
    VariantBuilder builder;
    builder.add_tuple({
        {"title", Variant("Track #1")},
        {"source", Variant("file:///tmp/song1.mp3")},
        {"length", Variant(194)}
    });
    builder.add_tuple({
        {"title", Variant("Track #2")},
        {"source", Variant("file:///tmp/song2.mp3")},
        {"length", Variant(207)}
    });
    w1.add_attribute_value("tracks", builder.end());
    ...
}
If song1.mp3 is clicked, song2.mp3 will be played automatically without any user's click.

** Affects: unity-scopes-api (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scopes-api in
Ubuntu.
https://bugs.launchpad.net/bugs/1496981

Title:
  Wishlist: Preview widget type queues audio tracks

Status in unity-scopes-api package in Ubuntu:
  New

Bug description:
  If more than one audio tracks are put into VariantBuilder object, it would be nice, if audio tracks will be added into a queue and will be played automatically in any kind of order, one after the other track.
  E.g.: 
  {
      PreviewWidget w1("tracks", "audio");
      VariantBuilder builder;
      builder.add_tuple({
          {"title", Variant("Track #1")},
          {"source", Variant("file:///tmp/song1.mp3")},
          {"length", Variant(194)}
      });
      builder.add_tuple({
          {"title", Variant("Track #2")},
          {"source", Variant("file:///tmp/song2.mp3")},
          {"length", Variant(207)}
      });
      w1.add_attribute_value("tracks", builder.end());
      ...
  }
  If song1.mp3 is clicked, song2.mp3 will be played automatically without any user's click.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-api/+bug/1496981/+subscriptions