diff --git a/.eslintrc.js b/.eslintrc.js index db60f507..27f3d446 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -38,6 +38,7 @@ module.exports = { '@typescript-eslint/no-unsafe-assignment': 'warn', '@typescript-eslint/no-unsafe-member-access': 'warn', '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'warn', }, }, ], diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27c0fed4..05b2cb29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,21 +14,21 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [12.x] + node-version: [20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: test run: | + corepack enable yarn yarn build - yarn jest --coverage + yarn test:coverage - name: report - uses: coverallsapp/github-action@v1.0.1 + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage/lcov.info diff --git a/.gitignore b/.gitignore index ff3addee..f352f076 100644 --- a/.gitignore +++ b/.gitignore @@ -11,9 +11,15 @@ package-lock.json *.log .DS_Store -# Editor -.vscode - # gatsby .cache website/public + +# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 00000000..2785bc1d --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +yarn commitlint --edit $1 diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000..37236231 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +yarn lint-staged diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..a1773c00 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "search.exclude": {".yarn": true} +} diff --git a/.yarn/plugins/plugin-dedupe-on-install.cjs b/.yarn/plugins/plugin-dedupe-on-install.cjs new file mode 100644 index 00000000..950dcd18 --- /dev/null +++ b/.yarn/plugins/plugin-dedupe-on-install.cjs @@ -0,0 +1,22 @@ +module.exports = { + name: `plugin-dedupe-on-install`, + factory: (require) => { + const {execute} = require('@yarnpkg/shell') + return { + hooks: { + // yarn / yarn install / yarn add / yarn dedupe -> afterAllInstalled + async afterAllInstalled() { + // use env var to prevent infinite loops + if (!process.env.DEDUPED && !process.argv.includes('dedupe')) { + process.env.DEDUPED = 'yes' + // fast check for duplicates + if (await execute('yarn dedupe --check')) { + // run actual dedupe/link step + await execute('yarn dedupe') + } + } + }, + }, + } + }, +} diff --git a/.yarn/plugins/plugin-hook-scripts.cjs b/.yarn/plugins/plugin-hook-scripts.cjs new file mode 100644 index 00000000..fe023f74 --- /dev/null +++ b/.yarn/plugins/plugin-hook-scripts.cjs @@ -0,0 +1,22 @@ +module.exports = { + name: `plugin-hook-scripts`, + factory: (require) => { + /** @type {import('@yarnpkg/core')} */ + const {scriptUtils} = require('@yarnpkg/core') + return { + hooks: { + async afterAllInstalled( + /** @type {import('@yarnpkg/core').Project} */ project + ) { + const script = 'yarn:afterAllInstalled' + const locator = project.topLevelWorkspace.anchoredLocator + if (await scriptUtils.hasPackageScript(locator, script, {project})) { + await scriptUtils.executePackageScript(locator, script, [], { + project, + }) + } + }, + }, + } + }, +} diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 00000000..1ad9a0ed --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1,9 @@ +nodeLinker: node-modules + +plugins: + - checksum: 7930a64ba6239d4502df0204edda913788df1a9614a9056d23b53345d844f6f13526dae71c2be5282071502c3c077db7b1e97bcf019037db3ca35c737cd25b0c + path: .yarn/plugins/plugin-dedupe-on-install.cjs + spec: "https://raw.githubusercontent.com/ambar/yarn-plugin-dedupe-on-install/main/index.js" + - checksum: 2bf08235ccdfb0b95f511d4f0b0383a14de6c06e0c37e20e61c6ba939b85934542fbc6ff502387858722ac8b10f24c6b0a28a93536b628bd2e9446a491b40f29 + path: .yarn/plugins/plugin-hook-scripts.cjs + spec: "https://raw.githubusercontent.com/ambar/yarn-plugin-hook-scripts/main/index.js" diff --git a/example/index.html b/example/index.html index 94978744..532ce810 100644 --- a/example/index.html +++ b/example/index.html @@ -15,10 +15,10 @@
diff --git a/example/package.json b/example/package.json index 344707b0..f500ed39 100644 --- a/example/package.json +++ b/example/package.json @@ -7,14 +7,13 @@ "start": "vite --host" }, "dependencies": { - "@types/react-router-dom": "^5.1.8", "griffith": "^1.31.0", - "react": "^16.8", - "react-dom": "^16.8", - "react-router-dom": "^5.3.0" + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-router-dom": "^6.22.3" }, "devDependencies": { - "@vitejs/plugin-react-refresh": "^1.3.3", - "vite": "^2.3.3" + "@vitejs/plugin-react": "^4.2.1", + "vite": "^5.1.6" } } diff --git a/example/src/App.tsx b/example/src/App.tsx index 762c865d..926bd8c6 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {BrowserRouter as Router, Link, Route, Switch} from 'react-router-dom' +import {BrowserRouter as Router, Link, Route, Routes} from 'react-router-dom' import FMP4Page from './FMP4Page' import HLSPage from './HLSPage' import IframePage from './IframePage' @@ -49,23 +49,13 @@ function App() { {!nonav && } - - - - - - - - - - - - - - - - - + + } /> + } /> + } /> + } /> + } /> + ) } diff --git a/example/src/HLSPage.tsx b/example/src/HLSPage.tsx index 2eefc798..787ad899 100644 --- a/example/src/HLSPage.tsx +++ b/example/src/HLSPage.tsx @@ -1,7 +1,7 @@ import Player, {PlayerProps} from 'griffith' import React from 'react' import {logEvent} from './utils' -import useQuery from './utils/useQuery' +import {useSearchParams} from 'react-router-dom' export const sources = { // 注意,这里手动提供了 auto 品质的 source,因此会无视 useAutoQuality 的配置 @@ -29,8 +29,8 @@ const props: PlayerProps = { } const App = () => { - const query = useQuery() - const autoplay = 'autoplay' in query + const [searchParams] = useSearchParams() + const autoplay = searchParams.has('autoplay') return ( = { } const App = () => { - const query = useQuery() + const [searchParams] = useSearchParams() + const loop = searchParams.has('loop') + const hasLogo = searchParams.has('logo') const messageContextRef = useMessageContextRef() const [isLogoVisible, setIsLogoVisible] = useState(false) @@ -52,24 +54,24 @@ const App = () => { setIsLogoVisible(true) }) messageContextRef.useEvent(EVENTS.ENDED, () => { - if ('loop' in query) { + if (loop) { messageContextRef.dispatchAction(ACTIONS.PLAY) } }) const children = useMemo( - () => 'logo' in query && isLogoVisible && , - [isLogoVisible, query] + () => hasLogo && isLogoVisible && , + [isLogoVisible, hasLogo] ) - const sources = 'sd' in query ? {sd: _sources.sd} : _sources + const sources = searchParams.has('sd') ? {sd: _sources.sd} : _sources return ( <> - Object.fromEntries( - new URLSearchParams(search) as unknown as Iterable<[string, string]> - ) - -const useQuery = () => { - const location = useLocation() - const [query, setQuery] = useState(() => parseQuery(location.search)) - useEffect(() => { - setQuery(parseQuery(location.search)) - }, [location.search]) - return query -} - -export default useQuery diff --git a/example/vite.config.js b/example/vite.config.js index bc6cf402..90173797 100644 --- a/example/vite.config.js +++ b/example/vite.config.js @@ -1,5 +1,5 @@ import {loadConfig, createMatchPath} from 'tsconfig-paths' -import reactRefresh from '@vitejs/plugin-react-refresh' +import react from '@vitejs/plugin-react' const result = loadConfig() const matchPath = createMatchPath(result.absoluteBaseUrl, result.paths) @@ -20,5 +20,5 @@ export default { ...packagesAliases, }, }, - plugins: [reactRefresh()], + plugins: [react()], } diff --git a/jest.config.base.js b/jest.config.base.js index a9c9a39d..bf8935ab 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -10,5 +10,4 @@ module.exports = { '!src/**/types.ts', ], testPathIgnorePatterns: ['/__mocks__/'], - snapshotSerializers: [require.resolve('./jest/prettier-dom.js')], } diff --git a/jest/prettier-dom.js b/jest/prettier-dom.js deleted file mode 100644 index 1e32a380..00000000 --- a/jest/prettier-dom.js +++ /dev/null @@ -1,8 +0,0 @@ -import prettier from 'prettier' - -module.exports = { - test: (v) => typeof Element !== 'undefined' && v instanceof Element, - print: (v) => { - return prettier.format(v.outerHTML, {parser: 'html'}) - }, -} diff --git a/lerna.json b/lerna.json index 059a2b83..1c54385f 100644 --- a/lerna.json +++ b/lerna.json @@ -4,8 +4,13 @@ "example", "website" ], + "ignoreChanges": [ + "**/__tests__/**", + "**/__snapshots__/**", + "**/*.mdx", + "**/*.md" + ], "version": "1.31.0", "conventionalCommits": true, - "npmClient": "yarn", - "useWorkspaces": true + "npmClient": "yarn" } diff --git a/package.json b/package.json index 5166e626..be197aff 100644 --- a/package.json +++ b/package.json @@ -32,54 +32,51 @@ "zhihu-video-player" ], "scripts": { + "yarn:afterAllInstalled": "husky", "lint": "eslint --cache . ", - "test": "jest", - "test:coverage": "jest --coverage", - "test:watch": "jest --watch --notify", - "build:lib": "lerna run build --scope griffith*", + "test": "NODE_OPTIONS=--experimental-vm-modules jest", + "test:coverage": "yarn test --coverage", + "test:watch": "yarn test --watch --notify", + "build:lib": "lerna run build --scope 'griffith*' -- --bundleConfigAsCjs", "deploy:website": "lerna run --scope website deploy", "build": "yarn build:lib", - "build:watch": "lerna run build --parallel --scope griffith* --ignore griffith-standalone -- --watch", + "build:watch": "lerna run build --parallel --scope 'griffith*' --ignore griffith-standalone -- --watch", "release": "yarn build && lerna publish", "start-server": "yarn workspace example run start", "start": "yarn start-server" }, "devDependencies": { - "@commitlint/config-conventional": "^7.5.0", - "@rollup/plugin-alias": "^3.1.2", - "@rollup/plugin-commonjs": "^19.0.0", - "@rollup/plugin-node-resolve": "^13.0.0", - "@rollup/plugin-replace": "^2.4.2", - "@rollup/plugin-typescript": "^8.2.5", - "@testing-library/react": "^12.1.0", - "@testing-library/react-hooks": "^7.0.2", + "@commitlint/config-conventional": "^19.1.0", + "@rollup/plugin-alias": "^5.1.0", + "@rollup/plugin-commonjs": "^25.0.7", + "@rollup/plugin-node-resolve": "^15.2.3", + "@rollup/plugin-replace": "^5.0.5", + "@rollup/plugin-terser": "^0.4.4", + "@rollup/plugin-typescript": "^11.1.6", + "@testing-library/react": "^14.2.1", "@types/jest": "^27.0.1", - "@typescript-eslint/eslint-plugin": "^4.31.0", - "@typescript-eslint/parser": "^4.31.0", - "commitlint": "^7.5.2", - "es-jest": "^1.3.0", - "eslint": "^7.32.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.24.2", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-react": "^7.25.1", - "eslint-plugin-react-hooks": "^4.2.0", - "husky": "^1.3.1", - "jest": "^27.1.0", - "lerna": "^3.13.1", - "lint-staged": "^8.1.5", - "prettier": "^2.3.2", - "react-test-renderer": "^17.0.2", - "rollup": "^2.48.0", - "rollup-plugin-terser": "^7.0.2", - "rollup-plugin-typescript2": "^0.30.0", - "typescript": "^4.4.3" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged", - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } + "@typescript-eslint/eslint-plugin": "^7.2.0", + "@typescript-eslint/parser": "^7.2.0", + "commitlint": "^19.2.0", + "es-jest": "^2.1.0", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-prettier": "^5.1.3", + "eslint-plugin-react": "^7.34.1", + "eslint-plugin-react-hooks": "^4.6.0", + "husky": "^9.0.11", + "jest": "^29.7.0", + "jest-environment-jsdom": "^29.7.0", + "lerna": "^8.1.2", + "lint-staged": "^15.2.2", + "prettier": "^3.2.5", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-test-renderer": "^18.2.0", + "rollup": "^4.13.0", + "rollup-plugin-typescript2": "^0.36.0", + "typescript": "^5.4.2" }, "lint-staged": { "*.{json,md,css}": [ @@ -96,5 +93,6 @@ "extends": [ "@commitlint/config-conventional" ] - } + }, + "packageManager": "yarn@4.1.1" } diff --git a/packages/griffith-hls/package.json b/packages/griffith-hls/package.json index b6c55a84..10bebd28 100644 --- a/packages/griffith-hls/package.json +++ b/packages/griffith-hls/package.json @@ -20,8 +20,7 @@ "hls.js-v1": "npm:hls.js@^1" }, "peerDependencies": { - "react": "^16.8 || ^17", - "react-dom": "^16.8 || ^17" + "react": "^16.8 || ^17 || ^18" }, "dependencies": { "hls.js": "0.7.11" diff --git a/packages/griffith-mp4/package.json b/packages/griffith-mp4/package.json index dfef6963..1eb450cf 100644 --- a/packages/griffith-mp4/package.json +++ b/packages/griffith-mp4/package.json @@ -20,8 +20,7 @@ "read-chunk": "^3.0.0" }, "peerDependencies": { - "react": "^16.8 || ^17", - "react-dom": "^16.8 || ^17" + "react": "^16.8 || ^17 || ^18" }, "dependencies": { "griffith-utils": "^1.23.0", diff --git a/packages/griffith-mp4/src/mp4/__tests__/__snapshots__/mp4Parse.spec.ts.snap b/packages/griffith-mp4/src/mp4/__tests__/__snapshots__/mp4Parse.spec.ts.snap index 0bc4b692..4bae4ccf 100644 Binary files a/packages/griffith-mp4/src/mp4/__tests__/__snapshots__/mp4Parse.spec.ts.snap and b/packages/griffith-mp4/src/mp4/__tests__/__snapshots__/mp4Parse.spec.ts.snap differ diff --git a/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/ctts.spec.ts.snap b/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/ctts.spec.ts.snap index 0d8cefec..4efc586b 100644 --- a/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/ctts.spec.ts.snap +++ b/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/ctts.spec.ts.snap @@ -1,790 +1,790 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ctts box should get the ctts box tree 1`] = ` -Object { +{ "flags": 0, - "samples": Array [ - Object { + "samples": [ + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 5, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 3, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 6, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 6, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 4, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 2, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 3, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 2048, }, - Object { + { "sampleCount": 2, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 2560, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 0, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 1, "sampleOffset": 1024, }, - Object { + { "sampleCount": 1, "sampleOffset": 1536, }, - Object { + { "sampleCount": 1, "sampleOffset": 512, }, - Object { + { "sampleCount": 19, "sampleOffset": 1024, }, diff --git a/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stco.spec.ts.snap b/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stco.spec.ts.snap index 492da62f..76064cbb 100644 --- a/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stco.spec.ts.snap +++ b/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stco.spec.ts.snap @@ -1,760 +1,760 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`stco box should get the stco box tree 1`] = ` -Object { +{ "flags": 0, - "samples": Array [ - Object { + "samples": [ + { "chunkOffset": 9271, }, - Object { + { "chunkOffset": 17100, }, - Object { + { "chunkOffset": 18907, }, - Object { + { "chunkOffset": 19687, }, - Object { + { "chunkOffset": 20620, }, - Object { + { "chunkOffset": 21497, }, - Object { + { "chunkOffset": 22053, }, - Object { + { "chunkOffset": 24886, }, - Object { + { "chunkOffset": 26431, }, - Object { + { "chunkOffset": 28820, }, - Object { + { "chunkOffset": 30035, }, - Object { + { "chunkOffset": 30844, }, - Object { + { "chunkOffset": 33143, }, - Object { + { "chunkOffset": 34350, }, - Object { + { "chunkOffset": 36920, }, - Object { + { "chunkOffset": 39062, }, - Object { + { "chunkOffset": 41286, }, - Object { + { "chunkOffset": 42037, }, - Object { + { "chunkOffset": 44603, }, - Object { + { "chunkOffset": 45924, }, - Object { + { "chunkOffset": 48376, }, - Object { + { "chunkOffset": 49143, }, - Object { + { "chunkOffset": 51148, }, - Object { + { "chunkOffset": 53374, }, - Object { + { "chunkOffset": 54076, }, - Object { + { "chunkOffset": 57669, }, - Object { + { "chunkOffset": 58843, }, - Object { + { "chunkOffset": 62664, }, - Object { + { "chunkOffset": 63767, }, - Object { + { "chunkOffset": 67470, }, - Object { + { "chunkOffset": 69128, }, - Object { + { "chunkOffset": 72383, }, - Object { + { "chunkOffset": 73555, }, - Object { + { "chunkOffset": 77178, }, - Object { + { "chunkOffset": 78767, }, - Object { + { "chunkOffset": 81464, }, - Object { + { "chunkOffset": 82310, }, - Object { + { "chunkOffset": 86310, }, - Object { + { "chunkOffset": 87740, }, - Object { + { "chunkOffset": 91399, }, - Object { + { "chunkOffset": 94972, }, - Object { + { "chunkOffset": 96682, }, - Object { + { "chunkOffset": 97407, }, - Object { + { "chunkOffset": 98718, }, - Object { + { "chunkOffset": 101880, }, - Object { + { "chunkOffset": 103175, }, - Object { + { "chunkOffset": 104039, }, - Object { + { "chunkOffset": 107934, }, - Object { + { "chunkOffset": 110766, }, - Object { + { "chunkOffset": 113238, }, - Object { + { "chunkOffset": 116079, }, - Object { + { "chunkOffset": 119097, }, - Object { + { "chunkOffset": 123741, }, - Object { + { "chunkOffset": 125035, }, - Object { + { "chunkOffset": 129874, }, - Object { + { "chunkOffset": 131570, }, - Object { + { "chunkOffset": 135846, }, - Object { + { "chunkOffset": 136993, }, - Object { + { "chunkOffset": 138148, }, - Object { + { "chunkOffset": 142437, }, - Object { + { "chunkOffset": 144185, }, - Object { + { "chunkOffset": 145524, }, - Object { + { "chunkOffset": 146251, }, - Object { + { "chunkOffset": 151152, }, - Object { + { "chunkOffset": 152436, }, - Object { + { "chunkOffset": 155417, }, - Object { + { "chunkOffset": 156614, }, - Object { + { "chunkOffset": 159192, }, - Object { + { "chunkOffset": 163646, }, - Object { + { "chunkOffset": 167265, }, - Object { + { "chunkOffset": 171828, }, - Object { + { "chunkOffset": 173210, }, - Object { + { "chunkOffset": 177546, }, - Object { + { "chunkOffset": 180920, }, - Object { + { "chunkOffset": 182628, }, - Object { + { "chunkOffset": 183641, }, - Object { + { "chunkOffset": 186507, }, - Object { + { "chunkOffset": 191728, }, - Object { + { "chunkOffset": 193198, }, - Object { + { "chunkOffset": 198175, }, - Object { + { "chunkOffset": 200415, }, - Object { + { "chunkOffset": 204704, }, - Object { + { "chunkOffset": 206103, }, - Object { + { "chunkOffset": 212481, }, - Object { + { "chunkOffset": 215138, }, - Object { + { "chunkOffset": 219409, }, - Object { + { "chunkOffset": 220296, }, - Object { + { "chunkOffset": 225139, }, - Object { + { "chunkOffset": 226942, }, - Object { + { "chunkOffset": 231789, }, - Object { + { "chunkOffset": 233748, }, - Object { + { "chunkOffset": 237361, }, - Object { + { "chunkOffset": 238898, }, - Object { + { "chunkOffset": 242423, }, - Object { + { "chunkOffset": 244295, }, - Object { + { "chunkOffset": 247541, }, - Object { + { "chunkOffset": 248856, }, - Object { + { "chunkOffset": 252792, }, - Object { + { "chunkOffset": 255048, }, - Object { + { "chunkOffset": 258933, }, - Object { + { "chunkOffset": 260893, }, - Object { + { "chunkOffset": 267047, }, - Object { + { "chunkOffset": 269484, }, - Object { + { "chunkOffset": 272597, }, - Object { + { "chunkOffset": 274025, }, - Object { + { "chunkOffset": 277896, }, - Object { + { "chunkOffset": 282225, }, - Object { + { "chunkOffset": 283890, }, - Object { + { "chunkOffset": 288546, }, - Object { + { "chunkOffset": 290765, }, - Object { + { "chunkOffset": 294517, }, - Object { + { "chunkOffset": 294987, }, - Object { + { "chunkOffset": 299156, }, - Object { + { "chunkOffset": 301145, }, - Object { + { "chunkOffset": 305272, }, - Object { + { "chunkOffset": 309369, }, - Object { + { "chunkOffset": 311396, }, - Object { + { "chunkOffset": 314237, }, - Object { + { "chunkOffset": 318098, }, - Object { + { "chunkOffset": 321808, }, - Object { + { "chunkOffset": 323579, }, - Object { + { "chunkOffset": 325920, }, - Object { + { "chunkOffset": 329803, }, - Object { + { "chunkOffset": 332399, }, - Object { + { "chunkOffset": 335086, }, - Object { + { "chunkOffset": 338326, }, - Object { + { "chunkOffset": 344374, }, - Object { + { "chunkOffset": 348858, }, - Object { + { "chunkOffset": 351117, }, - Object { + { "chunkOffset": 355643, }, - Object { + { "chunkOffset": 360771, }, - Object { + { "chunkOffset": 365399, }, - Object { + { "chunkOffset": 366483, }, - Object { + { "chunkOffset": 369364, }, - Object { + { "chunkOffset": 372299, }, - Object { + { "chunkOffset": 376625, }, - Object { + { "chunkOffset": 377128, }, - Object { + { "chunkOffset": 379608, }, - Object { + { "chunkOffset": 382214, }, - Object { + { "chunkOffset": 385329, }, - Object { + { "chunkOffset": 386204, }, - Object { + { "chunkOffset": 389007, }, - Object { + { "chunkOffset": 392357, }, - Object { + { "chunkOffset": 397418, }, - Object { + { "chunkOffset": 398851, }, - Object { + { "chunkOffset": 401752, }, - Object { + { "chunkOffset": 402933, }, - Object { + { "chunkOffset": 407047, }, - Object { + { "chunkOffset": 408522, }, - Object { + { "chunkOffset": 412061, }, - Object { + { "chunkOffset": 412808, }, - Object { + { "chunkOffset": 418797, }, - Object { + { "chunkOffset": 419941, }, - Object { + { "chunkOffset": 425195, }, - Object { + { "chunkOffset": 425926, }, - Object { + { "chunkOffset": 427006, }, - Object { + { "chunkOffset": 430215, }, - Object { + { "chunkOffset": 431297, }, - Object { + { "chunkOffset": 431852, }, - Object { + { "chunkOffset": 432865, }, - Object { + { "chunkOffset": 435385, }, - Object { + { "chunkOffset": 436061, }, - Object { + { "chunkOffset": 436858, }, - Object { + { "chunkOffset": 437801, }, - Object { + { "chunkOffset": 440280, }, - Object { + { "chunkOffset": 440943, }, - Object { + { "chunkOffset": 441877, }, - Object { + { "chunkOffset": 442761, }, - Object { + { "chunkOffset": 444353, }, - Object { + { "chunkOffset": 445213, }, - Object { + { "chunkOffset": 446036, }, - Object { + { "chunkOffset": 446813, }, - Object { + { "chunkOffset": 448047, }, - Object { + { "chunkOffset": 449008, }, - Object { + { "chunkOffset": 449825, }, - Object { + { "chunkOffset": 450702, }, - Object { + { "chunkOffset": 454340, }, - Object { + { "chunkOffset": 455282, }, - Object { + { "chunkOffset": 456059, }, - Object { + { "chunkOffset": 457324, }, - Object { + { "chunkOffset": 458253, }, - Object { + { "chunkOffset": 459152, }, - Object { + { "chunkOffset": 459903, }, - Object { + { "chunkOffset": 463332, }, - Object { + { "chunkOffset": 464332, }, - Object { + { "chunkOffset": 465673, }, - Object { + { "chunkOffset": 466123, }, - Object { + { "chunkOffset": 469498, }, - Object { + { "chunkOffset": 472327, }, - Object { + { "chunkOffset": 475873, }, - Object { + { "chunkOffset": 479264, }, - Object { + { "chunkOffset": 480863, }, - Object { + { "chunkOffset": 486136, }, - Object { + { "chunkOffset": 488285, }, - Object { + { "chunkOffset": 491423, }, - Object { + { "chunkOffset": 495893, }, - Object { + { "chunkOffset": 497959, }, - Object { + { "chunkOffset": 502496, }, - Object { + { "chunkOffset": 505999, }, - Object { + { "chunkOffset": 511073, }, - Object { + { "chunkOffset": 512871, }, - Object { + { "chunkOffset": 518404, }, - Object { + { "chunkOffset": 520423, }, - Object { + { "chunkOffset": 523105, }, - Object { + { "chunkOffset": 525843, }, - Object { + { "chunkOffset": 530233, }, - Object { + { "chunkOffset": 534015, }, - Object { + { "chunkOffset": 535484, }, - Object { + { "chunkOffset": 539268, }, - Object { + { "chunkOffset": 544803, }, - Object { + { "chunkOffset": 546678, }, - Object { + { "chunkOffset": 547458, }, - Object { + { "chunkOffset": 550142, }, - Object { + { "chunkOffset": 551422, }, - Object { + { "chunkOffset": 555620, }, - Object { + { "chunkOffset": 556965, }, - Object { + { "chunkOffset": 560726, }, - Object { + { "chunkOffset": 562068, }, - Object { + { "chunkOffset": 565796, }, - Object { + { "chunkOffset": 567178, }, - Object { + { "chunkOffset": 568615, }, - Object { + { "chunkOffset": 569804, }, - Object { + { "chunkOffset": 572525, }, - Object { + { "chunkOffset": 574490, }, - Object { + { "chunkOffset": 575961, }, - Object { + { "chunkOffset": 577326, }, - Object { + { "chunkOffset": 580900, }, - Object { + { "chunkOffset": 582958, }, - Object { + { "chunkOffset": 586546, }, - Object { + { "chunkOffset": 588544, }, - Object { + { "chunkOffset": 594591, }, - Object { + { "chunkOffset": 598802, }, - Object { + { "chunkOffset": 600227, }, - Object { + { "chunkOffset": 602025, }, - Object { + { "chunkOffset": 605768, }, - Object { + { "chunkOffset": 608801, }, - Object { + { "chunkOffset": 609623, }, - Object { + { "chunkOffset": 611934, }, - Object { + { "chunkOffset": 614445, }, - Object { + { "chunkOffset": 617710, }, - Object { + { "chunkOffset": 619613, }, - Object { + { "chunkOffset": 622059, }, - Object { + { "chunkOffset": 624238, }, - Object { + { "chunkOffset": 627212, }, - Object { + { "chunkOffset": 629600, }, - Object { + { "chunkOffset": 632357, }, - Object { + { "chunkOffset": 634906, }, - Object { + { "chunkOffset": 637508, }, - Object { + { "chunkOffset": 639561, }, - Object { + { "chunkOffset": 642031, }, - Object { + { "chunkOffset": 644058, }, ], diff --git a/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stsz.spec.ts.snap b/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stsz.spec.ts.snap index d12bb375..40955df7 100644 --- a/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stsz.spec.ts.snap +++ b/packages/griffith-mp4/src/mp4/boxes/__tests__/__snapshots__/stsz.spec.ts.snap @@ -1,761 +1,761 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`stsz box should get the stsz box tree 1`] = ` -Object { +{ "flags": 0, "sampleSize": 0, - "samples": Array [ - Object { + "samples": [ + { "entrySize": 7458, }, - Object { + { "entrySize": 1435, }, - Object { + { "entrySize": 37, }, - Object { + { "entrySize": 18, }, - Object { + { "entrySize": 38, }, - Object { + { "entrySize": 137, }, - Object { + { "entrySize": 2085, }, - Object { + { "entrySize": 794, }, - Object { + { "entrySize": 1665, }, - Object { + { "entrySize": 833, }, - Object { + { "entrySize": 47, }, - Object { + { "entrySize": 1563, }, - Object { + { "entrySize": 820, }, - Object { + { "entrySize": 1779, }, - Object { + { "entrySize": 1404, }, - Object { + { "entrySize": 1528, }, - Object { + { "entrySize": 415, }, - Object { + { "entrySize": 1839, }, - Object { + { "entrySize": 449, }, - Object { + { "entrySize": 1685, }, - Object { + { "entrySize": 419, }, - Object { + { "entrySize": 1292, }, - Object { + { "entrySize": 1510, }, - Object { + { "entrySize": 343, }, - Object { + { "entrySize": 2872, }, - Object { + { "entrySize": 491, }, - Object { + { "entrySize": 3111, }, - Object { + { "entrySize": 757, }, - Object { + { "entrySize": 2990, }, - Object { + { "entrySize": 956, }, - Object { + { "entrySize": 2909, }, - Object { + { "entrySize": 483, }, - Object { + { "entrySize": 2936, }, - Object { + { "entrySize": 849, }, - Object { + { "entrySize": 2326, }, - Object { + { "entrySize": 93, }, - Object { + { "entrySize": 3267, }, - Object { + { "entrySize": 670, }, - Object { + { "entrySize": 3304, }, - Object { + { "entrySize": 2830, }, - Object { + { "entrySize": 967, }, - Object { + { "entrySize": 354, }, - Object { + { "entrySize": 568, }, - Object { + { "entrySize": 2419, }, - Object { + { "entrySize": 552, }, - Object { + { "entrySize": 492, }, - Object { + { "entrySize": 3152, }, - Object { + { "entrySize": 2089, }, - Object { + { "entrySize": 2069, }, - Object { + { "entrySize": 2078, }, - Object { + { "entrySize": 2326, }, - Object { + { "entrySize": 3901, }, - Object { + { "entrySize": 913, }, - Object { + { "entrySize": 4106, }, - Object { + { "entrySize": 953, }, - Object { + { "entrySize": 3400, }, - Object { + { "entrySize": 663, }, - Object { + { "entrySize": 418, }, - Object { + { "entrySize": 3623, }, - Object { + { "entrySize": 1361, }, - Object { + { "entrySize": 667, }, - Object { + { "entrySize": 82, }, - Object { + { "entrySize": 4166, }, - Object { + { "entrySize": 913, }, - Object { + { "entrySize": 2238, }, - Object { + { "entrySize": 454, }, - Object { + { "entrySize": 2206, }, - Object { + { "entrySize": 3711, }, - Object { + { "entrySize": 2876, }, - Object { + { "entrySize": 3807, }, - Object { + { "entrySize": 1024, }, - Object { + { "entrySize": 3593, }, - Object { + { "entrySize": 2610, }, - Object { + { "entrySize": 986, }, - Object { + { "entrySize": 641, }, - Object { + { "entrySize": 2123, }, - Object { + { "entrySize": 4478, }, - Object { + { "entrySize": 1098, }, - Object { + { "entrySize": 4234, }, - Object { + { "entrySize": 1497, }, - Object { + { "entrySize": 3546, }, - Object { + { "entrySize": 1028, }, - Object { + { "entrySize": 5635, }, - Object { + { "entrySize": 1914, }, - Object { + { "entrySize": 3899, }, - Object { + { "entrySize": 144, }, - Object { + { "entrySize": 4076, }, - Object { + { "entrySize": 1084, }, - Object { + { "entrySize": 4476, }, - Object { + { "entrySize": 1216, }, - Object { + { "entrySize": 2843, }, - Object { + { "entrySize": 788, }, - Object { + { "entrySize": 3162, }, - Object { + { "entrySize": 1153, }, - Object { + { "entrySize": 2503, }, - Object { + { "entrySize": 895, }, - Object { + { "entrySize": 3231, }, - Object { + { "entrySize": 1523, }, - Object { + { "entrySize": 3142, }, - Object { + { "entrySize": 1589, }, - Object { + { "entrySize": 5360, }, - Object { + { "entrySize": 1745, }, - Object { + { "entrySize": 2741, }, - Object { + { "entrySize": 661, }, - Object { + { "entrySize": 3152, }, - Object { + { "entrySize": 3586, }, - Object { + { "entrySize": 1281, }, - Object { + { "entrySize": 3872, }, - Object { + { "entrySize": 1493, }, - Object { + { "entrySize": 3045, }, - Object { + { "entrySize": 99, }, - Object { + { "entrySize": 3426, }, - Object { + { "entrySize": 1246, }, - Object { + { "entrySize": 3755, }, - Object { + { "entrySize": 3351, }, - Object { + { "entrySize": 1287, }, - Object { + { "entrySize": 2098, }, - Object { + { "entrySize": 3490, }, - Object { + { "entrySize": 2956, }, - Object { + { "entrySize": 1039, }, - Object { + { "entrySize": 1969, }, - Object { + { "entrySize": 3127, }, - Object { + { "entrySize": 1830, }, - Object { + { "entrySize": 1980, }, - Object { + { "entrySize": 2868, }, - Object { + { "entrySize": 5305, }, - Object { + { "entrySize": 3740, }, - Object { + { "entrySize": 1517, }, - Object { + { "entrySize": 4145, }, - Object { + { "entrySize": 4395, }, - Object { + { "entrySize": 3885, }, - Object { + { "entrySize": 702, }, - Object { + { "entrySize": 2148, }, - Object { + { "entrySize": 2192, }, - Object { + { "entrySize": 3583, }, - Object { + { "entrySize": 132, }, - Object { + { "entrySize": 1736, }, - Object { + { "entrySize": 1863, }, - Object { + { "entrySize": 2372, }, - Object { + { "entrySize": 504, }, - Object { + { "entrySize": 2060, }, - Object { + { "entrySize": 2607, }, - Object { + { "entrySize": 4642, }, - Object { + { "entrySize": 737, }, - Object { + { "entrySize": 2158, }, - Object { + { "entrySize": 425, }, - Object { + { "entrySize": 3756, }, - Object { + { "entrySize": 732, }, - Object { + { "entrySize": 2786, }, - Object { + { "entrySize": 385, }, - Object { + { "entrySize": 5246, }, - Object { + { "entrySize": 382, }, - Object { + { "entrySize": 4530, }, - Object { + { "entrySize": 359, }, - Object { + { "entrySize": 337, }, - Object { + { "entrySize": 2444, }, - Object { + { "entrySize": 361, }, - Object { + { "entrySize": 184, }, - Object { + { "entrySize": 263, }, - Object { + { "entrySize": 1784, }, - Object { + { "entrySize": 304, }, - Object { + { "entrySize": 54, }, - Object { + { "entrySize": 200, }, - Object { + { "entrySize": 1736, }, - Object { + { "entrySize": 264, }, - Object { + { "entrySize": 219, }, - Object { + { "entrySize": 131, }, - Object { + { "entrySize": 1167, }, - Object { + { "entrySize": 180, }, - Object { + { "entrySize": 80, }, - Object { + { "entrySize": 34, }, - Object { + { "entrySize": 862, }, - Object { + { "entrySize": 218, }, - Object { + { "entrySize": 74, }, - Object { + { "entrySize": 134, }, - Object { + { "entrySize": 3267, }, - Object { + { "entrySize": 199, }, - Object { + { "entrySize": 34, }, - Object { + { "entrySize": 893, }, - Object { + { "entrySize": 186, }, - Object { + { "entrySize": 109, }, - Object { + { "entrySize": 24, }, - Object { + { "entrySize": 3088, }, - Object { + { "entrySize": 257, }, - Object { + { "entrySize": 594, }, - Object { + { "entrySize": 83, }, - Object { + { "entrySize": 2628, }, - Object { + { "entrySize": 2090, }, - Object { + { "entrySize": 2803, }, - Object { + { "entrySize": 3019, }, - Object { + { "entrySize": 856, }, - Object { + { "entrySize": 4530, }, - Object { + { "entrySize": 1406, }, - Object { + { "entrySize": 2767, }, - Object { + { "entrySize": 3713, }, - Object { + { "entrySize": 1337, }, - Object { + { "entrySize": 4165, }, - Object { + { "entrySize": 2760, }, - Object { + { "entrySize": 4296, }, - Object { + { "entrySize": 1090, }, - Object { + { "entrySize": 5148, }, - Object { + { "entrySize": 1289, }, - Object { + { "entrySize": 1939, }, - Object { + { "entrySize": 2367, }, - Object { + { "entrySize": 3647, }, - Object { + { "entrySize": 3039, }, - Object { + { "entrySize": 726, }, - Object { + { "entrySize": 3412, }, - Object { + { "entrySize": 4792, }, - Object { + { "entrySize": 1132, }, - Object { + { "entrySize": 37, }, - Object { + { "entrySize": 2312, }, - Object { + { "entrySize": 537, }, - Object { + { "entrySize": 3455, }, - Object { + { "entrySize": 974, }, - Object { + { "entrySize": 2997, }, - Object { + { "entrySize": 620, }, - Object { + { "entrySize": 2985, }, - Object { + { "entrySize": 1010, }, - Object { + { "entrySize": 694, }, - Object { + { "entrySize": 446, }, - Object { + { "entrySize": 2350, }, - Object { + { "entrySize": 1222, }, - Object { + { "entrySize": 718, }, - Object { + { "entrySize": 632, }, - Object { + { "entrySize": 3202, }, - Object { + { "entrySize": 1315, }, - Object { + { "entrySize": 2845, }, - Object { + { "entrySize": 1182, }, - Object { + { "entrySize": 5748, }, - Object { + { "entrySize": 3468, }, - Object { + { "entrySize": 682, }, - Object { + { "entrySize": 1427, }, - Object { + { "entrySize": 3000, }, - Object { + { "entrySize": 2290, }, - Object { + { "entrySize": 79, }, - Object { + { "entrySize": 1939, }, - Object { + { "entrySize": 1768, }, - Object { + { "entrySize": 2522, }, - Object { + { "entrySize": 1532, }, - Object { + { "entrySize": 1703, }, - Object { + { "entrySize": 1435, }, - Object { + { "entrySize": 2231, }, - Object { + { "entrySize": 2017, }, - Object { + { "entrySize": 2014, }, - Object { + { "entrySize": 1758, }, - Object { + { "entrySize": 1907, }, - Object { + { "entrySize": 1681, }, - Object { + { "entrySize": 1727, }, - Object { + { "entrySize": 1284, }, - Object { + { "entrySize": 1270, }, ], diff --git a/packages/griffith-mp4/src/mp4/utils/__tests__/__snapshots__/getSamples.spec.ts.snap b/packages/griffith-mp4/src/mp4/utils/__tests__/__snapshots__/getSamples.spec.ts.snap index 8fd3d635..52edcbd5 100644 --- a/packages/griffith-mp4/src/mp4/utils/__tests__/__snapshots__/getSamples.spec.ts.snap +++ b/packages/griffith-mp4/src/mp4/utils/__tests__/__snapshots__/getSamples.spec.ts.snap @@ -1,2766 +1,2766 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`getSamples should get first audio sample 1`] = ` -Array [ - Object { +[ + { "bufferStart": 9271, "duration": 1024, "end": 7829, "size": 371, "start": 7458, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 9636, "size": 372, "start": 9264, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 10044, "size": 371, "start": 9673, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 10416, "size": 372, "start": 10044, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 10805, "size": 371, "start": 10434, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 11349, "size": 544, "start": 10805, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 11807, "size": 420, "start": 11387, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 12226, "size": 419, "start": 11807, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 12782, "size": 419, "start": 12363, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 15250, "size": 383, "start": 14867, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 15615, "size": 365, "start": 15250, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 16772, "size": 363, "start": 16409, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 17160, "size": 388, "start": 16772, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 19195, "size": 370, "start": 18825, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 19549, "size": 354, "start": 19195, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 20764, "size": 382, "start": 20382, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 21148, "size": 337, "start": 20811, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 21573, "size": 425, "start": 21148, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 23514, "size": 378, "start": 23136, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 23872, "size": 358, "start": 23514, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 25079, "size": 387, "start": 24692, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 27204, "size": 346, "start": 26858, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 27649, "size": 445, "start": 27204, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 29425, "size": 372, "start": 29053, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 29791, "size": 366, "start": 29425, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 31670, "size": 351, "start": 31319, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 32015, "size": 345, "start": 31670, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 32766, "size": 336, "start": 32430, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 34961, "size": 356, "start": 34605, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 35332, "size": 371, "start": 34961, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 36201, "size": 420, "start": 35781, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 36653, "size": 452, "start": 36201, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 38699, "size": 361, "start": 38338, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 39105, "size": 406, "start": 38699, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 39872, "size": 348, "start": 39524, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 41529, "size": 365, "start": 41164, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 41877, "size": 348, "start": 41529, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 43747, "size": 360, "start": 43387, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 44103, "size": 356, "start": 43747, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 44805, "size": 359, "start": 44446, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 48032, "size": 355, "start": 47677, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 48398, "size": 366, "start": 48032, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 49233, "size": 344, "start": 48889, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 49572, "size": 339, "start": 49233, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 53051, "size": 368, "start": 52683, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 53393, "size": 342, "start": 53051, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 54496, "size": 346, "start": 54150, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 57845, "size": 359, "start": 57486, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 58199, "size": 354, "start": 57845, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 59508, "size": 353, "start": 59155, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 59857, "size": 349, "start": 59508, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 63112, "size": 346, "start": 62766, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 63921, "size": 326, "start": 63595, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 64284, "size": 363, "start": 63921, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 67570, "size": 350, "start": 67220, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 67907, "size": 337, "start": 67570, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 69126, "size": 370, "start": 68756, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 69496, "size": 370, "start": 69126, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 72193, "size": 371, "start": 71822, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 72659, "size": 373, "start": 72286, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 73039, "size": 380, "start": 72659, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 76668, "size": 362, "start": 76306, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 77039, "size": 371, "start": 76668, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 78081, "size": 372, "start": 77709, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 78469, "size": 388, "start": 78081, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 82128, "size": 355, "start": 81773, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 85329, "size": 371, "start": 84958, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 85701, "size": 372, "start": 85329, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 87039, "size": 371, "start": 86668, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 87411, "size": 372, "start": 87039, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 88136, "size": 371, "start": 87765, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 89076, "size": 372, "start": 88704, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 89447, "size": 371, "start": 89076, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 92238, "size": 372, "start": 91866, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 92609, "size": 371, "start": 92238, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 93555, "size": 394, "start": 93161, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 93904, "size": 349, "start": 93555, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 94768, "size": 372, "start": 94396, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 98292, "size": 372, "start": 97920, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 98663, "size": 371, "start": 98292, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 101142, "size": 390, "start": 100752, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 101495, "size": 353, "start": 101142, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 103967, "size": 403, "start": 103564, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 106408, "size": 363, "start": 106045, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 106808, "size": 400, "start": 106408, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 109454, "size": 320, "start": 109134, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 109826, "size": 372, "start": 109454, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 114098, "size": 371, "start": 113727, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 114470, "size": 372, "start": 114098, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 115764, "size": 381, "start": 115383, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 120232, "size": 362, "start": 119870, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 120603, "size": 371, "start": 120232, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 121928, "size": 372, "start": 121556, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 122299, "size": 371, "start": 121928, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 126121, "size": 422, "start": 125699, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 126575, "size": 454, "start": 126121, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 127722, "size": 484, "start": 127238, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 128546, "size": 406, "start": 128140, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 128877, "size": 331, "start": 128546, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 132818, "size": 318, "start": 132500, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 133166, "size": 348, "start": 132818, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 134914, "size": 387, "start": 134527, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 135879, "size": 298, "start": 135581, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 136253, "size": 374, "start": 135879, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 136654, "size": 319, "start": 136335, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 136980, "size": 326, "start": 136654, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 141509, "size": 363, "start": 141146, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 141881, "size": 372, "start": 141509, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 143165, "size": 371, "start": 142794, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 145775, "size": 372, "start": 145403, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 146146, "size": 371, "start": 145775, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 146972, "size": 372, "start": 146600, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 147343, "size": 371, "start": 146972, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 149921, "size": 372, "start": 149549, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 154003, "size": 371, "start": 153632, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 154375, "size": 372, "start": 154003, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 157622, "size": 371, "start": 157251, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 157994, "size": 372, "start": 157622, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 162180, "size": 379, "start": 161801, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 162557, "size": 377, "start": 162180, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 163939, "size": 358, "start": 163581, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 167904, "size": 372, "start": 167532, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 168275, "size": 371, "start": 167904, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 171257, "size": 372, "start": 170885, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 171649, "size": 392, "start": 171257, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 172986, "size": 351, "start": 172635, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 173357, "size": 371, "start": 172986, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 174370, "size": 372, "start": 173998, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 176864, "size": 371, "start": 176493, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 177236, "size": 372, "start": 176864, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 182086, "size": 372, "start": 181714, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 182457, "size": 371, "start": 182086, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 183927, "size": 372, "start": 183555, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 188536, "size": 375, "start": 188161, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 188904, "size": 368, "start": 188536, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 190772, "size": 371, "start": 190401, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 191144, "size": 372, "start": 190772, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 195061, "size": 371, "start": 194690, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 195433, "size": 372, "start": 195061, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 196832, "size": 371, "start": 196461, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 202839, "size": 372, "start": 202467, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 203210, "size": 371, "start": 202839, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 205496, "size": 372, "start": 205124, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 205867, "size": 371, "start": 205496, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 210138, "size": 372, "start": 209766, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 210653, "size": 371, "start": 210282, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 211025, "size": 372, "start": 210653, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 215472, "size": 371, "start": 215101, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 215868, "size": 396, "start": 215472, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 217299, "size": 347, "start": 216952, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 217671, "size": 372, "start": 217299, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 222518, "size": 371, "start": 222147, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 224106, "size": 372, "start": 223734, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 224477, "size": 371, "start": 224106, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 227692, "size": 372, "start": 227320, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 228090, "size": 398, "start": 227692, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 229223, "size": 345, "start": 228878, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 229627, "size": 404, "start": 229223, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 233152, "size": 363, "start": 232789, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 234668, "size": 363, "start": 234305, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 235024, "size": 356, "start": 234668, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 237899, "size": 372, "start": 237527, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 238270, "size": 371, "start": 237899, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 239585, "size": 420, "start": 239165, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 243166, "size": 350, "start": 242816, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 243521, "size": 355, "start": 243166, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 245405, "size": 361, "start": 245044, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 245777, "size": 372, "start": 245405, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 249290, "size": 371, "start": 248919, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 249662, "size": 372, "start": 249290, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 251622, "size": 371, "start": 251251, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 257354, "size": 372, "start": 256982, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 257776, "size": 422, "start": 257354, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 259850, "size": 329, "start": 259521, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 260213, "size": 363, "start": 259850, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 263326, "size": 372, "start": 262954, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 264403, "size": 416, "start": 263987, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 264754, "size": 351, "start": 264403, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 268253, "size": 347, "start": 267906, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 268625, "size": 372, "start": 268253, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 272582, "size": 371, "start": 272211, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 272954, "size": 372, "start": 272582, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 274619, "size": 384, "start": 274235, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 278850, "size": 359, "start": 278491, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 279275, "size": 425, "start": 278850, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 281107, "size": 339, "start": 280768, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 281494, "size": 387, "start": 281107, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 284874, "size": 335, "start": 284539, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 285246, "size": 372, "start": 284874, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 285716, "size": 371, "start": 285345, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 289514, "size": 372, "start": 289142, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 289885, "size": 371, "start": 289514, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 291503, "size": 372, "start": 291131, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 291874, "size": 371, "start": 291503, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 296001, "size": 372, "start": 295629, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 299723, "size": 371, "start": 299352, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 300098, "size": 375, "start": 299723, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 301759, "size": 374, "start": 301385, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 302125, "size": 366, "start": 301759, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 304594, "size": 371, "start": 304223, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 304966, "size": 372, "start": 304594, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 308827, "size": 371, "start": 308456, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 312162, "size": 379, "start": 311783, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 312537, "size": 375, "start": 312162, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 313976, "size": 400, "start": 313576, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 314308, "size": 332, "start": 313976, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 316649, "size": 372, "start": 316277, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 320148, "size": 372, "start": 319776, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 320532, "size": 384, "start": 320148, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 322803, "size": 441, "start": 322362, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 323128, "size": 325, "start": 322803, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 325485, "size": 377, "start": 325108, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 325815, "size": 330, "start": 325485, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 329055, "size": 372, "start": 328683, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 334791, "size": 431, "start": 334360, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 335103, "size": 312, "start": 334791, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 339214, "size": 371, "start": 338843, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 339587, "size": 373, "start": 339214, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 341485, "size": 381, "start": 341104, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 341846, "size": 361, "start": 341485, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 346372, "size": 381, "start": 345991, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 351129, "size": 362, "start": 350767, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 351500, "size": 371, "start": 351129, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 355757, "size": 372, "start": 355385, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 356128, "size": 371, "start": 355757, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 357212, "size": 382, "start": 356830, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 359721, "size": 361, "start": 359360, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 360093, "size": 372, "start": 359721, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 362656, "size": 371, "start": 362285, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 363028, "size": 372, "start": 362656, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 366982, "size": 371, "start": 366611, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 367354, "size": 372, "start": 366982, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 367857, "size": 371, "start": 367486, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 369965, "size": 372, "start": 369593, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 370337, "size": 372, "start": 369965, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 372571, "size": 371, "start": 372200, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 372943, "size": 372, "start": 372571, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 375686, "size": 371, "start": 375315, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 376058, "size": 372, "start": 375686, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 376933, "size": 371, "start": 376562, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 379365, "size": 372, "start": 378993, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 379736, "size": 371, "start": 379365, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 382715, "size": 372, "start": 382343, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 383086, "size": 371, "start": 382715, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 388147, "size": 419, "start": 387728, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 389208, "size": 324, "start": 388884, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 389580, "size": 372, "start": 389208, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 392109, "size": 371, "start": 391738, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 392481, "size": 372, "start": 392109, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 393277, "size": 371, "start": 392906, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 393662, "size": 385, "start": 393277, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 397776, "size": 358, "start": 397418, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 398880, "size": 372, "start": 398508, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 399251, "size": 371, "start": 398880, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 402409, "size": 372, "start": 402037, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 402790, "size": 381, "start": 402409, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 403537, "size": 362, "start": 403175, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 409154, "size": 371, "start": 408783, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 409526, "size": 372, "start": 409154, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 410342, "size": 434, "start": 409908, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 410670, "size": 328, "start": 410342, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 415553, "size": 353, "start": 415200, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 415924, "size": 371, "start": 415553, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 416655, "size": 372, "start": 416283, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 417363, "size": 371, "start": 416992, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 417735, "size": 372, "start": 417363, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 420584, "size": 405, "start": 420179, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 420944, "size": 360, "start": 420584, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 421666, "size": 361, "start": 421305, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 422026, "size": 360, "start": 421666, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 422581, "size": 371, "start": 422210, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 423216, "size": 372, "start": 422844, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 423594, "size": 378, "start": 423216, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 425743, "size": 365, "start": 425378, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 426114, "size": 371, "start": 425743, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 426790, "size": 372, "start": 426418, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 427219, "size": 375, "start": 426844, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 427587, "size": 368, "start": 427219, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 428158, "size": 371, "start": 427787, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 428530, "size": 372, "start": 428158, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 430637, "size": 371, "start": 430266, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 431009, "size": 372, "start": 430637, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 431672, "size": 399, "start": 431273, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 432235, "size": 344, "start": 431891, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 432606, "size": 371, "start": 432235, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 433123, "size": 386, "start": 432737, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 433490, "size": 367, "start": 433123, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 435082, "size": 425, "start": 434657, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 435603, "size": 341, "start": 435262, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 435942, "size": 339, "start": 435603, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 436394, "size": 372, "start": 436022, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 436765, "size": 371, "start": 436394, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 437171, "size": 372, "start": 436799, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 437542, "size": 371, "start": 437171, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 438776, "size": 372, "start": 438404, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 439365, "size": 371, "start": 438994, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 439737, "size": 372, "start": 439365, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 440182, "size": 371, "start": 439811, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 440554, "size": 372, "start": 440182, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 441059, "size": 371, "start": 440688, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 441431, "size": 372, "start": 441059, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 445069, "size": 371, "start": 444698, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 445640, "size": 372, "start": 445268, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 446011, "size": 371, "start": 445640, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 446417, "size": 372, "start": 446045, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 446788, "size": 371, "start": 446417, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 448053, "size": 372, "start": 447681, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 448610, "size": 371, "start": 448239, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 448982, "size": 372, "start": 448610, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 449462, "size": 371, "start": 449091, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 449881, "size": 419, "start": 449462, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 450305, "size": 400, "start": 449905, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 450632, "size": 327, "start": 450305, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 454061, "size": 341, "start": 453720, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 454689, "size": 371, "start": 454318, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 455061, "size": 372, "start": 454689, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 456026, "size": 371, "start": 455655, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 456402, "size": 376, "start": 456026, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 456852, "size": 367, "start": 456485, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 459852, "size": 372, "start": 459480, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 460227, "size": 375, "start": 459852, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 462685, "size": 368, "start": 462317, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 463056, "size": 371, "start": 462685, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 466231, "size": 372, "start": 465859, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 466602, "size": 371, "start": 466231, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 469993, "size": 372, "start": 469621, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 471220, "size": 371, "start": 470849, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 471592, "size": 372, "start": 471220, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 476493, "size": 371, "start": 476122, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 476865, "size": 372, "start": 476493, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 478642, "size": 371, "start": 478271, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 479014, "size": 372, "start": 478642, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 482152, "size": 371, "start": 481781, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 486300, "size": 435, "start": 485865, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 486622, "size": 322, "start": 486300, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 488330, "size": 371, "start": 487959, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 488688, "size": 358, "start": 488330, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 493225, "size": 372, "start": 492853, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 496357, "size": 372, "start": 495985, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 496728, "size": 371, "start": 496357, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 501396, "size": 372, "start": 501024, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 501802, "size": 406, "start": 501396, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 503238, "size": 346, "start": 502892, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 503600, "size": 362, "start": 503238, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 509133, "size": 385, "start": 508748, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 510780, "size": 358, "start": 510422, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 511152, "size": 372, "start": 510780, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 513462, "size": 371, "start": 513091, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 513834, "size": 372, "start": 513462, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 516572, "size": 371, "start": 516201, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 520591, "size": 372, "start": 520219, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 520962, "size": 371, "start": 520591, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 524373, "size": 372, "start": 524001, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 524744, "size": 371, "start": 524373, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 525842, "size": 372, "start": 525470, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 526213, "size": 371, "start": 525842, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 529997, "size": 372, "start": 529625, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 535160, "size": 371, "start": 534789, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 535532, "size": 372, "start": 535160, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 537035, "size": 371, "start": 536664, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 537407, "size": 372, "start": 537035, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 537815, "size": 371, "start": 537444, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 538187, "size": 372, "start": 537815, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 540871, "size": 372, "start": 540499, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 541779, "size": 371, "start": 541408, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 542151, "size": 372, "start": 541779, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 545977, "size": 371, "start": 545606, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 546349, "size": 372, "start": 545977, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 547694, "size": 371, "start": 547323, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 551069, "size": 378, "start": 550691, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 551455, "size": 386, "start": 551069, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 552426, "size": 351, "start": 552075, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 552797, "size": 371, "start": 552426, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 556154, "size": 372, "start": 555782, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 556525, "size": 371, "start": 556154, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 557907, "size": 372, "start": 557535, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 558996, "size": 395, "start": 558601, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 559344, "size": 348, "start": 558996, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 560161, "size": 371, "start": 559790, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 560533, "size": 372, "start": 560161, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 563254, "size": 371, "start": 562883, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 564848, "size": 372, "start": 564476, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 565219, "size": 371, "start": 564848, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 566309, "size": 372, "start": 565937, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 566690, "size": 381, "start": 566309, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 567684, "size": 362, "start": 567322, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 568055, "size": 371, "start": 567684, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 571629, "size": 372, "start": 571257, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 573330, "size": 386, "start": 572944, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 573687, "size": 357, "start": 573330, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 576904, "size": 372, "start": 576532, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 577275, "size": 371, "start": 576904, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 578859, "size": 402, "start": 578457, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 579273, "size": 414, "start": 578859, }, - Object { + { "bufferStart": 9271, "duration": 1024, "end": 585320, @@ -2771,8 +2771,8 @@ Array [ `; exports[`getSamples should get first video sample 1`] = ` -Array [ - Object { +[ + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -2780,7 +2780,7 @@ Array [ "size": 7458, "start": 0, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -2788,7 +2788,7 @@ Array [ "size": 1435, "start": 7829, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -2796,7 +2796,7 @@ Array [ "size": 37, "start": 9636, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -2804,7 +2804,7 @@ Array [ "size": 18, "start": 10416, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2812,7 +2812,7 @@ Array [ "size": 38, "start": 11349, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -2820,7 +2820,7 @@ Array [ "size": 137, "start": 12226, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2828,7 +2828,7 @@ Array [ "size": 2085, "start": 12782, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2836,7 +2836,7 @@ Array [ "size": 794, "start": 15615, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -2844,7 +2844,7 @@ Array [ "size": 1665, "start": 17160, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2852,7 +2852,7 @@ Array [ "size": 833, "start": 19549, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2860,7 +2860,7 @@ Array [ "size": 47, "start": 20764, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2868,7 +2868,7 @@ Array [ "size": 1563, "start": 21573, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2876,7 +2876,7 @@ Array [ "size": 820, "start": 23872, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -2884,7 +2884,7 @@ Array [ "size": 1779, "start": 25079, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -2892,7 +2892,7 @@ Array [ "size": 1404, "start": 27649, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2900,7 +2900,7 @@ Array [ "size": 1528, "start": 29791, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2908,7 +2908,7 @@ Array [ "size": 415, "start": 32015, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2916,7 +2916,7 @@ Array [ "size": 1839, "start": 32766, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2924,7 +2924,7 @@ Array [ "size": 449, "start": 35332, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2932,7 +2932,7 @@ Array [ "size": 1685, "start": 36653, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2940,7 +2940,7 @@ Array [ "size": 419, "start": 39105, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -2948,7 +2948,7 @@ Array [ "size": 1292, "start": 39872, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2956,7 +2956,7 @@ Array [ "size": 1510, "start": 41877, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2964,7 +2964,7 @@ Array [ "size": 343, "start": 44103, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2972,7 +2972,7 @@ Array [ "size": 2872, "start": 44805, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2980,7 +2980,7 @@ Array [ "size": 491, "start": 48398, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -2988,7 +2988,7 @@ Array [ "size": 3111, "start": 49572, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -2996,7 +2996,7 @@ Array [ "size": 757, "start": 53393, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3004,7 +3004,7 @@ Array [ "size": 2990, "start": 54496, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3012,7 +3012,7 @@ Array [ "size": 956, "start": 58199, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3020,7 +3020,7 @@ Array [ "size": 2909, "start": 59857, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3028,7 +3028,7 @@ Array [ "size": 483, "start": 63112, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3036,7 +3036,7 @@ Array [ "size": 2936, "start": 64284, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3044,7 +3044,7 @@ Array [ "size": 849, "start": 67907, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3052,7 +3052,7 @@ Array [ "size": 2326, "start": 69496, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3060,7 +3060,7 @@ Array [ "size": 93, "start": 72193, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3068,7 +3068,7 @@ Array [ "size": 3267, "start": 73039, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3076,7 +3076,7 @@ Array [ "size": 670, "start": 77039, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3084,7 +3084,7 @@ Array [ "size": 3304, "start": 78469, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -3092,7 +3092,7 @@ Array [ "size": 2830, "start": 82128, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3100,7 +3100,7 @@ Array [ "size": 967, "start": 85701, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -3108,7 +3108,7 @@ Array [ "size": 354, "start": 87411, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3116,7 +3116,7 @@ Array [ "size": 568, "start": 88136, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -3124,7 +3124,7 @@ Array [ "size": 2419, "start": 89447, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3132,7 +3132,7 @@ Array [ "size": 552, "start": 92609, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3140,7 +3140,7 @@ Array [ "size": 492, "start": 93904, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3148,7 +3148,7 @@ Array [ "size": 3152, "start": 94768, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3156,7 +3156,7 @@ Array [ "size": 2089, "start": 98663, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3164,7 +3164,7 @@ Array [ "size": 2069, "start": 101495, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3172,7 +3172,7 @@ Array [ "size": 2078, "start": 103967, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3180,7 +3180,7 @@ Array [ "size": 2326, "start": 106808, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3188,7 +3188,7 @@ Array [ "size": 3901, "start": 109826, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3196,7 +3196,7 @@ Array [ "size": 913, "start": 114470, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3204,7 +3204,7 @@ Array [ "size": 4106, "start": 115764, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3212,7 +3212,7 @@ Array [ "size": 953, "start": 120603, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -3220,7 +3220,7 @@ Array [ "size": 3400, "start": 122299, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3228,7 +3228,7 @@ Array [ "size": 663, "start": 126575, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3236,7 +3236,7 @@ Array [ "size": 418, "start": 127722, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -3244,7 +3244,7 @@ Array [ "size": 3623, "start": 128877, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3252,7 +3252,7 @@ Array [ "size": 1361, "start": 133166, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -3260,7 +3260,7 @@ Array [ "size": 667, "start": 134914, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3268,7 +3268,7 @@ Array [ "size": 82, "start": 136253, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3276,7 +3276,7 @@ Array [ "size": 4166, "start": 136980, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3284,7 +3284,7 @@ Array [ "size": 913, "start": 141881, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3292,7 +3292,7 @@ Array [ "size": 2238, "start": 143165, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3300,7 +3300,7 @@ Array [ "size": 454, "start": 146146, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3308,7 +3308,7 @@ Array [ "size": 2206, "start": 147343, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3316,7 +3316,7 @@ Array [ "size": 3711, "start": 149921, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3324,7 +3324,7 @@ Array [ "size": 2876, "start": 154375, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3332,7 +3332,7 @@ Array [ "size": 3807, "start": 157994, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3340,7 +3340,7 @@ Array [ "size": 1024, "start": 162557, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3348,7 +3348,7 @@ Array [ "size": 3593, "start": 163939, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -3356,7 +3356,7 @@ Array [ "size": 2610, "start": 168275, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3364,7 +3364,7 @@ Array [ "size": 986, "start": 171649, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3372,7 +3372,7 @@ Array [ "size": 641, "start": 173357, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3380,7 +3380,7 @@ Array [ "size": 2123, "start": 174370, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3388,7 +3388,7 @@ Array [ "size": 4478, "start": 177236, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3396,7 +3396,7 @@ Array [ "size": 1098, "start": 182457, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3404,7 +3404,7 @@ Array [ "size": 4234, "start": 183927, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3412,7 +3412,7 @@ Array [ "size": 1497, "start": 188904, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3420,7 +3420,7 @@ Array [ "size": 3546, "start": 191144, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3428,7 +3428,7 @@ Array [ "size": 1028, "start": 195433, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3436,7 +3436,7 @@ Array [ "size": 5635, "start": 196832, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3444,7 +3444,7 @@ Array [ "size": 1914, "start": 203210, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3452,7 +3452,7 @@ Array [ "size": 3899, "start": 205867, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3460,7 +3460,7 @@ Array [ "size": 144, "start": 210138, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3468,7 +3468,7 @@ Array [ "size": 4076, "start": 211025, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3476,7 +3476,7 @@ Array [ "size": 1084, "start": 215868, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3484,7 +3484,7 @@ Array [ "size": 4476, "start": 217671, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3492,7 +3492,7 @@ Array [ "size": 1216, "start": 222518, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3500,7 +3500,7 @@ Array [ "size": 2843, "start": 224477, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3508,7 +3508,7 @@ Array [ "size": 788, "start": 228090, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3516,7 +3516,7 @@ Array [ "size": 3162, "start": 229627, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3524,7 +3524,7 @@ Array [ "size": 1153, "start": 233152, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3532,7 +3532,7 @@ Array [ "size": 2503, "start": 235024, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3540,7 +3540,7 @@ Array [ "size": 895, "start": 238270, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3548,7 +3548,7 @@ Array [ "size": 3231, "start": 239585, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3556,7 +3556,7 @@ Array [ "size": 1523, "start": 243521, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3564,7 +3564,7 @@ Array [ "size": 3142, "start": 245777, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3572,7 +3572,7 @@ Array [ "size": 1589, "start": 249662, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3580,7 +3580,7 @@ Array [ "size": 5360, "start": 251622, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3588,7 +3588,7 @@ Array [ "size": 1745, "start": 257776, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3596,7 +3596,7 @@ Array [ "size": 2741, "start": 260213, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3604,7 +3604,7 @@ Array [ "size": 661, "start": 263326, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3612,7 +3612,7 @@ Array [ "size": 3152, "start": 264754, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3620,7 +3620,7 @@ Array [ "size": 3586, "start": 268625, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3628,7 +3628,7 @@ Array [ "size": 1281, "start": 272954, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3636,7 +3636,7 @@ Array [ "size": 3872, "start": 274619, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3644,7 +3644,7 @@ Array [ "size": 1493, "start": 279275, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3652,7 +3652,7 @@ Array [ "size": 3045, "start": 281494, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3660,7 +3660,7 @@ Array [ "size": 99, "start": 285246, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3668,7 +3668,7 @@ Array [ "size": 3426, "start": 285716, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3676,7 +3676,7 @@ Array [ "size": 1246, "start": 289885, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3684,7 +3684,7 @@ Array [ "size": 3755, "start": 291874, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3692,7 +3692,7 @@ Array [ "size": 3351, "start": 296001, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3700,7 +3700,7 @@ Array [ "size": 1287, "start": 300098, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3708,7 +3708,7 @@ Array [ "size": 2098, "start": 302125, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3716,7 +3716,7 @@ Array [ "size": 3490, "start": 304966, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3724,7 +3724,7 @@ Array [ "size": 2956, "start": 308827, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3732,7 +3732,7 @@ Array [ "size": 1039, "start": 312537, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3740,7 +3740,7 @@ Array [ "size": 1969, "start": 314308, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3748,7 +3748,7 @@ Array [ "size": 3127, "start": 316649, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3756,7 +3756,7 @@ Array [ "size": 1830, "start": 320532, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3764,7 +3764,7 @@ Array [ "size": 1980, "start": 323128, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3772,7 +3772,7 @@ Array [ "size": 2868, "start": 325815, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3780,7 +3780,7 @@ Array [ "size": 5305, "start": 329055, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3788,7 +3788,7 @@ Array [ "size": 3740, "start": 335103, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3796,7 +3796,7 @@ Array [ "size": 1517, "start": 339587, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3804,7 +3804,7 @@ Array [ "size": 4145, "start": 341846, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3812,7 +3812,7 @@ Array [ "size": 4395, "start": 346372, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3820,7 +3820,7 @@ Array [ "size": 3885, "start": 351500, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3828,7 +3828,7 @@ Array [ "size": 702, "start": 356128, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3836,7 +3836,7 @@ Array [ "size": 2148, "start": 357212, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3844,7 +3844,7 @@ Array [ "size": 2192, "start": 360093, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3852,7 +3852,7 @@ Array [ "size": 3583, "start": 363028, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3860,7 +3860,7 @@ Array [ "size": 132, "start": 367354, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3868,7 +3868,7 @@ Array [ "size": 1736, "start": 367857, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3876,7 +3876,7 @@ Array [ "size": 1863, "start": 370337, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3884,7 +3884,7 @@ Array [ "size": 2372, "start": 372943, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3892,7 +3892,7 @@ Array [ "size": 504, "start": 376058, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3900,7 +3900,7 @@ Array [ "size": 2060, "start": 376933, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -3908,7 +3908,7 @@ Array [ "size": 2607, "start": 379736, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3916,7 +3916,7 @@ Array [ "size": 4642, "start": 383086, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3924,7 +3924,7 @@ Array [ "size": 737, "start": 388147, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3932,7 +3932,7 @@ Array [ "size": 2158, "start": 389580, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3940,7 +3940,7 @@ Array [ "size": 425, "start": 392481, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3948,7 +3948,7 @@ Array [ "size": 3756, "start": 393662, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3956,7 +3956,7 @@ Array [ "size": 732, "start": 397776, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3964,7 +3964,7 @@ Array [ "size": 2786, "start": 399251, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3972,7 +3972,7 @@ Array [ "size": 385, "start": 402790, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -3980,7 +3980,7 @@ Array [ "size": 5246, "start": 403537, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -3988,7 +3988,7 @@ Array [ "size": 382, "start": 409526, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -3996,7 +3996,7 @@ Array [ "size": 4530, "start": 410670, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4004,7 +4004,7 @@ Array [ "size": 359, "start": 415924, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4012,7 +4012,7 @@ Array [ "size": 337, "start": 416655, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4020,7 +4020,7 @@ Array [ "size": 2444, "start": 417735, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4028,7 +4028,7 @@ Array [ "size": 361, "start": 420944, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4036,7 +4036,7 @@ Array [ "size": 184, "start": 422026, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4044,7 +4044,7 @@ Array [ "size": 263, "start": 422581, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4052,7 +4052,7 @@ Array [ "size": 1784, "start": 423594, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4060,7 +4060,7 @@ Array [ "size": 304, "start": 426114, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4068,7 +4068,7 @@ Array [ "size": 54, "start": 426790, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4076,7 +4076,7 @@ Array [ "size": 200, "start": 427587, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4084,7 +4084,7 @@ Array [ "size": 1736, "start": 428530, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4092,7 +4092,7 @@ Array [ "size": 264, "start": 431009, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4100,7 +4100,7 @@ Array [ "size": 219, "start": 431672, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4108,7 +4108,7 @@ Array [ "size": 131, "start": 432606, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4116,7 +4116,7 @@ Array [ "size": 1167, "start": 433490, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4124,7 +4124,7 @@ Array [ "size": 180, "start": 435082, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4132,7 +4132,7 @@ Array [ "size": 80, "start": 435942, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4140,7 +4140,7 @@ Array [ "size": 34, "start": 436765, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4148,7 +4148,7 @@ Array [ "size": 862, "start": 437542, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4156,7 +4156,7 @@ Array [ "size": 218, "start": 438776, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4164,7 +4164,7 @@ Array [ "size": 74, "start": 439737, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4172,7 +4172,7 @@ Array [ "size": 134, "start": 440554, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -4180,7 +4180,7 @@ Array [ "size": 3267, "start": 441431, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4188,7 +4188,7 @@ Array [ "size": 199, "start": 445069, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4196,7 +4196,7 @@ Array [ "size": 34, "start": 446011, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4204,7 +4204,7 @@ Array [ "size": 893, "start": 446788, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4212,7 +4212,7 @@ Array [ "size": 186, "start": 448053, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4220,7 +4220,7 @@ Array [ "size": 109, "start": 448982, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4228,7 +4228,7 @@ Array [ "size": 24, "start": 449881, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -4236,7 +4236,7 @@ Array [ "size": 3088, "start": 450632, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4244,7 +4244,7 @@ Array [ "size": 257, "start": 454061, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4252,7 +4252,7 @@ Array [ "size": 594, "start": 455061, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4260,7 +4260,7 @@ Array [ "size": 83, "start": 456402, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4268,7 +4268,7 @@ Array [ "size": 2628, "start": 456852, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4276,7 +4276,7 @@ Array [ "size": 2090, "start": 460227, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4284,7 +4284,7 @@ Array [ "size": 2803, "start": 463056, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4292,7 +4292,7 @@ Array [ "size": 3019, "start": 466602, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4300,7 +4300,7 @@ Array [ "size": 856, "start": 469993, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4308,7 +4308,7 @@ Array [ "size": 4530, "start": 471592, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4316,7 +4316,7 @@ Array [ "size": 1406, "start": 476865, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4324,7 +4324,7 @@ Array [ "size": 2767, "start": 479014, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4332,7 +4332,7 @@ Array [ "size": 3713, "start": 482152, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4340,7 +4340,7 @@ Array [ "size": 1337, "start": 486622, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4348,7 +4348,7 @@ Array [ "size": 4165, "start": 488688, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4356,7 +4356,7 @@ Array [ "size": 2760, "start": 493225, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4364,7 +4364,7 @@ Array [ "size": 4296, "start": 496728, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4372,7 +4372,7 @@ Array [ "size": 1090, "start": 501802, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4380,7 +4380,7 @@ Array [ "size": 5148, "start": 503600, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4388,7 +4388,7 @@ Array [ "size": 1289, "start": 509133, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4396,7 +4396,7 @@ Array [ "size": 1939, "start": 511152, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4404,7 +4404,7 @@ Array [ "size": 2367, "start": 513834, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4412,7 +4412,7 @@ Array [ "size": 3647, "start": 516572, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4420,7 +4420,7 @@ Array [ "size": 3039, "start": 520962, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4428,7 +4428,7 @@ Array [ "size": 726, "start": 524744, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4436,7 +4436,7 @@ Array [ "size": 3412, "start": 526213, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2048, "duration": 512, @@ -4444,7 +4444,7 @@ Array [ "size": 4792, "start": 529997, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4452,7 +4452,7 @@ Array [ "size": 1132, "start": 535532, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4460,7 +4460,7 @@ Array [ "size": 37, "start": 537407, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4468,7 +4468,7 @@ Array [ "size": 2312, "start": 538187, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4476,7 +4476,7 @@ Array [ "size": 537, "start": 540871, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4484,7 +4484,7 @@ Array [ "size": 3455, "start": 542151, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4492,7 +4492,7 @@ Array [ "size": 974, "start": 546349, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4500,7 +4500,7 @@ Array [ "size": 2997, "start": 547694, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4508,7 +4508,7 @@ Array [ "size": 620, "start": 551455, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4516,7 +4516,7 @@ Array [ "size": 2985, "start": 552797, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4524,7 +4524,7 @@ Array [ "size": 1010, "start": 556525, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4532,7 +4532,7 @@ Array [ "size": 694, "start": 557907, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4540,7 +4540,7 @@ Array [ "size": 446, "start": 559344, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 2560, "duration": 512, @@ -4548,7 +4548,7 @@ Array [ "size": 2350, "start": 560533, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1024, "duration": 512, @@ -4556,7 +4556,7 @@ Array [ "size": 1222, "start": 563254, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 0, "duration": 512, @@ -4564,7 +4564,7 @@ Array [ "size": 718, "start": 565219, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4572,7 +4572,7 @@ Array [ "size": 632, "start": 566690, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4580,7 +4580,7 @@ Array [ "size": 3202, "start": 568055, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4588,7 +4588,7 @@ Array [ "size": 1315, "start": 571629, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 1536, "duration": 512, @@ -4596,7 +4596,7 @@ Array [ "size": 2845, "start": 573687, }, - Object { + { "bufferStart": 9271, "compositionTimeOffset": 512, "duration": 512, @@ -4608,246 +4608,246 @@ Array [ `; exports[`getSamples should get last audio sample 1`] = ` -Array [ - Object { +[ + { "bufferStart": 588544, "duration": 1024, "end": 9886, "size": 371, "start": 9515, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 10258, "size": 372, "start": 9886, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 11311, "size": 371, "start": 10940, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 11683, "size": 372, "start": 11311, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 13481, "size": 371, "start": 13110, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 16853, "size": 372, "start": 16481, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 17224, "size": 371, "start": 16853, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 19886, "size": 372, "start": 19514, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 20257, "size": 371, "start": 19886, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 20708, "size": 372, "start": 20336, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 21079, "size": 371, "start": 20708, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 23390, "size": 372, "start": 23018, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 25529, "size": 371, "start": 25158, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 25901, "size": 372, "start": 25529, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 28794, "size": 371, "start": 28423, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 29166, "size": 372, "start": 28794, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 31069, "size": 371, "start": 30698, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 33144, "size": 372, "start": 32772, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 33515, "size": 371, "start": 33144, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 35322, "size": 372, "start": 34950, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 35694, "size": 372, "start": 35322, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 38296, "size": 371, "start": 37925, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 38668, "size": 372, "start": 38296, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 41056, "size": 371, "start": 40685, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 43442, "size": 372, "start": 43070, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 43813, "size": 371, "start": 43442, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 45943, "size": 372, "start": 45571, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 46362, "size": 419, "start": 45943, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 48593, "size": 324, "start": 48269, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 48964, "size": 371, "start": 48593, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 51017, "size": 372, "start": 50645, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 53115, "size": 371, "start": 52744, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 53487, "size": 372, "start": 53115, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 55142, "size": 371, "start": 54771, }, - Object { + { "bufferStart": 588544, "duration": 1024, "end": 55514, @@ -4858,8 +4858,8 @@ Array [ `; exports[`getSamples should get last video sample 1`] = ` -Array [ - Object { +[ + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4867,7 +4867,7 @@ Array [ "size": 5748, "start": 0, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1536, "duration": 512, @@ -4875,7 +4875,7 @@ Array [ "size": 3468, "start": 6047, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 512, "duration": 512, @@ -4883,7 +4883,7 @@ Array [ "size": 682, "start": 10258, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4891,7 +4891,7 @@ Array [ "size": 1427, "start": 11683, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4899,7 +4899,7 @@ Array [ "size": 3000, "start": 13481, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4907,7 +4907,7 @@ Array [ "size": 2290, "start": 17224, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4915,7 +4915,7 @@ Array [ "size": 79, "start": 20257, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4923,7 +4923,7 @@ Array [ "size": 1939, "start": 21079, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4931,7 +4931,7 @@ Array [ "size": 1768, "start": 23390, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4939,7 +4939,7 @@ Array [ "size": 2522, "start": 25901, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4947,7 +4947,7 @@ Array [ "size": 1532, "start": 29166, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4955,7 +4955,7 @@ Array [ "size": 1703, "start": 31069, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4963,7 +4963,7 @@ Array [ "size": 1435, "start": 33515, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4971,7 +4971,7 @@ Array [ "size": 2231, "start": 35694, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4979,7 +4979,7 @@ Array [ "size": 2017, "start": 38668, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4987,7 +4987,7 @@ Array [ "size": 2014, "start": 41056, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -4995,7 +4995,7 @@ Array [ "size": 1758, "start": 43813, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -5003,7 +5003,7 @@ Array [ "size": 1907, "start": 46362, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -5011,7 +5011,7 @@ Array [ "size": 1681, "start": 48964, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -5019,7 +5019,7 @@ Array [ "size": 1727, "start": 51017, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, @@ -5027,7 +5027,7 @@ Array [ "size": 1284, "start": 53487, }, - Object { + { "bufferStart": 588544, "compositionTimeOffset": 1024, "duration": 512, diff --git a/packages/griffith-standalone/package.json b/packages/griffith-standalone/package.json index a90176f2..a7927f0d 100644 --- a/packages/griffith-standalone/package.json +++ b/packages/griffith-standalone/package.json @@ -15,9 +15,8 @@ "build": "rollup -c" }, "devDependencies": { - "@types/react-dom": "^17.0.9", "griffith": "^1.31.0", - "react": "^16.8", - "react-dom": "^16.8" + "react": "^18.2.0", + "react-dom": "^18.2.0" } } diff --git a/packages/griffith-standalone/rollup.config.js b/packages/griffith-standalone/rollup.config.js index d01afe8b..ee33970e 100644 --- a/packages/griffith-standalone/rollup.config.js +++ b/packages/griffith-standalone/rollup.config.js @@ -1,3 +1,5 @@ +/* eslint-disable import/namespace */ +/* eslint-disable import/default */ import path from 'path' import findCacheDir from 'find-cache-dir' import typescript from 'rollup-plugin-typescript2' @@ -5,7 +7,7 @@ import resolve from '@rollup/plugin-node-resolve' import replace from '@rollup/plugin-replace' import commonjs from '@rollup/plugin-commonjs' import alias from '@rollup/plugin-alias' -import {terser} from 'rollup-plugin-terser' +import terser from '@rollup/plugin-terser' const resolveCwd = path.resolve.bind(null, process.cwd()) const pkg = require(resolveCwd('package.json')) diff --git a/packages/griffith-utils/src/__tests__/__snapshots__/ua.spec.ts.snap b/packages/griffith-utils/src/__tests__/__snapshots__/ua.spec.ts.snap new file mode 100644 index 00000000..f5373a36 --- /dev/null +++ b/packages/griffith-utils/src/__tests__/__snapshots__/ua.spec.ts.snap @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`parse 1`] = ` +{ + "isAndroid": true, + "isIE": false, + "isMobile": true, + "isSafari": false, +} +`; + +exports[`ua 1`] = ` +{ + "isAndroid": false, + "isIE": false, + "isMobile": false, + "isSafari": false, +} +`; diff --git a/packages/griffith-utils/src/__tests__/ua.spec.ts b/packages/griffith-utils/src/__tests__/ua.spec.ts index 15784c58..94c1acf4 100644 --- a/packages/griffith-utils/src/__tests__/ua.spec.ts +++ b/packages/griffith-utils/src/__tests__/ua.spec.ts @@ -5,14 +5,7 @@ import ua, {parseUA} from '../ua' test('ua', () => { - expect(ua).toMatchInlineSnapshot(` - Object { - "isAndroid": false, - "isIE": false, - "isMobile": false, - "isSafari": false, - } - `) + expect(ua).toMatchSnapshot() }) test('parse', () => { @@ -20,12 +13,5 @@ test('parse', () => { parseUA( 'Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Mobile Safari/537.36' ) - ).toMatchInlineSnapshot(` - Object { - "isAndroid": true, - "isIE": false, - "isMobile": true, - "isSafari": false, - } - `) + ).toMatchSnapshot() }) diff --git a/packages/griffith/package.json b/packages/griffith/package.json index 6fdbdb29..81d3d267 100644 --- a/packages/griffith/package.json +++ b/packages/griffith/package.json @@ -18,8 +18,7 @@ "build": "rollup -c ../../rollup.config.js" }, "peerDependencies": { - "react": "^16.8 || ^17", - "react-dom": "^16.8 || ^17" + "react": "^16.8 || ^17 || ^18" }, "dependencies": { "@types/lodash": "^4.14.172", diff --git a/packages/griffith/src/components/__tests__/__snapshots__/Layer.spec.tsx.snap b/packages/griffith/src/components/__tests__/__snapshots__/Layer.spec.tsx.snap index b1895366..80199f08 100644 --- a/packages/griffith/src/components/__tests__/__snapshots__/Layer.spec.tsx.snap +++ b/packages/griffith/src/components/__tests__/__snapshots__/Layer.spec.tsx.snap @@ -2,4 +2,4 @@ exports[`Layer get Layer component 1`] = `""`; -exports[`Layer get Layer component 2`] = `"
123
"`; +exports[`Layer get Layer component 2`] = `"
123
"`; diff --git a/packages/griffith/src/components/__tests__/__snapshots__/MinimalTimeline.spec.tsx.snap b/packages/griffith/src/components/__tests__/__snapshots__/MinimalTimeline.spec.tsx.snap index 7c21f0b6..83f221ef 100644 --- a/packages/griffith/src/components/__tests__/__snapshots__/MinimalTimeline.spec.tsx.snap +++ b/packages/griffith/src/components/__tests__/__snapshots__/MinimalTimeline.spec.tsx.snap @@ -6,21 +6,20 @@ exports[`MinimalTimeline get MinimalTimeline component 1`] = ` class="root_17bkmwy-o_O-root_1u52a97-o_O-root_3hmsj-o_O-root_qckecg" role="slider" > -
+
+ style="width: 100%; transform: scaleX(0); transform-origin: left;" + />
- `; exports[`MinimalTimeline get MinimalTimeline component 2`] = ` @@ -29,23 +28,18 @@ exports[`MinimalTimeline get MinimalTimeline component 2`] = ` class="root_17bkmwy-o_O-root_1u52a97-o_O-root_3hmsj-o_O-root_qckecg" role="slider" > -
+
+ style="width: 100%; transform: scaleX(0.3292470120833653); transform-origin: left;" + />
- `; diff --git a/packages/griffith/src/components/__tests__/__snapshots__/VolumeSlide.spec.tsx.snap b/packages/griffith/src/components/__tests__/__snapshots__/VolumeSlide.spec.tsx.snap index 08ff4356..765aff17 100644 --- a/packages/griffith/src/components/__tests__/__snapshots__/VolumeSlide.spec.tsx.snap +++ b/packages/griffith/src/components/__tests__/__snapshots__/VolumeSlide.spec.tsx.snap @@ -20,7 +20,7 @@ exports[`VolumeSlider get VolumeSlider component 1`] = `
-
00:06 / 03:02
+
+ 00:06 / 03:02 +
- `; diff --git a/packages/griffith/src/components/items/__tests__/__snapshots__/FullScreenButtonItem.spec.tsx.snap b/packages/griffith/src/components/items/__tests__/__snapshots__/FullScreenButtonItem.spec.tsx.snap index c562b77a..85d9c91d 100644 --- a/packages/griffith/src/components/items/__tests__/__snapshots__/FullScreenButtonItem.spec.tsx.snap +++ b/packages/griffith/src/components/items/__tests__/__snapshots__/FullScreenButtonItem.spec.tsx.snap @@ -2,19 +2,33 @@ exports[`FullScreenButtonItem get FullScreenButtonItem component 1`] = `
- - `; diff --git a/packages/griffith/src/components/items/__tests__/__snapshots__/PlayButtonItem.spec.tsx.snap b/packages/griffith/src/components/items/__tests__/__snapshots__/PlayButtonItem.spec.tsx.snap index 6fbed45a..9b1f9535 100644 --- a/packages/griffith/src/components/items/__tests__/__snapshots__/PlayButtonItem.spec.tsx.snap +++ b/packages/griffith/src/components/items/__tests__/__snapshots__/PlayButtonItem.spec.tsx.snap @@ -2,17 +2,33 @@ exports[`PlayButtonItem get PlayButtonItem component 1`] = `
-
- `; diff --git a/packages/griffith/src/components/items/__tests__/__snapshots__/TimelineItem.spec.tsx.snap b/packages/griffith/src/components/items/__tests__/__snapshots__/TimelineItem.spec.tsx.snap index 8867b86b..9d9cadcd 100644 --- a/packages/griffith/src/components/items/__tests__/__snapshots__/TimelineItem.spec.tsx.snap +++ b/packages/griffith/src/components/items/__tests__/__snapshots__/TimelineItem.spec.tsx.snap @@ -2,48 +2,43 @@ exports[`TimelineItem get TimelineItem component 1`] = `
-
-
+
+
-
-
+
+
+ class="bar_1kpj1ed-o_O-bar_g2nzkb-o_O-bar_1kvrquw-o_O-buffered_gsgvhl" + style="width: 100%; transform: scaleX(0.06417112299465241); transform-origin: left;" + />
+ style="width: 100%; transform: scaleX(0.0374331550802139); transform-origin: left;" + />
-
+
- `; diff --git a/packages/griffith/src/components/items/__tests__/__snapshots__/VolumeItem.spec.tsx.snap b/packages/griffith/src/components/items/__tests__/__snapshots__/VolumeItem.spec.tsx.snap index 183749b6..8bb3ad86 100644 --- a/packages/griffith/src/components/items/__tests__/__snapshots__/VolumeItem.spec.tsx.snap +++ b/packages/griffith/src/components/items/__tests__/__snapshots__/VolumeItem.spec.tsx.snap @@ -2,42 +2,56 @@ exports[`VolumeItem get VolumeItem component 1`] = `
-