@stremio/stremio-video 0.0.17-rc.8 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stremio/stremio-video",
3
- "version": "0.0.17-rc.8",
3
+ "version": "0.0.18",
4
4
  "description": "Abstraction layer on top of different media players",
5
5
  "author": "Smart Code OOD",
6
6
  "main": "src/index.js",
@@ -46,10 +46,6 @@ function IFrameVideo(options) {
46
46
 
47
47
  var eventName = data.event;
48
48
  var args = Array.isArray(data.args) ? data.args : [];
49
- if ((eventName === 'propValue' || eventName === 'propChanged') && args[0] === 'stream') {
50
- return;
51
- }
52
-
53
49
  events.emit.apply(events, [eventName].concat(args));
54
50
  }
55
51
  function sendMessage(action) {
@@ -76,7 +72,6 @@ function IFrameVideo(options) {
76
72
  case 'load': {
77
73
  command('unload');
78
74
  if (commandArgs && commandArgs.stream && typeof commandArgs.stream.playerFrameUrl === 'string') {
79
- onPropChanged('stream', commandArgs.stream);
80
75
  window.addEventListener('message', onMessage, false);
81
76
  iframeElement.src = commandArgs.stream.playerFrameUrl;
82
77
  return false;
@@ -165,10 +160,10 @@ IFrameVideo.canPlayStream = function(stream) {
165
160
 
166
161
  IFrameVideo.manifest = {
167
162
  name: 'IFrameVideo',
168
- external: false,
169
- props: ['stream', 'paused', 'time', 'duration', 'buffering', 'buffered', 'volume', 'muted', 'playbackSpeed'],
170
- commands: ['load', 'unload', 'destroy'],
171
- events: ['propValue', 'propChanged', 'ended', 'error']
163
+ external: true,
164
+ props: ['stream', 'paused', 'time', 'duration', 'buffering', 'buffered', 'audioTracks', 'selectedAudioTrackId', 'subtitlesTracks', 'selectedSubtitlesTrackId', 'subtitlesOffset', 'subtitlesSize', 'subtitlesTextColor', 'subtitlesBackgroundColor', 'subtitlesOutlineColor', 'volume', 'muted', 'playbackSpeed', 'extraSubtitlesTracks', 'selectedExtraSubtitlesTrackId', 'extraSubtitlesDelay', 'extraSubtitlesSize', 'extraSubtitlesOffset', 'extraSubtitlesTextColor', 'extraSubtitlesBackgroundColor', 'extraSubtitlesOutlineColor'],
165
+ commands: ['load', 'unload', 'destroy', 'addExtraSubtitlesTracks'],
166
+ events: ['propValue', 'propChanged', 'ended', 'error', 'subtitlesTrackLoaded', 'audioTrackLoaded', 'extraSubtitlesTrackLoaded', 'implementationChanged']
172
167
  };
173
168
 
174
169
  module.exports = IFrameVideo;