videomail-client 11.3.2 → 11.3.4
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/dist/cjs/index.cjs +12 -12
- package/dist/esm/index.d.ts +3 -10
- package/dist/esm/index.js +9 -9
- package/dist/esm/types/VideoExtension.d.ts +5 -0
- package/dist/esm/util/html/media/canPlayType.d.ts +2 -2
- package/dist/umd/index.js +13 -13
- package/package.json +1 -1
- package/dist/esm/types/VideoType.d.ts +0 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -10324,8 +10324,8 @@ var __webpack_exports__ = {};
|
|
|
10324
10324
|
"use strict";
|
|
10325
10325
|
__webpack_require__.r(__webpack_exports__);
|
|
10326
10326
|
__webpack_require__.d(__webpack_exports__, {
|
|
10327
|
-
|
|
10328
|
-
|
|
10327
|
+
VideoExtension: ()=>VideoExtension,
|
|
10328
|
+
VideomailClient: ()=>src_client
|
|
10329
10329
|
});
|
|
10330
10330
|
const constants = {
|
|
10331
10331
|
SITE_NAME_LABEL: "x-videomail-site-name",
|
|
@@ -10488,7 +10488,7 @@ var __webpack_exports__ = {};
|
|
|
10488
10488
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10489
10489
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10490
10490
|
var package_namespaceObject = {
|
|
10491
|
-
rE: "11.3.
|
|
10491
|
+
rE: "11.3.4"
|
|
10492
10492
|
};
|
|
10493
10493
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10494
10494
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -13624,7 +13624,7 @@ var __webpack_exports__ = {};
|
|
|
13624
13624
|
NAME,
|
|
13625
13625
|
VERSION
|
|
13626
13626
|
]);
|
|
13627
|
-
const
|
|
13627
|
+
const VideoExtension = {
|
|
13628
13628
|
WebM: "webm",
|
|
13629
13629
|
MP4: "mp4"
|
|
13630
13630
|
};
|
|
@@ -13644,7 +13644,7 @@ var __webpack_exports__ = {};
|
|
|
13644
13644
|
else obj[key] = value;
|
|
13645
13645
|
return obj;
|
|
13646
13646
|
}
|
|
13647
|
-
const FALLBACK_VIDEO_TYPE =
|
|
13647
|
+
const FALLBACK_VIDEO_TYPE = VideoExtension.MP4;
|
|
13648
13648
|
class Browser_Browser {
|
|
13649
13649
|
isIOS() {
|
|
13650
13650
|
return "iOS" === this.result.os.name;
|
|
@@ -13682,10 +13682,10 @@ var __webpack_exports__ = {};
|
|
|
13682
13682
|
}
|
|
13683
13683
|
getVideoType(video) {
|
|
13684
13684
|
if (!this.videoType) {
|
|
13685
|
-
if (media_canPlayType(video,
|
|
13686
|
-
else if (media_canPlayType(video,
|
|
13685
|
+
if (media_canPlayType(video, VideoExtension.MP4)) this.videoType = VideoExtension.MP4;
|
|
13686
|
+
else if (media_canPlayType(video, VideoExtension.WebM)) this.videoType = VideoExtension.WebM;
|
|
13687
13687
|
}
|
|
13688
|
-
if (this.videoType !==
|
|
13688
|
+
if (this.videoType !== VideoExtension.WebM && this.videoType !== VideoExtension.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
13689
13689
|
if ("" === this.videoType.trim()) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
13690
13690
|
return this.videoType;
|
|
13691
13691
|
}
|
|
@@ -17886,10 +17886,10 @@ var __webpack_exports__ = {};
|
|
|
17886
17886
|
}
|
|
17887
17887
|
}
|
|
17888
17888
|
setMp4Source(src, bustCache) {
|
|
17889
|
-
this.setVideoSource(
|
|
17889
|
+
this.setVideoSource(VideoExtension.MP4, src, bustCache);
|
|
17890
17890
|
}
|
|
17891
17891
|
setWebMSource(src, bustCache) {
|
|
17892
|
-
this.setVideoSource(
|
|
17892
|
+
this.setVideoSource(VideoExtension.WebM, src, bustCache);
|
|
17893
17893
|
}
|
|
17894
17894
|
getVideoType() {
|
|
17895
17895
|
if (!this.replayElement) return;
|
|
@@ -18820,10 +18820,10 @@ var __webpack_exports__ = {};
|
|
|
18820
18820
|
client_define_property(VideomailClient, "ENC_TYPE_FORM", constants["public"].ENC_TYPE_FORM);
|
|
18821
18821
|
const src_client = VideomailClient;
|
|
18822
18822
|
})();
|
|
18823
|
-
exports.
|
|
18823
|
+
exports.VideoExtension = __webpack_exports__.VideoExtension;
|
|
18824
18824
|
exports.VideomailClient = __webpack_exports__.VideomailClient;
|
|
18825
18825
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
18826
|
-
"
|
|
18826
|
+
"VideoExtension",
|
|
18827
18827
|
"VideomailClient"
|
|
18828
18828
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
18829
18829
|
Object.defineProperty(exports, '__esModule', {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -6,14 +6,7 @@ import { FullVideomailErrorData, VideomailErrorData } from "./types/error";
|
|
|
6
6
|
import VideomailEvents from "./types/events";
|
|
7
7
|
import { VideomailClientOptions } from "./types/options";
|
|
8
8
|
import RecordingStats from "./types/RecordingStats";
|
|
9
|
+
import { VideoExtension, VideoExtensionType } from "./types/VideoExtension";
|
|
9
10
|
import Videomail, { PartialVideomail } from "./types/Videomail";
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
export type { VideomailEvents };
|
|
13
|
-
export type { RecordingStats };
|
|
14
|
-
export type { VideomailClientOptions };
|
|
15
|
-
export { VideomailClient, VideoType };
|
|
16
|
-
export type { FullVideomailErrorData, PartialVideomail, VideomailErrorData };
|
|
17
|
-
export type { Command, CommandArgs };
|
|
18
|
-
export type { DeliveryRecord };
|
|
19
|
-
export type { EmailAddress, EmailAddresses };
|
|
11
|
+
export type { Command, CommandArgs, DeliveryRecord, EmailAddress, EmailAddresses, FullVideomailErrorData, PartialVideomail, RecordingStats, VideoExtensionType, Videomail, VideomailClientOptions, VideomailErrorData, VideomailEvents, };
|
|
12
|
+
export { VideoExtension, VideomailClient };
|
package/dist/esm/index.js
CHANGED
|
@@ -3454,9 +3454,9 @@ const constants = {
|
|
|
3454
3454
|
}
|
|
3455
3455
|
};
|
|
3456
3456
|
var package_namespaceObject = {
|
|
3457
|
-
rE: "11.3.
|
|
3457
|
+
rE: "11.3.4"
|
|
3458
3458
|
};
|
|
3459
|
-
const
|
|
3459
|
+
const VideoExtension = {
|
|
3460
3460
|
WebM: "webm",
|
|
3461
3461
|
MP4: "mp4"
|
|
3462
3462
|
};
|
|
@@ -3466,7 +3466,7 @@ function canPlayType_canPlayType(video, type) {
|
|
|
3466
3466
|
return canPlayType;
|
|
3467
3467
|
}
|
|
3468
3468
|
const media_canPlayType = canPlayType_canPlayType;
|
|
3469
|
-
const FALLBACK_VIDEO_TYPE =
|
|
3469
|
+
const FALLBACK_VIDEO_TYPE = VideoExtension.MP4;
|
|
3470
3470
|
class Browser {
|
|
3471
3471
|
options;
|
|
3472
3472
|
result;
|
|
@@ -3513,10 +3513,10 @@ class Browser {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
getVideoType(video) {
|
|
3515
3515
|
if (!this.videoType) {
|
|
3516
|
-
if (media_canPlayType(video,
|
|
3517
|
-
else if (media_canPlayType(video,
|
|
3516
|
+
if (media_canPlayType(video, VideoExtension.MP4)) this.videoType = VideoExtension.MP4;
|
|
3517
|
+
else if (media_canPlayType(video, VideoExtension.WebM)) this.videoType = VideoExtension.WebM;
|
|
3518
3518
|
}
|
|
3519
|
-
if (this.videoType !==
|
|
3519
|
+
if (this.videoType !== VideoExtension.WebM && this.videoType !== VideoExtension.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
3520
3520
|
if ("" === this.videoType.trim()) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
3521
3521
|
return this.videoType;
|
|
3522
3522
|
}
|
|
@@ -7307,10 +7307,10 @@ class Replay extends util_Despot {
|
|
|
7307
7307
|
}
|
|
7308
7308
|
}
|
|
7309
7309
|
setMp4Source(src, bustCache) {
|
|
7310
|
-
this.setVideoSource(
|
|
7310
|
+
this.setVideoSource(VideoExtension.MP4, src, bustCache);
|
|
7311
7311
|
}
|
|
7312
7312
|
setWebMSource(src, bustCache) {
|
|
7313
|
-
this.setVideoSource(
|
|
7313
|
+
this.setVideoSource(VideoExtension.WebM, src, bustCache);
|
|
7314
7314
|
}
|
|
7315
7315
|
getVideoType() {
|
|
7316
7316
|
if (!this.replayElement) return;
|
|
@@ -8198,4 +8198,4 @@ class VideomailClient extends util_Despot {
|
|
|
8198
8198
|
}
|
|
8199
8199
|
}
|
|
8200
8200
|
const client = VideomailClient;
|
|
8201
|
-
export {
|
|
8201
|
+
export { VideoExtension, client as VideomailClient };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function canPlayType(video: HTMLVideoElement, type:
|
|
1
|
+
import { VideoExtensionType } from "../../../types/VideoExtension";
|
|
2
|
+
declare function canPlayType(video: HTMLVideoElement, type: VideoExtensionType): false | "maybe" | "probably";
|
|
3
3
|
export default canPlayType;
|
package/dist/umd/index.js
CHANGED
|
@@ -10330,8 +10330,8 @@
|
|
|
10330
10330
|
"use strict";
|
|
10331
10331
|
__webpack_require__.r(__webpack_exports__);
|
|
10332
10332
|
__webpack_require__.d(__webpack_exports__, {
|
|
10333
|
-
|
|
10334
|
-
|
|
10333
|
+
VideoExtension: ()=>VideoExtension,
|
|
10334
|
+
VideomailClient: ()=>src_client
|
|
10335
10335
|
});
|
|
10336
10336
|
const constants = {
|
|
10337
10337
|
SITE_NAME_LABEL: "x-videomail-site-name",
|
|
@@ -10494,7 +10494,7 @@
|
|
|
10494
10494
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10495
10495
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10496
10496
|
var package_namespaceObject = {
|
|
10497
|
-
rE: "11.3.
|
|
10497
|
+
rE: "11.3.4"
|
|
10498
10498
|
};
|
|
10499
10499
|
var defined = __webpack_require__("./node_modules/defined/index.js");
|
|
10500
10500
|
var defined_default = /*#__PURE__*/ __webpack_require__.n(defined);
|
|
@@ -13630,7 +13630,7 @@
|
|
|
13630
13630
|
NAME,
|
|
13631
13631
|
VERSION
|
|
13632
13632
|
]);
|
|
13633
|
-
const
|
|
13633
|
+
const VideoExtension = {
|
|
13634
13634
|
WebM: "webm",
|
|
13635
13635
|
MP4: "mp4"
|
|
13636
13636
|
};
|
|
@@ -13640,8 +13640,8 @@
|
|
|
13640
13640
|
return canPlayType;
|
|
13641
13641
|
}
|
|
13642
13642
|
const media_canPlayType = canPlayType_canPlayType;
|
|
13643
|
-
const FALLBACK_VIDEO_TYPE =
|
|
13644
|
-
class
|
|
13643
|
+
const FALLBACK_VIDEO_TYPE = VideoExtension.MP4;
|
|
13644
|
+
class Browser_Browser {
|
|
13645
13645
|
options;
|
|
13646
13646
|
result;
|
|
13647
13647
|
videoType;
|
|
@@ -13687,10 +13687,10 @@
|
|
|
13687
13687
|
}
|
|
13688
13688
|
getVideoType(video) {
|
|
13689
13689
|
if (!this.videoType) {
|
|
13690
|
-
if (media_canPlayType(video,
|
|
13691
|
-
else if (media_canPlayType(video,
|
|
13690
|
+
if (media_canPlayType(video, VideoExtension.MP4)) this.videoType = VideoExtension.MP4;
|
|
13691
|
+
else if (media_canPlayType(video, VideoExtension.WebM)) this.videoType = VideoExtension.WebM;
|
|
13692
13692
|
}
|
|
13693
|
-
if (this.videoType !==
|
|
13693
|
+
if (this.videoType !== VideoExtension.WebM && this.videoType !== VideoExtension.MP4) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
13694
13694
|
if ("" === this.videoType.trim()) this.videoType = FALLBACK_VIDEO_TYPE;
|
|
13695
13695
|
return this.videoType;
|
|
13696
13696
|
}
|
|
@@ -13715,10 +13715,10 @@
|
|
|
13715
13715
|
};
|
|
13716
13716
|
}
|
|
13717
13717
|
}
|
|
13718
|
-
const
|
|
13718
|
+
const Browser = Browser_Browser;
|
|
13719
13719
|
let getBrowser_browser;
|
|
13720
13720
|
function getBrowser(localOptions) {
|
|
13721
|
-
if (!getBrowser_browser) getBrowser_browser = new
|
|
13721
|
+
if (!getBrowser_browser) getBrowser_browser = new Browser(localOptions);
|
|
13722
13722
|
return getBrowser_browser;
|
|
13723
13723
|
}
|
|
13724
13724
|
const util_getBrowser = getBrowser;
|
|
@@ -17674,10 +17674,10 @@
|
|
|
17674
17674
|
}
|
|
17675
17675
|
}
|
|
17676
17676
|
setMp4Source(src, bustCache) {
|
|
17677
|
-
this.setVideoSource(
|
|
17677
|
+
this.setVideoSource(VideoExtension.MP4, src, bustCache);
|
|
17678
17678
|
}
|
|
17679
17679
|
setWebMSource(src, bustCache) {
|
|
17680
|
-
this.setVideoSource(
|
|
17680
|
+
this.setVideoSource(VideoExtension.WebM, src, bustCache);
|
|
17681
17681
|
}
|
|
17682
17682
|
getVideoType() {
|
|
17683
17683
|
if (!this.replayElement) return;
|
package/package.json
CHANGED