Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@silvermine/videojs-chromecast

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@silvermine/videojs-chromecast - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

package.json
{
"name": "@silvermine/videojs-chromecast",
"version": "1.1.1",
"version": "1.1.2",
"description": "video.js plugin for casting to chromecast",

@@ -58,4 +58,4 @@ "main": "src/js/index.js",

"peerDependencies": {
"video.js": "6.x"
"video.js": ">= 6 < 8"
}
}

@@ -368,2 +368,29 @@ 'use strict';

/**
* This function is "required" when implementing {@link external:Tech} and is supposed
* to return a mock
* {@link https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges|TimeRanges}
* object that represents the portions of the current media item that has playable
* content. However, the Chromecast API does not currently provide a way to determine
* how much the media item has playable content, so we'll just assume the entire video
* is an available seek target.
*
* The risk here lies with live streaming, where there may exist a sliding window of
* playable content and seeking is only possible within the last X number of minutes,
* rather than for the entire video.
*
* Unfortunately we have no way of detecting when this is the case. Returning anything
* other than the full range of the video means that we lose the ability to seek during
* VOD.
*
* @returns {TimeRanges} always returns a `TimeRanges` object with one `TimeRange` that
* starts at `0` and ends at the `duration` of the current media item
* @see {@link http://docs.videojs.com/Player.html#seekable}
*/
seekable: function() {
// TODO Investigate if there's a way to detect if the source is live, so that we can
// possibly adjust the seekable `TimeRanges` accordingly.
return this.videojs.createTimeRange(0, this.duration());
},
/**
* Returns whether the native media controls should be shown (`true`) or hidden

@@ -370,0 +397,0 @@ * (`false`). Not applicable to this Tech.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc