mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-09-03 05:10:27 +03:00
Apply suggestion
This commit is contained in:
@@ -29,7 +29,7 @@ define(['events', 'playbackManager', 'toast'], function (events, playbackManager
|
||||
};
|
||||
|
||||
self.canPlayItem = function (item, playOptions) {
|
||||
var mediaSource = item.MediaSources && item.MediaSources[0] || false;
|
||||
var mediaSource = item.MediaSources && item.MediaSources[0];
|
||||
return window.ExternalPlayer.isEnabled() && mediaSource && mediaSource.SupportsDirectStream;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user