GithubHelp home page GithubHelp logo

bbc / adhere-lib Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 2.02 MB

Javascript library for processing AD profile TTML2 and presenting with an HTML video element

License: Apache License 2.0

JavaScript 98.68% Shell 1.32%

adhere-lib's People

Contributors

nigelmegitt avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

chrdavid

adhere-lib's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency babel-loader to v8.3.0
  • Update dependency @cucumber/cucumber to v10
  • Update dependency ava to v6
  • Update dependency babel-loader to v9
  • Update dependency webpack-cli to v5
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @ava/babel-preset-stage-4 4.0.0
  • xml-query 1.5.0
  • xml-reader 2.4.3
  • @babel/core 7.15.5
  • @babel/eslint-parser 7.15.4
  • @babel/preset-env 7.15.6
  • @babel/register 7.15.3
  • @cucumber/cucumber 7.3.1
  • ava 3.15.0
  • babel-loader 8.2.2
  • babel-plugin-istanbul 6.0.0
  • babel-plugin-transform-class-properties 6.24.1
  • base64-js 1.5.1
  • browser-env 3.3.0
  • eslint 7.32.0
  • eslint-config-walmart 2.2.1
  • eslint-plugin-filenames 1.3.2
  • eslint-plugin-import 2.24.2
  • eslint-plugin-jsx-a11y 6.4.1
  • eslint-plugin-react 7.25.2
  • nyc 15.1.0
  • tap-nyan 1.1.0
  • webpack 5.53.0
  • webpack-cli 4.8.0
  • webpack-dev-server 4.2.1
  • node >=12.12.0
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

Audio files should be preloaded before use for better sync before playback.

If playing back on a connection that isn't particularly fast, there will be a delay before the audio sources start playing back. We should make a cue for a certain number of seconds before hand to set .preload = true on the media so that it is ready to go when it hits play.

We should also at this point investigate if we can use https://www.w3.org/TR/media-frags/

#t=10,20

To truncate how much gets downloaded when preloading - the behaviour likely depends upon the browser, but worth looking at.

Support DAPT

  • Check parsing works correctly
  • Deal with different languages

Create tests

This library has zero tests of any sort! It should have some...

Support `animation @fill`

The TTML2 animate element supports a fill attribute.

The default of "remove" means that at the end of the animation, the end value is reverted. In general we want the semantic associated with the alternative value, "freeze" to apply, where whatever the end value is gets retained.

For example:

        <div begin="0s" end="2.3s">
            <animate begin="0.0s" end="0.2s" tta:gain="1;0.4"/>
            <animate begin="2.1s" end="2.3s" tta:gain="0.4;1"/>

This varies the gain from 1 -> 0.4 between 0.0 and 0.2s, and then varies it from 0.4 -> 1 between 2.1s and 2.3s. But what happens between 0.2s and 2.1s? By default the gain value reverts to its default of 1, but we want to "freeze" it at 0.4 in this example:

        <div begin="0s" end="2.3s">
            <animate begin="0.0s" end="0.2s" fill="freeze" tta:gain="1;0.4"/>
            <animate begin="2.1s" end="2.3s" tta:gain="0.4;1"/>

Our current default behaviour is actually "freeze" but that's wrong - it should be "remove" according to the spec.

Overlapping time audio cues won't work

If two audio cues are simultaneously active, it will cause problems with the default audio output - On a leaf node becoming inactive, the default audio output will be switched on, which will work when one leaf node is active but if two are, it will play the default output when the second is still active. Instead we should maintain a list of active leaf nodes, so we only turn on the default when 0 leaves are active. This might be lower priority to fix because although overlapping audio cues are allowed, they're a bit of an edge case.

Lots of audio nodes produced where none need be

All audio-participating nodes, that is, all those in the ancestry of leaf nodes, are producing audio nodes for the graph. Nodes in the XML with no audio attributes do no change the audio, but are still producing gain nodes with a gain of 1 and pan nodes with a pan of 0. We should remove these superfluous audio nodes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.