Skip to content

Commit

Permalink
chromecast: fix audio playback
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 25, 2024
1 parent a6143e1 commit a3df934
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/chromecast/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/chromecast/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/chromecast",
"version": "0.1.57",
"version": "0.1.58",
"description": "Send video, audio, and text to speech notifications to Chromecast and Google Home devices",
"author": "Scrypted",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/chromecast/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class CastDevice extends ScryptedDeviceBase implements MediaPlayer, Refresh, Eng
media = await mediaManager.createMediaObjectFromUrl(media);
}
}
else if (options?.mimeType?.startsWith('image/')) {
else if (options?.mimeType?.startsWith('image/') || options?.mimeType?.startsWith('audio/')) {
url = await mediaManager.convertMediaObjectToInsecureLocalUrl(media, options?.mimeType);
}

Expand Down

0 comments on commit a3df934

Please sign in to comment.