View Issue Details

IDProjectCategoryView StatusLast Update
0020781MMAUPnP / Castingpublic2024-04-10 17:25
Reporterrusty Assigned To 
PriorityurgentSeverityminorReproducibilityrandom
Status resolvedResolutionreopened 
Product Version2.0.0 
Target Version2.0.0Fixed in Version2.0.0 
Summary0020781: Casting doesn't consistently start from the current playback position
DescriptionIf the user starts playing 1m10s of a track to the local speaker and then switches to casting to a device, sometimes playback will continue from the 1m10s and other times it will restart from the beginning.

The desired behavior is that playback should consistently continue from the point at which playback was paused (or perhaps from 1s prior to that point as this helps retain a frame of reference).

Note: the bug seems to occur most often when playback of the track is initiated to the local speaker and then switching to the cast device. It occurs less often when initiating playback to the casting device and switching back to the local speaker and then back to the casting device.
TagsNo tags attached.
Fixed in build1171

Relationships

related to 0020840 resolvedmartin Google casting sometimes stops due to crash (build 1169/1171) 

Activities

martin

2024-04-02 16:41

developer   ~0074929

Fixed in build 2.0.0.1169

rusty

2024-04-02 21:04

administrator   ~0074939

Last edited: 2024-04-02 22:04

Tested 1169 and this is now working well for Google casting.
BUT for UPnP casting the behavior is incorrect: when switching playback to MMW (UPnP) instead of playing from the current position, it'll usually restart from the beginning of the current track or the beginning of the next track!

Is this behavior intended? (I'm asking because I see that BubbleUPnP also starts at the beginning of each track when switching, though it at least is consistent about starting at the beginning of the _current_ track).

martin

2024-04-09 12:47

developer   ~0075037

Start from position is not supported by default over UPnP protocol, so MMA needs to use play & seek.
This can cause issues like skipping to the next track or ignoring the seek action if the track is not fully loaded or fully supported.
Nevertheless, I have implemented it and it works well for me, but I have tested it on a small subset of tracks.
I enabled it only for bookmarkable media (audiobooks, podcasts and videos).

Fixed in build 2.0.0.1170

rusty

2024-04-09 20:06

administrator   ~0075054

Last edited: 2024-04-09 20:55

Bookmarking over UPnP is working. But there seems to be a regression in 1170 regarding Google casting: unlike 1169 in which the originally reported issue had been fixed, in 1170, if I start playing a track locally on the device and then switch (e.g. after a minute) to a Google Cast device, playback will often (but not always) restart from the beginning of the track.

Debug log showing this for 'Graceland': Z18QDWM8CP

EDIT: I can replicate this as follows:
1 Play a 5m Music track in MMA locally
2 After 1 minute tap Cast and cast to a Google cast device
--> Playback on the cast device restarts from the beginning of the track!
3 Disable casting so that playback resumes locally
4 Move the seekbar to the 4m mark
5 Tap Cast and cast to a Google cast device
--> Playback on the cast device continues from the 4m mark!

This inconsistent casting behavior doesn't happen all the time, but it happens quite often.

martin

2024-04-10 11:36

developer   ~0075063

Fixed in build 2.0.0.1171

rusty

2024-04-10 17:24

administrator   ~0075074

Verified 1171, but there appears to be a regression 0020840 that may be related? Leaving as resolved to reverify after 0020840 is fixed.