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

Fixed setting the source to an empty string #1905

Closed
wants to merge 1 commit into from

Conversation

heff
Copy link
Member

@heff heff commented Feb 27, 2015

Fixes #1785

@heff heff mentioned this pull request Feb 27, 2015
vjs.MediaTechController.withSourceHandlers(Tech);

Tech.nativeSourceHandler = {
handleSource: function(){ usedNative = true; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love the weird indirection here. Why not just do the assertion right in this callback and set the number of expected assertions to 1?

@mmcc
Copy link
Member

mmcc commented Feb 27, 2015

Otherwise 👍

@heff
Copy link
Member Author

heff commented Feb 27, 2015

Cleaned up the test order

@heff heff closed this in 20a4184 Feb 28, 2015
@@ -229,3 +229,25 @@ test('should add the source hanlder interface to a tech', function(){
tech.dispose();
ok(disposeCalled, 'the handler dispose method was called when the tech was disposed');
});

test('should handle unsupported sources with the source hanlder API', function(){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handler*

jgubman added a commit to jgubman/video.js that referenced this pull request Apr 16, 2015
* 'stable' of https://github.com/videojs/video.js: (115 commits)
  Release v4.12.5
  Updated to videojs-swf v4.5.4 to fix a potential security issue. closes videojs#1955
  Release v4.12.4
  Randomized the Google Analytics calls to stay under the limit. closes videojs#1916
  Release v4.12.3
  added bin file for returning the current version
  @heff fixed setting the source to an empty string. closes videojs#1905
  Switched to grunt-aws-s3 for CDN uploads
  Release v4.12.2
  manually tag before github-release
  remove tagrelease and commit unstaged changes manually (github-release handles tagging)
  fixing undefined package reference in cdn-links task
  @gkatsev fixed disabling of default text tracks. closes videojs#1892
  breaking grunt tasks out into separate files to clean up the main Gruntfile. Also removed unused requires from the primary Gruntfile and making sure they are in the appropriate task file.
  Release 4.12.1
  Only rely on selectedIndex to set select option. Firefox recently added selectedOptions support, however, unlike chrome and other browsers, they made it read-only and have it throw an error. In my testing (via http://jsfiddle.net/vwvdywf9/), on various browsers and platforms, just using selectedIndex was sufficient to change the selected option.
  Store text tracks on player not tech
  Moved s3 config to environment variables
  Release 4.12.0
  Cleaned up inconsistencies in the changelog
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants