-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Conversation
vjs.MediaTechController.withSourceHandlers(Tech); | ||
|
||
Tech.nativeSourceHandler = { | ||
handleSource: function(){ usedNative = true; } |
There was a problem hiding this comment.
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?
Otherwise 👍 |
Cleaned up the test order |
@@ -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(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handler*
* '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 ...
Fixes #1785