From 98860575b66acba556eb29d6e15af9cafe7679c5 Mon Sep 17 00:00:00 2001 From: Christian Pillsbury Date: Fri, 3 Mar 2023 14:30:27 -0800 Subject: [PATCH] feat: add support for inferred streamType from media-ui-extensions. --- castable-video.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/castable-video.js b/castable-video.js index 4531f50..7e974a8 100644 --- a/castable-video.js +++ b/castable-video.js @@ -547,7 +547,8 @@ export const CastableVideoMixin = (superclass) => } get castStreamType() { - return this.getAttribute('cast-stream-type') ?? undefined; + // NOTE: Per https://github.com/video-dev/media-ui-extensions/issues/3 `streamType` may yield `"unknown"` + return this.getAttribute('cast-stream-type') ?? this.streamType ?? undefined; } set castStreamType(val) {