public interface PresentationRequest extends MediaSource
PresentationRequest
.
browser.set(StartPresentationCallback.class, (params, tell) -> {
Optional<MediaReceiver> mediaReceiver =
params.list()
.stream()
.filter(it -> it.name().startsWith("Samsung TV"))
.findAny();
if (mediaReceiver.isPresent()) {
MediaReceiver samsungTv = mediaReceiver.get();
if (samsungTv.supports(params.presentationRequest())) {
tell.start(samsungTv);
} else {
tell.cancel();
}
} else {
tell.cancel();
}
});
Modifier and Type | Method and Description |
---|---|
default Frame |
frame()
Returns the frame where the presentation has been requested.
|
default java.lang.String |
origin()
Returns the origin of the frame where the presentation
has been requested.
|
default java.util.List<java.lang.String> |
presentationUrls()
Returns the list of URLs whose content will be cast.
|
browser, screen
default java.util.List<java.lang.String> presentationUrls()
default java.lang.String origin()
default Frame frame()