[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-05 Thread Jim Hodapp
Adding a note of something to try to fix this bug. When a new media-hub Player instance is created and media has been set on it, try placing the Player state into the paused state. According to this example [1], this should be enough to get metadata out of it. Also, for players that aren't played

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-04 Thread Jim Hodapp
@Pat: No, metadata and everything about a stream is not filled in until you transition the GStreamer playbin pipeline to the playing state. So there's no advantage to reading it from the metadata fields vs the explicit duration field. -- You received this bug notification because you are a

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-04 Thread Pat McGowan
@jim could we also just read it from the metadata prior to playback? I would think we already are somewhere. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1494031 Title: Duration of track is

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-04 Thread Jim Hodapp
Basically what we need to do is to see if GStreamer can update this property/signal when prerolling which should happen when playbin is first told to open a uri. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-04 Thread Pat McGowan
the onDurationChanged signal does work at least on an Audio component I tried. Its called immediately after play starts, before you even hear anything. Unfortunately that doesn't help with what I am trying to do. -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-04 Thread Jim Hodapp
** Changed in: canonical-devices-system-image Status: Confirmed => Triaged ** Changed in: media-hub (Ubuntu) Status: Incomplete => Triaged ** Changed in: media-hub (Ubuntu RTM) Status: Incomplete => Triaged ** No longer affects: qtubuntu-media (Ubuntu) ** No longer

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-04 Thread Andrew Hayzen
Note we had a workaround for this within the music-app [0], this works by running a query for the duration after the source has been set. I wonder if this can be done internally in media-hub/qtubuntu-media and once a valid value is found for it to be emitted up to the QML layer. 0 -

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-08-04 Thread Pat McGowan
Yes I just ht this with something I was doing in sound settings ** Changed in: canonical-devices-system-image Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-07-29 Thread Jim Hodapp
Can you verify if this still occurs? ** Changed in: canonical-devices-system-image Status: Triaged => Incomplete ** Changed in: media-hub (Ubuntu) Status: New => Incomplete ** Changed in: media-hub (Ubuntu RTM) Status: New => Incomplete ** Changed in: qtubuntu-media

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-03-19 Thread John McAleely
** Changed in: canonical-devices-system-image Milestone: ww08-2016 => backlog -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1494031 Title: Duration of track is zero/unchanged when source is set

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2016-01-13 Thread Jean-Baptiste Lallement
I confirm it is still an issue with krillin rc-proposed 228 ** Changed in: canonical-devices-system-image Status: Confirmed => Triaged ** Changed in: canonical-devices-system-image Milestone: ww02-2016 => ww08-2016 ** Tags added: testcase -- You received this bug notification

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2015-11-23 Thread Pat McGowan
** Changed in: canonical-devices-system-image Importance: Undecided => High ** Changed in: canonical-devices-system-image Status: New => Confirmed ** Changed in: canonical-devices-system-image Milestone: None => ww02-2016 ** Changed in: canonical-devices-system-image

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2015-11-23 Thread Pat McGowan
** Tags added: bgplaylist -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1494031 Title: Duration of track is zero/unchanged when source is set To manage notifications about this bug go to:

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2015-11-18 Thread Jim Hodapp
** Also affects: media-hub (Ubuntu) Importance: Undecided Status: New ** Also affects: media-hub (Ubuntu RTM) Importance: Undecided Status: New ** No longer affects: media-hub ** Also affects: qtubuntu-media (Ubuntu RTM) Importance: Undecided Status: New ** Also

[Bug 1494031] Re: Duration of track is zero/unchanged when source is set

2015-09-10 Thread Andrew Hayzen
** Also affects: qtubuntu-media (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1494031 Title: Duration of track is zero/unchanged when source is