@loaders.gl/video 3.1.8 → 3.2.0-alpha.3

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.
@@ -1,5 +1,5 @@
1
1
  import parseVideo from './lib/parsers/parse-video';
2
- const VERSION = typeof "3.1.8" !== 'undefined' ? "3.1.8" : 'latest';
2
+ const VERSION = typeof "3.2.0-alpha.3" !== 'undefined' ? "3.2.0-alpha.3" : 'latest';
3
3
  const EXTENSIONS = ['mp4'];
4
4
  const MIME_TYPES = ['video/mp4'];
5
5
  const DEFAULT_LOADER_OPTIONS = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/video-loader.ts"],"names":["parseVideo","VERSION","EXTENSIONS","MIME_TYPES","DEFAULT_LOADER_OPTIONS","video","VideoLoader","name","id","module","version","extensions","mimeTypes","parse","options","_typecheckVideoLoader"],"mappings":"AACA,OAAOA,UAAP,MAAuB,2BAAvB;AAIA,MAAMC,OAAO,GAAG,mBAAuB,WAAvB,aAAmD,QAAnE;AAEA,MAAMC,UAAU,GAAG,CAAC,KAAD,CAAnB;AACA,MAAMC,UAAU,GAAG,CAAC,WAAD,CAAnB;AAQA,MAAMC,sBAA0C,GAAG;AACjDC,EAAAA,KAAK,EAAE;AAD0C,CAAnD;AAIA,OAAO,MAAMC,WAAW,GAAG;AACzBC,EAAAA,IAAI,EAAE,OADmB;AAEzBC,EAAAA,EAAE,EAAE,OAFqB;AAGzBC,EAAAA,MAAM,EAAE,OAHiB;AAIzBC,EAAAA,OAAO,EAAET,OAJgB;AAKzBU,EAAAA,UAAU,EAAET,UALa;AAMzBU,EAAAA,SAAS,EAAET,UANc;AAQzBU,EAAAA,KAAK,EAAEb,UARkB;AAWzBc,EAAAA,OAAO,EAAEV;AAXgB,CAApB;AAcP,OAAO,MAAMW,qBAAuC,GAAGT,WAAhD","sourcesContent":["import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport parseVideo from './lib/parsers/parse-video';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nconst EXTENSIONS = ['mp4'];\nconst MIME_TYPES = ['video/mp4'];\n\n// Loads a platform-specific image type that can be used as input data to WebGL textures\n\nexport type VideoLoaderOptions = LoaderOptions & {\n video: {};\n};\n\nconst DEFAULT_LOADER_OPTIONS: VideoLoaderOptions = {\n video: {}\n};\n\nexport const VideoLoader = {\n name: 'Video',\n id: 'video',\n module: 'video',\n version: VERSION,\n extensions: EXTENSIONS,\n mimeTypes: MIME_TYPES,\n\n parse: parseVideo,\n\n // tests: arrayBuffer => Boolean(getBinaryImageMetadata(new DataView(arrayBuffer))),\n options: DEFAULT_LOADER_OPTIONS\n};\n\nexport const _typecheckVideoLoader: LoaderWithParser = VideoLoader;\n"],"file":"video-loader.js"}
1
+ {"version":3,"sources":["../../src/video-loader.ts"],"names":["parseVideo","VERSION","EXTENSIONS","MIME_TYPES","DEFAULT_LOADER_OPTIONS","video","VideoLoader","name","id","module","version","extensions","mimeTypes","parse","options","_typecheckVideoLoader"],"mappings":"AACA,OAAOA,UAAP,MAAuB,2BAAvB;AAIA,MAAMC,OAAO,GAAG,2BAAuB,WAAvB,qBAAmD,QAAnE;AAEA,MAAMC,UAAU,GAAG,CAAC,KAAD,CAAnB;AACA,MAAMC,UAAU,GAAG,CAAC,WAAD,CAAnB;AAQA,MAAMC,sBAA0C,GAAG;AACjDC,EAAAA,KAAK,EAAE;AAD0C,CAAnD;AAIA,OAAO,MAAMC,WAAW,GAAG;AACzBC,EAAAA,IAAI,EAAE,OADmB;AAEzBC,EAAAA,EAAE,EAAE,OAFqB;AAGzBC,EAAAA,MAAM,EAAE,OAHiB;AAIzBC,EAAAA,OAAO,EAAET,OAJgB;AAKzBU,EAAAA,UAAU,EAAET,UALa;AAMzBU,EAAAA,SAAS,EAAET,UANc;AAQzBU,EAAAA,KAAK,EAAEb,UARkB;AAWzBc,EAAAA,OAAO,EAAEV;AAXgB,CAApB;AAcP,OAAO,MAAMW,qBAAuC,GAAGT,WAAhD","sourcesContent":["import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';\nimport parseVideo from './lib/parsers/parse-video';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nconst EXTENSIONS = ['mp4'];\nconst MIME_TYPES = ['video/mp4'];\n\n// Loads a platform-specific image type that can be used as input data to WebGL textures\n\nexport type VideoLoaderOptions = LoaderOptions & {\n video: {};\n};\n\nconst DEFAULT_LOADER_OPTIONS: VideoLoaderOptions = {\n video: {}\n};\n\nexport const VideoLoader = {\n name: 'Video',\n id: 'video',\n module: 'video',\n version: VERSION,\n extensions: EXTENSIONS,\n mimeTypes: MIME_TYPES,\n\n parse: parseVideo,\n\n // tests: arrayBuffer => Boolean(getBinaryImageMetadata(new DataView(arrayBuffer))),\n options: DEFAULT_LOADER_OPTIONS\n};\n\nexport const _typecheckVideoLoader: LoaderWithParser = VideoLoader;\n"],"file":"video-loader.js"}
@@ -920,7 +920,7 @@ function NeuQuant() {
920
920
  function workerCode() {
921
921
  const self = this;
922
922
  try {
923
- self.onmessage = function (ev) {
923
+ globalThis.onmessage = function (ev) {
924
924
  const data = ev.data || {};
925
925
  let response;
926
926
  if (data.gifshot) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/video",
3
- "version": "3.1.8",
3
+ "version": "3.2.0-alpha.3",
4
4
  "description": "Framework-independent loaders and writers for video (MP4, WEBM, ...)",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -32,9 +32,9 @@
32
32
  "build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
33
33
  },
34
34
  "dependencies": {
35
- "@loaders.gl/loader-utils": "3.1.8",
36
- "@loaders.gl/worker-utils": "3.1.8",
35
+ "@loaders.gl/loader-utils": "3.2.0-alpha.3",
36
+ "@loaders.gl/worker-utils": "3.2.0-alpha.3",
37
37
  "gifshot": "^0.4.5"
38
38
  },
39
- "gitHead": "0ef07b4e9fc20f5a882224cf241c6fd1bad898d8"
39
+ "gitHead": "f0d4b801efeb7094283106352ee759eccfb21f10"
40
40
  }
@@ -907,7 +907,7 @@ function NeuQuant() {
907
907
  function workerCode() {
908
908
  const self = this;
909
909
  try {
910
- self.onmessage = function (ev) {
910
+ globalThis.onmessage = function (ev) {
911
911
  const data = ev.data || {};
912
912
  let response;
913
913
  if (data.gifshot) {