question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

V1.0.18: exported mass media player out of sync

See original GitHub issue

The exported mass media players can easily get out of sync with source players. scenario:

  1. In MA start a cast of a Spotify playlist to a single CC / CC group of a Spotify playlist(group or single doesn’t make a difference in behavior)
  2. Connected a mobile Spotify app to the same CC / CC group (other Spotify account)
  3. Then I started a new cast from my mobile
  4. Although the mobile Spotify playlist took over the CC group, MA still thinks the original playlists are playing

State of the source CC (media_player.audio57keuken):

volume_level: 0.5099946856498718
is_volume_muted: false
media_content_id: spotify:track:2OgWVJt6yELd5r9z9iMWTH
media_content_type: music
media_duration: 325.653
media_position: 0.326
media_position_updated_at: '2022-05-13T17:37:52.632076+00:00'
media_title: Black Hole Sun
media_artist: Peter Frampton
media_album_name: Fingerprints
app_id: 705D30C6
app_name: Spotify
entity_picture_local: >-
  /api/media_player_proxy/media_player.audio57keuken?token=cf778e934774750e4ba7553b8f83b809601ea366f3efc85d0a8f945055193863&cache=86986adafecddd87
entity_picture: https://i.scdn.co/image/ab67616d0000b273b8a488db20878516dc9ed562
friendly_name: Audio57keuken
supported_features: 152511

State of the exported CC (media_player.mass_audio57keuken):

volume_level: 0.5
media_content_type: music
media_duration: 233
media_position: 0.326
media_position_updated_at: '2022-05-13T17:37:52.712540+00:00'
media_title: Cesair - Enuma Elish
shuffle: false
repeat: 'off'
entity_picture_local: >-
  /api/media_player_proxy/media_player.mass_audio57keuken?token=4fa62f68b1cf83451845771d511d1063adcea3db3742ccdadef8c98b00bbdb43&cache=b52e2cc999e886e9
source_entity_id: media_player.audio57keuken
is_group: false
group_childs: []
group_parents:
  - media_player.everywhere_57
active_queue: media_player.audio57keuken
items_in_queue: 3679
device_class: speaker
entity_picture: https://i.scdn.co/image/ab67616d0000b2738712200d9df0ce17719d8484
friendly_name: Audio57keuken
supported_features: 456629

State of the exported CC also didn’t get back in sync after a while (after the next number or so). MA in the UI still suggests that each CC is playing their queue assigned by MA to that CC. Not the queue of the CC group that was playing !!!

Best Eric

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
marcelveldtcommented, May 15, 2022

I’ve added the additional metadata. Fix will be in the next release.

1reaction
marcelveldtcommented, May 15, 2022

The BrokenPipe error can be ignored. That is one I need to solve with the HA core devs to hide it. It means that the stream got interrupted, hence the “broken pipe”. It happens when you skip a song or stop it. Somehow the HA eventloop ignores the fact this this error should be suppressed. So just ignore it, just like the “stream error” this is an “expected” error. For me good while in beta stage to keep track how MA is behaving and I have to hide it all once we move to a more stable/definitive situation.

Great to hear that the initial issue is resolved. At this time MA just completely ignores the player when it is playing from another source. I guess you’re right that I could display the “origin” metadata on the HA media player object. I’ll take a look at adding that

Read more comments on GitHub >

github_iconTop Results From Across the Web

DS Media Player - Exported video is jerky and audio is out of ...
DS Media Player - Exported video is jerky and audio is out of sync when played back from DVD optical media.
Read more >
Media Player audio-video out of sync - Microsoft Community
When I play an exercise video I have noticed that the audio/video sync starts out fine, then after a while the audio is...
Read more >
QuickTime move exports are out of sync - avid.force.com
Open your Export settings for QuickTime · Click the Custom button · Click Format Options · Click Video · Change the Frame Rate...
Read more >
Audio out of sync when exporting H.264
Solved: I just discovered the following: Whenever I export a H.264 in MP4 container, the audio in the resulting file goes about 10...
Read more >
Keyframe Pro Documentation - Release Notes - Zurbrigg
Added - Maya Tools (Sync Maya to Keyframe Pro's current time) ... Exported frame rate may be incorrect when timeline has mix of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found