@breakside/jskit 2023.35.0 → 2023.44.0

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.
Files changed (66) hide show
  1. package/Frameworks/DOM.jsframework/Info.json +2 -2
  2. package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
  3. package/Frameworks/FontKit.jsframework/Info.json +2 -2
  4. package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
  5. package/Frameworks/Foundation.jsframework/Info.json +2 -2
  6. package/Frameworks/Foundation.jsframework/JS/JSHTMLHTTPClient.js +1 -1
  7. package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
  8. package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
  9. package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
  10. package/Info.json +2 -2
  11. package/Node/io.breakside.jskit-bundle.js +2 -2
  12. package/Root/Frameworks/APIKit/Info.yaml +1 -1
  13. package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
  14. package/Root/Frameworks/AuthKit/Info.yaml +1 -1
  15. package/Root/Frameworks/CSSOM/Info.yaml +1 -1
  16. package/Root/Frameworks/ChartKit/Info.yaml +1 -1
  17. package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
  18. package/Root/Frameworks/DBKit/Info.yaml +1 -1
  19. package/Root/Frameworks/DOM/Info.yaml +1 -1
  20. package/Root/Frameworks/Dispatch/Info.yaml +1 -1
  21. package/Root/Frameworks/FontKit/Info.yaml +1 -1
  22. package/Root/Frameworks/Foundation/Info.yaml +1 -1
  23. package/Root/Frameworks/Foundation/JSHTMLHTTPClient.js +1 -1
  24. package/Root/Frameworks/ImageKit/Info.yaml +1 -1
  25. package/Root/Frameworks/MediaKit/Info.yaml +1 -1
  26. package/Root/Frameworks/MediaKit/MKAsset+HTML.js +80 -0
  27. package/Root/Frameworks/MediaKit/MKAsset.js +12 -0
  28. package/Root/Frameworks/MediaKit/MKRemoteAsset.js +39 -0
  29. package/Root/Frameworks/MediaKit/MediaKit+HTML.js +2 -1
  30. package/Root/Frameworks/MediaKit/MediaKit.js +17 -1
  31. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTime.js +216 -0
  32. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeAtom.js +157 -0
  33. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeFileType.js +45 -0
  34. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMedia.js +127 -0
  35. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMediaHandler.js +68 -0
  36. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMediaHeader.js +50 -0
  37. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMediaInformation.js +67 -0
  38. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMeta.js +19 -0
  39. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMovie.js +78 -0
  40. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMovieHeader.js +62 -0
  41. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeSampleDescription.js +72 -0
  42. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeSampleTable.js +84 -0
  43. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTimeToSample.js +57 -0
  44. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTrack.js +133 -0
  45. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTrackHeader.js +82 -0
  46. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeUserData.js +19 -0
  47. package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
  48. package/Root/Frameworks/MediaKitUI/MKVideoView+HTML.js +77 -0
  49. package/Root/Frameworks/MediaKitUI/MKVideoView.js +19 -1
  50. package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
  51. package/Root/Frameworks/PDFKit/Info.yaml +1 -1
  52. package/Root/Frameworks/QRKit/Info.yaml +1 -1
  53. package/Root/Frameworks/SearchKit/Info.yaml +1 -1
  54. package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
  55. package/Root/Frameworks/ServerKit/Info.yaml +1 -1
  56. package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
  57. package/Root/Frameworks/TestKit/Info.yaml +1 -1
  58. package/Root/Frameworks/UIKit/Info.yaml +1 -1
  59. package/Root/Frameworks/UIKit/UIButton.js +29 -10
  60. package/Root/Frameworks/UIKit/UIListView.js +3 -3
  61. package/Root/Frameworks/UIKit/UIMenuView.js +6 -0
  62. package/Root/Frameworks/UIKit/UIPopupButton.js +22 -3
  63. package/Root/Frameworks/UIKit/UISlider.js +4 -2
  64. package/Root/Frameworks/UIKit/UIStackView.js +43 -0
  65. package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
  66. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.DOM",
4
- "JSBundleVersion": "2023.35.0",
4
+ "JSBundleVersion": "2023.44.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
@@ -9,5 +9,5 @@
9
9
  "node": "DOM+Node.js"
10
10
  },
11
11
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
12
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
12
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
13
13
  }
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.DOM",
6
- "JSBundleVersion": "2023.35.0",
6
+ "JSBundleVersion": "2023.44.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.DOM'] = {
11
11
  "node": "DOM+Node.js"
12
12
  },
13
13
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
14
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
14
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
15
15
  },
16
16
  "Resources": [],
17
17
  "ResourceLookup": {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.FontKit",
4
- "JSBundleVersion": "2023.35.0",
4
+ "JSBundleVersion": "2023.44.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
8
8
  "html": "FontKit+HTML.js"
9
9
  },
10
10
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
11
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
11
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
12
12
  }
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.JSKit.FontKit'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.FontKit",
6
- "JSBundleVersion": "2023.35.0",
6
+ "JSBundleVersion": "2023.44.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
10
10
  "html": "FontKit+HTML.js"
11
11
  },
12
12
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
13
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
13
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
14
14
  },
15
15
  "Resources": [],
16
16
  "ResourceLookup": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.Foundation",
4
- "JSBundleVersion": "2023.35.0",
4
+ "JSBundleVersion": "2023.44.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
@@ -9,5 +9,5 @@
9
9
  "node": "Foundation+Node.js"
10
10
  },
11
11
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
12
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
12
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
13
13
  }
@@ -68,7 +68,7 @@ JSClass("JSHTMLHTTPClient", JSObject, {
68
68
  }
69
69
  if (callbacks.uploadProgress){
70
70
  xmlRequest.upload.addEventListener('progress', function(e){
71
- callbacks.progress.call(target, e.loaded, e.lengthComputable ? e.total : undefined);
71
+ callbacks.uploadProgress.call(target, e.loaded, e.lengthComputable ? e.total : undefined);
72
72
  });
73
73
  }
74
74
 
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.Foundation",
6
- "JSBundleVersion": "2023.35.0",
6
+ "JSBundleVersion": "2023.44.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.Foundation'] = {
11
11
  "node": "Foundation+Node.js"
12
12
  },
13
13
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
14
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
14
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
15
15
  },
16
16
  "Resources": [
17
17
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "JSBundleType": "framework",
3
3
  "JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
4
- "JSBundleVersion": "2023.35.0",
4
+ "JSBundleVersion": "2023.44.0",
5
5
  "JSDevelopmentLanguage": "en",
6
6
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
7
7
  "JSBundleEnvironments": {
@@ -9,5 +9,5 @@
9
9
  "node": "SecurityKit+Node.js"
10
10
  },
11
11
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
12
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
12
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
13
13
  }
@@ -3,7 +3,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "framework",
5
5
  "JSBundleIdentifier": "io.breakside.JSKit.SecurityKit",
6
- "JSBundleVersion": "2023.35.0",
6
+ "JSBundleVersion": "2023.44.0",
7
7
  "JSDevelopmentLanguage": "en",
8
8
  "JSCopyright": "Copyright © 2020 Breakside Inc.",
9
9
  "JSBundleEnvironments": {
@@ -11,7 +11,7 @@ JSBundle.bundles['io.breakside.JSKit.SecurityKit'] = {
11
11
  "node": "SecurityKit+Node.js"
12
12
  },
13
13
  "JSLicenseNotice": "Licensed under the Breakside Public License, Version 1.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nIf a copy of the License was not distributed with this file, you may\nobtain a copy at\n\n http://breakside.io/licenses/LICENSE-1.0.txt\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
14
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
14
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
15
15
  },
16
16
  "Resources": [],
17
17
  "ResourceLookup": {
package/Info.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "JSBundleType": "node",
3
3
  "JSBundleIdentifier": "io.breakside.jskit",
4
- "JSBundleVersion": "2023.35.0",
4
+ "JSBundleVersion": "2023.44.0",
5
5
  "JSExecutableName": "jskit",
6
6
  "NPMOrganization": "breakside",
7
7
  "JSResources": [
8
8
  "Tests/HTMLTestRunner.js",
9
9
  "Tests/NodeTestRunner.js"
10
10
  ],
11
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
11
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
12
12
  }
@@ -3,14 +3,14 @@ JSBundle.bundles['io.breakside.jskit'] = {
3
3
  "Info": {
4
4
  "JSBundleType": "node",
5
5
  "JSBundleIdentifier": "io.breakside.jskit",
6
- "JSBundleVersion": "2023.35.0",
6
+ "JSBundleVersion": "2023.44.0",
7
7
  "JSExecutableName": "jskit",
8
8
  "NPMOrganization": "breakside",
9
9
  "JSResources": [
10
10
  "Tests/HTMLTestRunner.js",
11
11
  "Tests/NodeTestRunner.js"
12
12
  ],
13
- "GitRevision": "eb8ba7f281d9ee19cfabe41272b9d0d7c8ff2a1e"
13
+ "GitRevision": "168523844edeb7aa5da11b7b21a1bd3691a9315b"
14
14
  },
15
15
  "Resources": [
16
16
  {
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.APIKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSIncludeDirectories:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.APIKitTesting
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.AuthKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.CSSOM
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ChartKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2021 Breakside Inc.
6
6
  # JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ConferenceKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.DBKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.DOM
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.Dispatch
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSCopyright: Copyright © 2020 Breakside Inc.
5
5
  JSBundleEnvironments:
6
6
  html: Dispatch+HTML.js
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.FontKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.Foundation
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -68,7 +68,7 @@ JSClass("JSHTMLHTTPClient", JSObject, {
68
68
  }
69
69
  if (callbacks.uploadProgress){
70
70
  xmlRequest.upload.addEventListener('progress', function(e){
71
- callbacks.progress.call(target, e.loaded, e.lengthComputable ? e.total : undefined);
71
+ callbacks.uploadProgress.call(target, e.loaded, e.lengthComputable ? e.total : undefined);
72
72
  });
73
73
  }
74
74
 
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.ImageKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.MediaKit
3
- JSBundleVersion: 2023.35.0
3
+ JSBundleVersion: 2023.44.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -0,0 +1,80 @@
1
+ // Copyright 2020 Breakside Inc.
2
+ //
3
+ // Licensed under the Breakside Public License, Version 1.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // If a copy of the License was not distributed with this file, you may
6
+ // obtain a copy at
7
+ //
8
+ // http://breakside.io/licenses/LICENSE-1.0.txt
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+
16
+ // #import "MKAsset.js"
17
+ // #import "MKRemoteAsset.js"
18
+ // #import "MKHTMLStream.js"
19
+ /* global document */
20
+ 'use strict';
21
+
22
+ (function(){
23
+
24
+ var logger = JSLog("medikit", "asset");
25
+
26
+ MKAsset.definePropertiesFromExtensions({
27
+
28
+ imageAtPlaybackTime: function(playbackTime, completion, target){
29
+ if (completion === undefined){
30
+ completion = Promise.completion(Promise.resolveNonNull);
31
+ }
32
+ var video = document.createElement("video");
33
+ video.playsInline = true;
34
+ var loadmetadata = function(){
35
+ video.currentTime = playbackTime;
36
+ };
37
+ var canplay = function(){
38
+ // FIXME: would be nice to not have an arbitrary delay of 30ms, and
39
+ // instead key off of an event when we know the poster can be captured
40
+ JSTimer.scheduledTimerWithInterval(JSTimeInterval.milliseconds(30), capture);
41
+ };
42
+ var capture = function(){
43
+ var canvas = document.createElement("canvas");
44
+ canvas.width = video.videoWidth;
45
+ canvas.height = video.videoHeight;
46
+ var context = canvas.getContext("2d");
47
+ context.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
48
+ canvas.toBlob(function(blob){
49
+ var reader = new FileReader();
50
+ reader.addEventListener("loadend", function(){
51
+ video.removeEventListener("loadmetadata", loadmetadata);
52
+ video.removeEventListener("canplay", canplay);
53
+ if (reader.error){
54
+ logger.error("Error reading blob: %{error}", reader.error);
55
+ completion.call(target, null);
56
+ return;
57
+ }
58
+ var data = JSData.initWithBuffer(reader.result);
59
+ var image = JSImage.initWithData(data);
60
+ completion.call(target, image);
61
+ });
62
+ reader.readAsArrayBuffer(blob);
63
+ }, "image/jpeg");
64
+ };
65
+ video.addEventListener("loadmetadata", loadmetadata);
66
+ video.addEventListener("canplay", canplay);
67
+ if (this.isKindOfClass(MKHTMLStream)){
68
+ video.srcObject = this.htmlMediaStream;
69
+ }else if (this.isKindOfClass(MKRemoteAsset)){
70
+ video.src = this.url.encodedString;
71
+ }else{
72
+ logger.warning("unsupported asset class: %{public}", this.$class.className);
73
+ JSRunLoop.main.schedule(completion, target, null);
74
+ }
75
+ return completion.promise;
76
+ },
77
+
78
+ });
79
+
80
+ })();
@@ -18,4 +18,16 @@
18
18
 
19
19
  JSClass("MKAsset", JSObject, {
20
20
 
21
+ isEqual: function(other){
22
+ return false;
23
+ },
24
+
25
+ imageAtPlaybackTime: function(playbackTime, completion, target){
26
+ if (completion === undefined){
27
+ completion = Promise.completion(Promise.resolveNonNull);
28
+ }
29
+ JSRunLoop.main.schedule(completion, target, null);
30
+ return completion.promise;
31
+ }
32
+
21
33
  });
@@ -0,0 +1,39 @@
1
+ // Copyright 2023 Breakside Inc.
2
+ //
3
+ // Licensed under the Breakside Public License, Version 1.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // If a copy of the License was not distributed with this file, you may
6
+ // obtain a copy at
7
+ //
8
+ // http://breakside.io/licenses/LICENSE-1.0.txt
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+
16
+ // #import "MKAsset.js"
17
+ 'use strict';
18
+
19
+ JSClass("MKRemoteAsset", MKAsset, {
20
+
21
+ url: null,
22
+ contentType: null,
23
+
24
+ initWithURL: function(url, contentType){
25
+ this.url = url;
26
+ this.contentType = contentType;
27
+ },
28
+
29
+ isEqual: function(other){
30
+ if (other === null || other === undefined){
31
+ return false;
32
+ }
33
+ if (!other.isKindOfClass(MKRemoteAsset)){
34
+ return false;
35
+ }
36
+ return this.url.isEqual(other.url);
37
+ }
38
+
39
+ });
@@ -14,4 +14,5 @@
14
14
  // limitations under the License.
15
15
 
16
16
  // #import "MKHTMLDevice.js"
17
- // #import "MKHTMLStream.js"
17
+ // #import "MKHTMLStream.js"
18
+ // #import "MKAsset+HTML.js"
@@ -15,4 +15,20 @@
15
15
 
16
16
  // #import "MKDevice.js"
17
17
  // #import "MKAsset.js"
18
- // #import "MKStream.js"
18
+ // #import "MKStream.js"
19
+ // #import "MKRemoteAsset.js"
20
+
21
+ // #import "MKQuickTimeAtom.js"
22
+ // #import "MKQuickTimeFileType.js"
23
+ // #import "MKQuickTimeMedia.js"
24
+ // #import "MKQuickTimeMediaHandler.js"
25
+ // #import "MKQuickTimeMediaHeader.js"
26
+ // #import "MKQuickTimeMediaInformation.js"
27
+ // #import "MKQuickTimeMovie.js"
28
+ // #import "MKQuickTimeMovieHeader.js"
29
+ // #import "MKQuickTimeSampleDescription.js"
30
+ // #import "MKQuickTimeSampleTable.js"
31
+ // #import "MKQuickTimeTimeToSample.js"
32
+ // #import "MKQuickTimeTrack.js"
33
+ // #import "MKQuickTimeTrackHeader.js"
34
+ // #import "MKQuickTime.js"