Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting not working correctly to Google Devices #3321

Open
1 task done
joashrajin opened this issue Dec 2, 2024 · 9 comments · May be fixed by #3394
Open
1 task done

Casting not working correctly to Google Devices #3321

joashrajin opened this issue Dec 2, 2024 · 9 comments · May be fixed by #3394
Labels
[Area] Chromecast [Priority] Medium Not urgent but should be prioritised soon [Type] Bug Not functioning as intended.

Comments

@joashrajin
Copy link

Description

We had a report of this issue on v7.76, but got confirmation from two users that the issue persists on v7.77.1

Since the last update on android (which loaded on my device yesterday) I've experienced issues using pocketcasts on android to cast to my Google devices.
If I try to cast the stream plays for a fraction of a second before stopping. Pressing play again has the same effect.
However if I start casting from pocketcasts and then after it stops go to the Google home app and press play on the device it continues playing.
Playing the same feeds via other apps to the same device also works, so it doesn't seem to be the network connection or the device itself

Step-by-step reproduction instructions

  1. Attempt to cast episodes to a Google Nest
  2. Notice that playback starts for a second, then stops

Screenshots or screen recording

No response

Did you search for existing bug reports?

  • I have searched for existing bug reports.

Device, Operating system, and Pocket Casts app version

App version : 7.76 (9282)
Phone: samsung - Galaxy A22 5G - SM-A226B - a22x
Android version: 13 SDK 33
Background refresh: true
Battery restriction: Unrestricted

Logs at 9078882-zd-a8c

@joashrajin joashrajin added the [Type] Bug Not functioning as intended. label Dec 2, 2024
@joashrajin
Copy link
Author

9104201-zd-a8c

@joashrajin
Copy link
Author

I tested it on my Nest Mini using v7.77.1, and it seems to work. Here are the logs:

02/12 15:51:23 stopForeground state: 1 removing notification: true
I 02/12 15:51:23 Opening episode. ECR Newswatch @ 15H00 Downloaded: false Downloading: false Audio: true File: https://dl.iono.fm/epi/prov_151/epi_1508198_medium.m4a?p=rss Uuid: 51ea9a58-bd3f-4c05-9d69-9fc2617b1bc7
I 02/12 15:51:27 Opening episode. ECR Newswatch @ 15H00 Downloaded: false Downloading: false Audio: true File: https://dl.iono.fm/epi/prov_151/epi_1508198_medium.m4a?p=rss Uuid: 51ea9a58-bd3f-4c05-9d69-9fc2617b1bc7
I 02/12 15:51:27 Trying to gain audio focus
I 02/12 15:51:27 We already had audio focus
I 02/12 15:51:27 Play 44,717 Cast Player. ECR Newswatch @ 15H00 Downloaded: false, Downloading: false, Audio: true, File: https://dl.iono.fm/epi/prov_151/epi_1508198_medium.m4a?p=rss, EpisodeUuid: 51ea9a58-bd3f-4c05-9d69-9fc2617b1bc7, PodcastUuid: c8596ce0-86d6-0135-9037-63f4b61a9224
I 02/12 15:51:28 startForeground state: 6
I 02/12 15:51:31 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 3660 uid: 10273
I 02/12 15:51:31 Executing queued command: stop
I 02/12 15:51:31 Giving up audio focus
I 02/12 15:51:31 Giving up audio focus. Request granted
I 02/12 15:51:31 Paused - Not transient
I 02/12 15:51:31 Saved time in database 44,717
I 02/12 15:51:31 stopForeground state: 2 (update notification)
I 02/12 15:51:35 Play clicked in mini player
I 02/12 15:51:35 Trying to gain audio focus
I 02/12 15:51:35 Audio focus gained
I 02/12 15:51:35 Not enough time passed since this episode was last paused, no time adjustment required
I 02/12 15:51:35 Play 44,717 Cast Player. ECR Newswatch @ 15H00 Downloaded: false, Downloading: false, Audio: true, File: https://dl.iono.fm/epi/prov_151/epi_1508198_medium.m4a?p=rss, EpisodeUuid: 51ea9a58-bd3f-4c05-9d69-9fc2617b1bc7, PodcastUuid: c8596ce0-86d6-0135-9037-63f4b61a9224
I 02/12 15:51:35 startForeground state: 3
I 02/12 15:51:40 Saved time in database 49,923
I 02/12 15:51:45 Saved time in database 54,925
I 02/12 15:51:50 Saved time in database 59,925
I 02/12 15:51:55 Saved time in database 64,926
I 02/12 15:52:00 Saved time in database 69,943
I 02/12 15:52:05 Saved time in database 74,922
I 02/12 15:52:09 Saved time in database 77,920
I 02/12 15:52:09 Stopping playback
I 02/12 15:52:09 stopForeground state: 1 removing notification: true
I 02/12 15:52:09 Opening episode. ECR Newswatch @ 15H00 Downloaded: false Downloading: false Audio: true File: https://dl.iono.fm/epi/prov_151/epi_1508198_medium.m4a?p=rss Uuid: 51ea9a58-bd3f-4c05-9d69-9fc2617b1bc7
I 02/12 15:52:34 App started. 7.78-rc-3 (9290)
I 02/12 15:52:34 Opening deep link: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=au.com.shiftyjelly.pocketcasts/.ui.MainActivity bnds=[289,612][540,946] }. Safe URI: null
I 02/12 15:52:34 Did not find any matching deep link for: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=au.com.shiftyjelly.pocketcasts/.ui.MainActivity bnds=[289,612][540,946] }
I 02/12 15:52:34 Set up periodic refresh
I 02/12 15:52:34 Shortcut update from refresh_app, top filter title: New Releases
I 02/12 15:52:34 Audio device added: SM-G990E, Rerouting audio between mixes and system apps
I 02/12 15:52:34 Signing out because no account manager account found
I 02/12 15:52:34 Playback service created

@joashrajin
Copy link
Author

For the user in 9078882-zd-a8c - I notice the audio focus is repeatedly gained and lost (Trying to gain audio focus, Giving up audio focus).
But on mine, audio focus is gained (We already had audio focus) and remains stable during playback.

@pmlynch85
Copy link

pmlynch85 commented Dec 3, 2024

I have had this issue with version 7.77.1 casting to a Google Home Mini. I have attached my logs below. The program appears to receive a command to stop just after it starts playing.

I 03/12 13:12:07 App started. 7.77.1 (9288)
I 03/12 13:12:07 Audio device added: SM-A326B, Rerouting audio between mixes and system apps
I 03/12 13:12:07 Playback service created
I 03/12 13:12:20 Opening deep link: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=au.com.shiftyjelly.pocketcasts cmp=au.com.shiftyjelly.pocketcasts/.ui.MainActivity }. Safe URI: null
I 03/12 13:12:20 Did not find any matching deep link for: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=au.com.shiftyjelly.pocketcasts cmp=au.com.shiftyjelly.pocketcasts/.ui.MainActivity }
I 03/12 13:12:20 Set up periodic refresh
I 03/12 13:12:20 Shortcut update from refresh_app, top filter title: New Releases
I 03/12 13:12:29 Opening episode. EP15: Ed Gamble Downloaded: true Downloading: false Audio: true File: https://traffic.megaphone.fm/GLT7890253093.mp3?updated=1733022811 Uuid: 718f476a-17cd-4e07-be57-b61c036373f6
I 03/12 13:12:29 Trying to gain audio focus
I 03/12 13:12:29 startForeground state: 3
I 03/12 13:12:29 Audio focus gained
I 03/12 13:12:29 Play 1703.000 Cast Player. EP15: Ed Gamble Downloaded: true, Downloading: false, Audio: true, File: https://traffic.megaphone.fm/GLT7890253093.mp3?updated=1733022811, EpisodeUuid: 718f476a-17cd-4e07-be57-b61c036373f6, PodcastUuid: e82e8870-48b8-013d-194c-0acc26574db2
I 03/12 13:12:30 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 28824 uid: 10272
I 03/12 13:12:30 Executing queued command: stop
I 03/12 13:12:30 Giving up audio focus
I 03/12 13:12:30 Giving up audio focus. Request granted
I 03/12 13:12:30 Paused - Not transient
I 03/12 13:12:31 Saved time in database 1703.000
I 03/12 13:12:31 stopForeground state: 2 (update notification)
I 03/12 13:12:31 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 28824 uid: 10272
I 03/12 13:12:31 Executing queued command: stop
I 03/12 13:12:31 Giving up audio focus
I 03/12 13:12:31 Giving up audio focus. Request granted
I 03/12 13:12:31 Paused - Not transient
I 03/12 13:12:32 Play clicked in player
I 03/12 13:12:32 Trying to gain audio focus
I 03/12 13:12:32 Audio focus gained
I 03/12 13:12:32 Play 1703.000 Cast Player. EP15: Ed Gamble Downloaded: true, Downloading: false, Audio: true, File: https://traffic.megaphone.fm/GLT7890253093.mp3?updated=1733022811, EpisodeUuid: 718f476a-17cd-4e07-be57-b61c036373f6, PodcastUuid: e82e8870-48b8-013d-194c-0acc26574db2
I 03/12 13:12:32 startForeground state: 3
I 03/12 13:12:32 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 28824 uid: 10272
I 03/12 13:12:32 Executing queued command: stop
I 03/12 13:12:32 Giving up audio focus
I 03/12 13:12:32 Giving up audio focus. Request granted
I 03/12 13:12:32 Paused - Not transient
I 03/12 13:12:33 Saved time in database 1703.435
I 03/12 13:12:33 stopForeground state: 2 (update notification)
I 03/12 13:12:33 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 28824 uid: 10272
I 03/12 13:12:33 Executing queued command: stop
I 03/12 13:12:33 Giving up audio focus
I 03/12 13:12:33 Giving up audio focus. Request granted
I 03/12 13:12:33 Paused - Not transient
I 03/12 13:12:33 Play clicked in player
I 03/12 13:12:33 Trying to gain audio focus
I 03/12 13:12:33 Audio focus gained
I 03/12 13:12:33 Play 1703.435 Cast Player. EP15: Ed Gamble Downloaded: true, Downloading: false, Audio: true, File: https://traffic.megaphone.fm/GLT7890253093.mp3?updated=1733022811, EpisodeUuid: 718f476a-17cd-4e07-be57-b61c036373f6, PodcastUuid: e82e8870-48b8-013d-194c-0acc26574db2
I 03/12 13:12:33 startForeground state: 3
I 03/12 13:12:33 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 28824 uid: 10272
I 03/12 13:12:33 Executing queued command: stop
I 03/12 13:12:33 Giving up audio focus
I 03/12 13:12:33 Giving up audio focus. Request granted
I 03/12 13:12:33 Paused - Not transient
I 03/12 13:12:34 Saved time in database 1703.715
I 03/12 13:12:34 stopForeground state: 2 (update notification)
I 03/12 13:12:34 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 28824 uid: 10272
I 03/12 13:12:34 Executing queued command: stop
I 03/12 13:12:34 Giving up audio focus
I 03/12 13:12:34 Giving up audio focus. Request granted
I 03/12 13:12:34 Paused - Not transient

@TonioBDS
Copy link

TonioBDS commented Dec 4, 2024

Please find my logs :

Platform : Phone
App version : 7.78-rc-3 (9290)
Sync account: (email visible only to moderators and staff)
Last Sync: 2024-12-04T10:45:14.416Z
Time: 2024-12-04 11:49:41 Local
      2024-12-04 10:49:41 Utc

Phone: samsung - Galaxy S20+ - SM-G986B - y2s
Kernel: 4.19.87-27102101 - 21DK7A14
Android version: 13 SDK 33

Background refresh: true
Battery restriction: Unrestricted
Exit reasons
ApplicationExitInfo(timestamp=04/12/2024 11:34 pid=7005 realUid=10312 packageUid=10312 definingUid=10312 user=0 process=au.com.shiftyjelly.pocketcasts reason=13 (OTHER KILLS BY SYSTEM) subreason=3 (TOO MANY EMPTY PROCS) status=0 importance=400 pss=74MB rss=232MB description=too many empty state=empty trace=null

Feature flags
sync_eoy_data_on_startup: true
end_of_year_2024: true
report_violation: false
intro_plus_offer_enabled: true
slumber_studios_yearly_promo_code: true
deselect_chapters_enabled: true
nova_launcher: false
cache_entire_playing_episode: true
reimagine_sharing: true
transcripts: true
explat_experiment: true
engage_sdk: true
referrals_claim: true
referrals_send: true
search_in_listening_history: true
auto_download: true
up_next_shuffle: true
custom_playback_settings: true
manage_downloaded_episodes: true
reset_episode_cache_on_416_error: true
basic_authentication: true

Auto archive settings
Auto archive played episodes after: after_playing
Auto archive inactive episodes after: never
Auto archive starred episodes: false

Auto downloads
  Any podcast? yes
  New Episodes? no
  Limit Downloads TWO_LATEST_EPISODE
  Up Next? yes
  Only on unmetered WiFi? no
  Only when charging? no

Current connection
  Type: wifi
  Metered? no (unlimited, free)
  Restrict Background Status: Device is not restricting metered network activity while application is running on background.

Warning when not on Wifi? no
04/12 11:48:56 Play clicked in mini player
I 04/12 11:48:56 Opening episode. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true Downloading: false Audio: true File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3 Uuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d
I 04/12 11:48:56 Trying to gain audio focus
I 04/12 11:48:56 Audio focus gained
I 04/12 11:48:56 Play 144,645 System Player. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true, Downloading: false, Audio: true, File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3, EpisodeUuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d, PodcastUuid: 21b998e0-4b3c-0133-c348-0d11918ab357
I 04/12 11:48:56 LocalPlayer onSeekComplete 144,645
I 04/12 11:48:56 startForeground state: 3
I 04/12 11:48:56 Saved time in database 144,645
I 04/12 11:49:01 Saved time in database 149,202
I 04/12 11:49:06 Saved time in database 154,198
I 04/12 11:49:11 Saved time in database 159,159
I 04/12 11:49:16 Saved time in database 164,136
I 04/12 11:49:21 Saved time in database 169,138
I 04/12 11:49:22 Opening episode. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true Downloading: false Audio: true File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3 Uuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d
I 04/12 11:49:22 Trying to gain audio focus
I 04/12 11:49:22 We already had audio focus
I 04/12 11:49:22 Play 170,758 Cast Player. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true, Downloading: false, Audio: true, File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3, EpisodeUuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d, PodcastUuid: 21b998e0-4b3c-0133-c348-0d11918ab357
I 04/12 11:49:24 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:24 Executing queued command: stop
I 04/12 11:49:24 Giving up audio focus
I 04/12 11:49:24 Giving up audio focus. Request granted
I 04/12 11:49:24 Paused - Not transient
I 04/12 11:49:24 Saved time in database 170,993
I 04/12 11:49:24 stopForeground state: 2 (update notification)
I 04/12 11:49:24 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:24 Executing queued command: stop
I 04/12 11:49:24 Giving up audio focus
I 04/12 11:49:24 Giving up audio focus. Request granted
I 04/12 11:49:24 Paused - Not transient
I 04/12 11:49:26 Play clicked in mini player
I 04/12 11:49:26 Trying to gain audio focus
I 04/12 11:49:26 Audio focus gained
I 04/12 11:49:26 Not enough time passed since this episode was last paused, no time adjustment required
I 04/12 11:49:26 Play 170,993 Cast Player. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true, Downloading: false, Audio: true, File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3, EpisodeUuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d, PodcastUuid: 21b998e0-4b3c-0133-c348-0d11918ab357
I 04/12 11:49:26 startForeground state: 3
I 04/12 11:49:26 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:26 Executing queued command: stop
I 04/12 11:49:26 Giving up audio focus
I 04/12 11:49:26 Giving up audio focus. Request granted
I 04/12 11:49:26 Paused - Not transient
I 04/12 11:49:26 Saved time in database 171,198
I 04/12 11:49:27 stopForeground state: 2 (update notification)
I 04/12 11:49:27 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:27 Executing queued command: stop
I 04/12 11:49:27 Giving up audio focus
I 04/12 11:49:27 Giving up audio focus. Request granted
I 04/12 11:49:27 Paused - Not transient
I 04/12 11:49:29 Play clicked in mini player
I 04/12 11:49:29 Trying to gain audio focus
I 04/12 11:49:29 Audio focus gained
I 04/12 11:49:29 Not enough time passed since this episode was last paused, no time adjustment required
I 04/12 11:49:29 Play 171,198 Cast Player. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true, Downloading: false, Audio: true, File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3, EpisodeUuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d, PodcastUuid: 21b998e0-4b3c-0133-c348-0d11918ab357
I 04/12 11:49:29 startForeground state: 3
I 04/12 11:49:29 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:29 Executing queued command: stop
I 04/12 11:49:29 Giving up audio focus
I 04/12 11:49:29 Giving up audio focus. Request granted
I 04/12 11:49:29 Paused - Not transient
I 04/12 11:49:29 Saved time in database 171,360
I 04/12 11:49:29 stopForeground state: 2 (update notification)
I 04/12 11:49:29 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:29 Executing queued command: stop
I 04/12 11:49:29 Giving up audio focus
I 04/12 11:49:29 Giving up audio focus. Request granted
I 04/12 11:49:29 Paused - Not transient
I 04/12 11:49:32 Play clicked in mini player
I 04/12 11:49:32 Trying to gain audio focus
I 04/12 11:49:32 Audio focus gained
I 04/12 11:49:32 Not enough time passed since this episode was last paused, no time adjustment required
I 04/12 11:49:32 Play 171,360 Cast Player. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true, Downloading: false, Audio: true, File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3, EpisodeUuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d, PodcastUuid: 21b998e0-4b3c-0133-c348-0d11918ab357
I 04/12 11:49:32 startForeground state: 3
I 04/12 11:49:32 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:32 Executing queued command: stop
I 04/12 11:49:32 Giving up audio focus
I 04/12 11:49:32 Giving up audio focus. Request granted
I 04/12 11:49:32 Paused - Not transient
I 04/12 11:49:32 Saved time in database 171,480
I 04/12 11:49:32 stopForeground state: 2 (update notification)
I 04/12 11:49:32 Event from Media Session to stop. Controller: au.com.shiftyjelly.pocketcasts pid: 15415 uid: 10312
I 04/12 11:49:32 Executing queued command: stop
I 04/12 11:49:32 Giving up audio focus
I 04/12 11:49:32 Giving up audio focus. Request granted
I 04/12 11:49:32 Paused - Not transient
I 04/12 11:49:37 Saved time in database 171,480
I 04/12 11:49:37 Stopping playback
I 04/12 11:49:37 Opening episode. Le Billet de Matthieu Noël du jeudi 28 novembre 2024 Downloaded: true Downloading: false Audio: true File: https://rf.proxycast.org/d3bf3e39-6cef-424a-9f18-1294fc781977/15275-28.11.2024-ITEMA_23939545-2024F49085S0333-22.mp3 Uuid: 594abae2-c649-4b03-b5bf-9bbf4ac2129d
I 04/12 11:49:37 stopForeground state: 1 removing notification: true

@mokagio
Copy link
Contributor

mokagio commented Dec 4, 2024

The logs above are similar to the ones in 9099352-zd-a8c

@mokagio
Copy link
Contributor

mokagio commented Dec 5, 2024

See also 9120625-zd-a8c

@geekygecko geekygecko added the [Priority] Medium Not urgent but should be prioritised soon label Dec 5, 2024
@igotdes
Copy link

igotdes commented Dec 9, 2024

Also reported by this forum user:

same issue, although pressing the play button after the 1st 1 second pause directly after chromecast connection usually allows it to play to the end, but then doesn’t auto play the next podcast.

tested 3 android devices against 3 chromecast devices, all having the issue. other podcast apps with casting capability had no issues.

been having the issue for several weeks.

@mebarbosa mebarbosa linked a pull request Dec 26, 2024 that will close this issue
6 tasks
@erricgunawan
Copy link

9218152-zen (1-star Android app review):

Update Dec 2024: has started to pause itself instantly when casting to Google home mini. It's the only app that does this, other podcast apps & music apps working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Area] Chromecast [Priority] Medium Not urgent but should be prioritised soon [Type] Bug Not functioning as intended.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants