Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/current source #2678

Merged
merged 3 commits into from
Nov 3, 2016
Merged

Commits on Aug 26, 2016

  1. @chemoish add the ability to obtain current source object + current s…

    …ource objects—when using `<source>` or `src()`.
    
    This is needed for source retrival for two use cases:
    - preroll
    - resolution switch (kind of)
    
    Currently there is no way of accessing the source object for any DRM specified content. Plugin access only has API methods to `currentSrc` and `currentType`.
    
    This will allow for `currentSource` and `currentSources` to return unverified source object(s).
    
    # Conflicts:
    #	src/js/player.js
    #	test/unit/player.js
    Carey Hinoki committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    be8341d View commit details
    Browse the repository at this point in the history
  2. @chemoish when the src redefines the current source, with a single so…

    …urce, have the current sources be set to null.
    
    When the `currentSources()` are called after `src('http://example.com')`, expect the `currentSources()` to only return the newly set source.
    This way sources, via `<source>` or `src([...])` list, should never be out of sync when redefining a single source.
    
    Updating tests to specify behavior changes. Remove autoplay from fixtures to bypass `loadTech()` ramifications.
    
    # Conflicts:
    #	src/js/player.js
    #	test/unit/player.js
    Carey Hinoki committed Aug 26, 2016
    Configuration menu
    Copy the full SHA
    5248d86 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2016

  1. refactor(player): Update currentSources to return [] and `current…

    …Source` to return `{}` when `src` is `''`.
    
    NOTE: these tests only pass because they are hitting the `cache_`.
    
    - Fix tests
    - Add method to `TechFaker`
    chemoish committed Sep 22, 2016
    Configuration menu
    Copy the full SHA
    3a4b293 View commit details
    Browse the repository at this point in the history