@bigbinary/neeto-media-recorder 1.0.6 → 1.0.8

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": "@bigbinary/neeto-media-recorder",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "A package to simplify the media capturing process",
5
5
  "repository": "git@github.com:bigbinary/neeto-media-recorder.git",
6
6
  "license": "MIT",
@@ -10,8 +10,9 @@
10
10
  "doNotLeaveThePage": "Don't close the tab or leave the page.",
11
11
  "inProgress": "Recording in progress.",
12
12
  "permissionDeniedMessage": "Permission denied by the browser. To continue, please click 'Record,' select the screen, and grant permission for the audio device.",
13
- "preparingVideo": "Don't leave this page. Please wait while the video is being uploaded",
14
- "copyToClipboard": "Copy recording public URL",
13
+ "preparingVideo": "Don't leave this page. Please wait while the video is being uploaded.",
14
+ "copyToClipboard": "Share",
15
+ "downloadIfUploadFails": "Download recording (webm)",
15
16
  "startsIn": "Get ready, the recording will begin in...",
16
17
  "grantPermissionMessage": "Select the screen, and grant permission for the audio device.",
17
18
  "clickToStartRecording": "Click on the 'Record' button to start the recording.",
@@ -27,7 +28,8 @@
27
28
  "discardConfirmation": {
28
29
  "title": "Discard recording?",
29
30
  "message": "You are discarding the current recording. This can't be undone."
30
- }
31
+ },
32
+ "downloadWebm": "If uploading takes too long, you can download the recording in webm format"
31
33
  },
32
34
  "unsupportedBrowser": "Unfortunately, this feature is unavailable because the current browser does not support screen capturing."
33
35
  }
package/utils.js CHANGED
@@ -3,8 +3,9 @@ var sleep = function sleep(delay) {
3
3
  return setTimeout(resolve, delay);
4
4
  });
5
5
  };
6
- var generatePublicUrl = function generatePublicUrl(id) {
7
- return "".concat(window.location.origin, "/watch/").concat(id);
6
+ var generatePublicUrl = function generatePublicUrl(recordingId) {
7
+ var baseURL = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.origin;
8
+ return "".concat(baseURL, "/watch/").concat(recordingId);
8
9
  };
9
10
 
10
11
  export { generatePublicUrl, sleep };
package/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["src/utils/index.js"],"sourcesContent":["export const sleep = delay =>\n new Promise(resolve => setTimeout(resolve, delay));\n\nexport const generatePublicUrl = id => `${window.location.origin}/watch/${id}`;\n"],"names":["sleep","delay","Promise","resolve","setTimeout","generatePublicUrl","id","concat","window","location","origin"],"mappings":"IAAaA,KAAK,GAAG,SAARA,KAAKA,CAAGC,KAAK,EAAA;AAAA,EAAA,OACxB,IAAIC,OAAO,CAAC,UAAAC,OAAO,EAAA;AAAA,IAAA,OAAIC,UAAU,CAACD,OAAO,EAAEF,KAAK,CAAC,CAAA;GAAC,CAAA,CAAA;AAAA,EAAA;IAEvCI,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAGC,EAAE,EAAA;EAAA,OAAAC,EAAAA,CAAAA,MAAA,CAAOC,MAAM,CAACC,QAAQ,CAACC,MAAM,EAAA,SAAA,CAAA,CAAAH,MAAA,CAAUD,EAAE,CAAA,CAAA;AAAA;;;;"}
1
+ {"version":3,"file":"utils.js","sources":["src/utils/index.js"],"sourcesContent":["export const sleep = delay =>\n new Promise(resolve => setTimeout(resolve, delay));\n\nexport const generatePublicUrl = (\n recordingId,\n baseURL = window.location.origin\n) => `${baseURL}/watch/${recordingId}`;\n"],"names":["sleep","delay","Promise","resolve","setTimeout","generatePublicUrl","recordingId","baseURL","arguments","length","undefined","window","location","origin","concat"],"mappings":"IAAaA,KAAK,GAAG,SAARA,KAAKA,CAAGC,KAAK,EAAA;AAAA,EAAA,OACxB,IAAIC,OAAO,CAAC,UAAAC,OAAO,EAAA;AAAA,IAAA,OAAIC,UAAU,CAACD,OAAO,EAAEF,KAAK,CAAC,CAAA;GAAC,CAAA,CAAA;AAAA,EAAA;IAEvCI,iBAAiB,GAAG,SAApBA,iBAAiBA,CAC5BC,WAAW,EAAA;AAAA,EAAA,IACXC,OAAO,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,CAAA,CAAA,CAAA,KAAAE,SAAA,GAAAF,SAAA,CAAGG,CAAAA,CAAAA,GAAAA,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAA;AAAA,EAAA,OAAA,EAAA,CAAAC,MAAA,CAC1BP,OAAO,EAAAO,SAAAA,CAAAA,CAAAA,MAAA,CAAUR,WAAW,CAAA,CAAA;AAAA;;;;"}