@breakside/jskit 2023.40.0 → 2023.48.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 (59) 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/io.breakside.JSKit.Foundation-bundle.js +2 -2
  7. package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
  8. package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
  9. package/Info.json +2 -2
  10. package/Node/io.breakside.jskit-bundle.js +2 -2
  11. package/Root/Frameworks/APIKit/Info.yaml +1 -1
  12. package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
  13. package/Root/Frameworks/AuthKit/Info.yaml +1 -1
  14. package/Root/Frameworks/CSSOM/Info.yaml +1 -1
  15. package/Root/Frameworks/ChartKit/Info.yaml +1 -1
  16. package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
  17. package/Root/Frameworks/DBKit/Info.yaml +1 -1
  18. package/Root/Frameworks/DOM/Info.yaml +1 -1
  19. package/Root/Frameworks/Dispatch/Info.yaml +1 -1
  20. package/Root/Frameworks/FontKit/Info.yaml +1 -1
  21. package/Root/Frameworks/Foundation/Info.yaml +1 -1
  22. package/Root/Frameworks/ImageKit/Info.yaml +1 -1
  23. package/Root/Frameworks/MediaKit/Info.yaml +1 -1
  24. package/Root/Frameworks/MediaKit/MediaKit.js +16 -1
  25. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTime.js +216 -0
  26. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeAtom.js +157 -0
  27. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeFileType.js +45 -0
  28. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMedia.js +127 -0
  29. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMediaHandler.js +68 -0
  30. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMediaHeader.js +50 -0
  31. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMediaInformation.js +67 -0
  32. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMeta.js +19 -0
  33. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMovie.js +78 -0
  34. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeMovieHeader.js +62 -0
  35. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeSampleDescription.js +72 -0
  36. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeSampleTable.js +84 -0
  37. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTimeToSample.js +57 -0
  38. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTrack.js +133 -0
  39. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeTrackHeader.js +82 -0
  40. package/Root/Frameworks/MediaKit/QuickTime/MKQuickTimeUserData.js +19 -0
  41. package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
  42. package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
  43. package/Root/Frameworks/PDFKit/Info.yaml +1 -1
  44. package/Root/Frameworks/QRKit/Info.yaml +1 -1
  45. package/Root/Frameworks/SearchKit/Info.yaml +1 -1
  46. package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
  47. package/Root/Frameworks/ServerKit/Info.yaml +1 -1
  48. package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
  49. package/Root/Frameworks/TestKit/Info.yaml +1 -1
  50. package/Root/Frameworks/UIKit/Info.yaml +1 -1
  51. package/Root/Frameworks/UIKit/UIButton.js +29 -10
  52. package/Root/Frameworks/UIKit/UIColorPanel.js +1 -4
  53. package/Root/Frameworks/UIKit/UIDisplayServer.js +3 -0
  54. package/Root/Frameworks/UIKit/UIMenuView.js +6 -0
  55. package/Root/Frameworks/UIKit/UIPopupButton.js +1 -1
  56. package/Root/Frameworks/UIKit/UIStackView.js +43 -0
  57. package/Root/Frameworks/UIKit/UITextField.js +1 -0
  58. package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
  59. 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.40.0",
4
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
12
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
6
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
14
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
4
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
11
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
6
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
13
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
4
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
12
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
13
13
  }
@@ -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.40.0",
6
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
14
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
4
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
12
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
6
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
14
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
4
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
11
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0",
6
+ "JSBundleVersion": "2023.48.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": "7a5657f2af17a4f47b589fd84ac50fd7f40e0294"
13
+ "GitRevision": "d86a57449cab2f148cd0f574c74254deaa92d34a"
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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.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.ImageKit
3
- JSBundleVersion: 2023.40.0
3
+ JSBundleVersion: 2023.48.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.40.0
3
+ JSBundleVersion: 2023.48.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSBundleEnvironments:
@@ -16,4 +16,19 @@
16
16
  // #import "MKDevice.js"
17
17
  // #import "MKAsset.js"
18
18
  // #import "MKStream.js"
19
- // #import "MKRemoteAsset.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"
@@ -0,0 +1,216 @@
1
+ // #import "MKQuickTimeAtom.js"
2
+ // #import "MKQuickTimeFileType.js"
3
+ // #import "MKQuickTimeMovie.js"
4
+ "use strict";
5
+
6
+ (function(){
7
+
8
+ var logger = JSLog("medikit", "quicktime");
9
+
10
+ JSClass("MKQuickTime", MKQuickTimeAtom, {
11
+
12
+ initWithData: function(data){
13
+ this.atoms = [];
14
+ this.data = data;
15
+ this.dataView = data.dataView();
16
+ this.registerAtomClass(MKQuickTimeFileType);
17
+ this.registerAtomClass(MKQuickTimeMovie);
18
+ this.readAtoms();
19
+ },
20
+
21
+ duration: JSReadOnlyProperty(),
22
+
23
+ getDuration: function(){
24
+ var movie = this.movie;
25
+ if (movie === null){
26
+ return -1;
27
+ }
28
+ var header = movie.movieHeader;
29
+ if (header === null){
30
+ return -1;
31
+ }
32
+ return header.duration / header.timeScale;
33
+ },
34
+
35
+ posterTime: JSReadOnlyProperty(),
36
+
37
+ getPosterTime: function(){
38
+ var movie = this.movie;
39
+ if (movie === null){
40
+ return 0;
41
+ }
42
+ var header = movie.movieHeader;
43
+ if (header === null){
44
+ return 0;
45
+ }
46
+ return header.posterTime / header.timeScale;
47
+ },
48
+
49
+ fileType: JSReadOnlyProperty(),
50
+
51
+ getFileType: function(){
52
+ return this.atomOfType(MKQuickTimeAtom.Type.ftyp);
53
+ },
54
+
55
+ movie: JSReadOnlyProperty(),
56
+
57
+ getMovie: function(){
58
+ return this.atomOfType(MKQuickTimeAtom.Type.moov);
59
+ },
60
+
61
+ dictionaryRepresentation: function(){
62
+ return {
63
+ };
64
+ },
65
+
66
+ videoResolutions: JSReadOnlyProperty(),
67
+
68
+ getVideoResolutions: function(){
69
+ var resolutions = [];
70
+ var movie = this.movie;
71
+ if (movie !== null){
72
+ var videoTracks = movie.videoTracks;
73
+ var i, l;
74
+ var track;
75
+ var resolution;
76
+ for (i = 0, l = videoTracks.length; i < l; ++i){
77
+ track = videoTracks[i];
78
+ resolution = track.videoResolution;
79
+ if (resolution !== null){
80
+ resolutions.push(resolution);
81
+ }
82
+ }
83
+ }
84
+ return resolutions;
85
+ },
86
+
87
+ videoTracks: JSReadOnlyProperty(),
88
+
89
+ getVideoTracks: function(){
90
+ var movie = this.movie;
91
+ if (movie === null){
92
+ return [];
93
+ }
94
+ return movie.videoTracks;
95
+ },
96
+
97
+ audioTracks: JSReadOnlyProperty(),
98
+
99
+ getAudioTracks: function(){
100
+ var movie = this.movie;
101
+ if (movie === null){
102
+ return [];
103
+ }
104
+ return movie.audioTracks;
105
+ },
106
+
107
+ videoFrameRates: JSReadOnlyProperty(),
108
+
109
+ getVideoFrameRates: function(){
110
+ var movie = this.movie;
111
+ if (movie === null){
112
+ return [];
113
+ }
114
+ var tracks = movie.videoTracks;
115
+ var i, l;
116
+ var rates = [];
117
+ for (i = 0, l = tracks.length; i < l; ++i){
118
+ rates = rates.concat(tracks[i].sampleRates);
119
+ }
120
+ return rates;
121
+ },
122
+
123
+ audioSampleRates: JSReadOnlyProperty(),
124
+
125
+ getAudioSampleRates: function(){
126
+ var movie = this.movie;
127
+ if (movie === null){
128
+ return [];
129
+ }
130
+ var tracks = movie.audioTracks;
131
+ var i, l;
132
+ var rates = [];
133
+ for (i = 0, l = tracks.length; i < l; ++i){
134
+ rates = rates.concat(tracks[i].sampleRates);
135
+ }
136
+ return rates;
137
+ },
138
+
139
+ videoFormats: JSReadOnlyProperty(),
140
+
141
+ getVideoFormats: function(){
142
+ var movie = this.movie;
143
+ if (movie === null){
144
+ return [];
145
+ }
146
+ var tracks = movie.videoTracks;
147
+ var i, l;
148
+ var formats = [];
149
+ for (i = 0, l = tracks.length; i < l; ++i){
150
+ formats = formats.concat(tracks[i].sampleFormats);
151
+ }
152
+ return formats;
153
+ },
154
+
155
+ audioFormats: JSReadOnlyProperty(),
156
+
157
+ getAudioFormats: function(){
158
+ var movie = this.movie;
159
+ if (movie === null){
160
+ return [];
161
+ }
162
+ var tracks = movie.audioTracks;
163
+ var i, l;
164
+ var formats = [];
165
+ for (i = 0, l = tracks.length; i < l; ++i){
166
+ formats = formats.concat(tracks[i].sampleFormats);
167
+ }
168
+ return formats;
169
+ },
170
+
171
+ metadata: JSReadOnlyProperty(),
172
+
173
+ getMetadata: function(){
174
+ var metadata = {
175
+ format: MKQuickTimeAtom.stringForType(this.fileType !== null ? this.fileType.majorBrand : MKQuickTimeFileType.MajorBrand.qt),
176
+ duration: this.duration,
177
+ posterTime: this.posterTime,
178
+ video: false,
179
+ audio: false,
180
+ tracks: []
181
+ };
182
+ var i, l;
183
+ var movie = this.movie;
184
+ if (movie !== null){
185
+ var tracks = movie.tracks;
186
+ var track;
187
+ for (i = 0, l = tracks.length; i < l; ++i){
188
+ track = tracks[i];
189
+ if (track.enabled && track.inMovie){
190
+ if (track.isVideo){
191
+ metadata.tracks.push({
192
+ type: "video",
193
+ width: track.videoResolution.width,
194
+ height: track.videoResolution.height,
195
+ formats: MKQuickTimeAtom.stringsForTypes(track.sampleFormats),
196
+ frameRates: track.videoFrameRates,
197
+ averageFrameRate: track.averageVideoFrameRate
198
+ });
199
+ metadata.video = true;
200
+ }else if (track.isAudio){
201
+ metadata.tracks.push({
202
+ type: "audio",
203
+ formats: MKQuickTimeAtom.stringsForTypes(track.sampleFormats),
204
+ sampleRates: track.audioSampleRates
205
+ });
206
+ metadata.audio = true;
207
+ }
208
+ }
209
+ }
210
+ }
211
+ return metadata;
212
+ },
213
+
214
+ });
215
+
216
+ })();