Closed
Bug 914076
Opened 12 years ago
Closed 12 years ago
[B2G] [Bluetooth] Notification is missed after pausing the music
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(blocking-b2g:koi+, firefox26 fixed)
People
(Reporter: gyeh, Assigned: gyeh)
References
Details
Attachments
(1 file, 1 obsolete file)
No description provided.
Assignee | ||
Updated•12 years ago
|
blocking-b2g: --- → koi?
Updated•12 years ago
|
blocking-b2g: koi? → koi+
Assignee | ||
Comment 1•12 years ago
|
||
Since the event wasn't correctly sent, the remote device like Carkit would fail to show correct play status.
Assignee | ||
Comment 2•12 years ago
|
||
Hi Eric, please take a look at this patch. Thanks.
Assignee: nobody → gyeh
Attachment #801537 -
Flags: review?(echou)
Assignee | ||
Updated•12 years ago
|
Blocks: b2g-bluetooth-avrcp
Comment 3•12 years ago
|
||
Comment on attachment 801537 [details] [diff] [review]
Patch 1(v1): Send play status change event after pausing music
Review of attachment 801537 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good. r=me with nits picked.
::: dom/bluetooth/linux/BluetoothDBusService.cpp
@@ +3189,5 @@
> + }
> +
> + if (eventId != ControlEventId::EVENT_UNKNOWN) {
> + UpdateNotification(eventId, data);
> + }
We could make this part simpler:
uint32_t tempPlayStatus = playStatus;
if (playStatus != a2dp->GetPlayStatus()) {
UpdateNotification(ControlEventId::EVENT_PLAYBACK_STATUS_CHANGED, tempPlayStatus);
} else if (aPosition != a2dp->GetPosition()) {
UpdateNotification(ControlEventId::EVENT_PLAYBACK_POS_CHANGED, aPosition);
}
Attachment #801537 -
Flags: review?(echou) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Eric Chou [:ericchou] [:echou] from comment #3)
> Comment on attachment 801537 [details] [diff] [review]
> Patch 1(v1): Send play status change event after pausing music
>
> Review of attachment 801537 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Looks good. r=me with nits picked.
>
> ::: dom/bluetooth/linux/BluetoothDBusService.cpp
> @@ +3189,5 @@
> > + }
> > +
> > + if (eventId != ControlEventId::EVENT_UNKNOWN) {
> > + UpdateNotification(eventId, data);
> > + }
>
> We could make this part simpler:
>
> uint32_t tempPlayStatus = playStatus;
>
> if (playStatus != a2dp->GetPlayStatus()) {
> UpdateNotification(ControlEventId::EVENT_PLAYBACK_STATUS_CHANGED,
> tempPlayStatus);
> } else if (aPosition != a2dp->GetPosition()) {
> UpdateNotification(ControlEventId::EVENT_PLAYBACK_POS_CHANGED, aPosition);
> }
Sounds good. Thanks!
Assignee | ||
Comment 6•12 years ago
|
||
Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
status-firefox26:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•