Accomodate extractor changes (EnumSet for service media capabilities)
This commit is contained in:
parent
4481dd7fe6
commit
08b7da4b2b
1 changed files with 2 additions and 4 deletions
|
|
@ -343,8 +343,7 @@ public class RouterActivity extends AppCompatActivity {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
final List<StreamingService.ServiceInfo.MediaCapability> capabilities =
|
final var capabilities = currentService.getServiceInfo().getMediaCapabilities();
|
||||||
currentService.getServiceInfo().getMediaCapabilities();
|
|
||||||
|
|
||||||
// Check if the service supports the choice
|
// Check if the service supports the choice
|
||||||
if ((isVideoPlayerSelected && capabilities.contains(VIDEO))
|
if ((isVideoPlayerSelected && capabilities.contains(VIDEO))
|
||||||
|
|
@ -528,8 +527,7 @@ public class RouterActivity extends AppCompatActivity {
|
||||||
final List<AdapterChoiceItem> returnedItems = new ArrayList<>();
|
final List<AdapterChoiceItem> returnedItems = new ArrayList<>();
|
||||||
returnedItems.add(showInfo); // Always present
|
returnedItems.add(showInfo); // Always present
|
||||||
|
|
||||||
final List<StreamingService.ServiceInfo.MediaCapability> capabilities =
|
final var capabilities = service.getServiceInfo().getMediaCapabilities();
|
||||||
service.getServiceInfo().getMediaCapabilities();
|
|
||||||
|
|
||||||
if (linkType == LinkType.STREAM || linkType == LinkType.PLAYLIST) {
|
if (linkType == LinkType.STREAM || linkType == LinkType.PLAYLIST) {
|
||||||
if (capabilities.contains(VIDEO)) {
|
if (capabilities.contains(VIDEO)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue