castable-video
Advanced tools
Comparing version 1.0.10 to 1.1.0
@@ -33,2 +33,3 @@ /* global chrome */ | ||
#castOptions = getDefaultCastOptions(); | ||
#castCustomData; | ||
#remote; | ||
@@ -93,2 +94,3 @@ | ||
const mediaInfo = new chrome.cast.media.MediaInfo(this.castSrc, this.castContentType); | ||
mediaInfo.customData = this.castCustomData; | ||
@@ -226,2 +228,16 @@ // Manually add text tracks with a `src` attribute. | ||
get castCustomData() { | ||
return this.#castCustomData; | ||
} | ||
set castCustomData(val) { | ||
const valType = typeof val; | ||
if (!['object', 'undefined'].includes(valType)) { | ||
console.error(`castCustomData must be nullish or an object but value was of type ${valType}`); | ||
return; | ||
} | ||
this.#castCustomData = val; | ||
} | ||
get readyState() { | ||
@@ -228,0 +244,0 @@ if (this.#castPlayer) { |
{ | ||
"name": "castable-video", | ||
"version": "1.0.10", | ||
"version": "1.1.0", | ||
"description": "Cast your video element to the big screen with ease!", | ||
@@ -5,0 +5,0 @@ "author": "@muxinc", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31446
680