mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 08:42:19 +00:00
chromecast: fixup mimetype detection
This commit is contained in:
@@ -163,7 +163,7 @@ class CastDevice extends ScryptedDeviceBase implements MediaPlayer, Refresh, Eng
|
||||
this.sendMediaToClient(options && (options as any).title,
|
||||
url,
|
||||
// prefer the provided mime type hint, otherwise infer from url.
|
||||
options.mimeType || mime.getType(url));
|
||||
options.mimeType || mime.getType(new URL(url).pathname));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user