Skip to content

Commit

Permalink
Remove played getter from flash
Browse files Browse the repository at this point in the history
The SWF doesn't have an implementation of played so allow Flash to fallback to the base tech implementation.
  • Loading branch information
dmlap committed Jul 21, 2015
1 parent 42a8a37 commit 64b785b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/js/tech/flash.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @file flash.js
* @file flash.js
* VideoJS-SWF - Custom Flash Player with HTML5-ish API
* https://github.com/zencoder/video-js-swf
* Not using setupTriggers. Using global onEvent func to distribute events
Expand Down Expand Up @@ -124,8 +124,8 @@ class Flash extends Tech {
/**
* Get/set video
*
* @param {Object=} src Source object
* @return {Object}
* @param {Object=} src Source object
* @return {Object}
* @method src
*/
src(src) {
Expand All @@ -140,7 +140,7 @@ class Flash extends Tech {
/**
* Set video
*
* @param {Object=} src Source object
* @param {Object=} src Source object
* @deprecated
* @method setSrc
*/
Expand All @@ -160,7 +160,7 @@ class Flash extends Tech {
/**
* Set current time
*
* @param {Number} time Current time of video
* @param {Number} time Current time of video
* @method setCurrentTime
*/
setCurrentTime(time) {
Expand All @@ -172,7 +172,7 @@ class Flash extends Tech {
/**
* Get current time
*
* @param {Number=} time Current time of video
* @param {Number=} time Current time of video
* @return {Number} Current time
* @method currentTime
*/
Expand Down Expand Up @@ -240,19 +240,19 @@ class Flash extends Tech {
/**
* Get buffered time range
*
* @return {TimeRangeObject}
* @return {TimeRangeObject}
* @method buffered
*/
buffered() {
return createTimeRange(0, this.el_.vjs_getProperty('buffered'));
}

/**
* Get fullscreen support -
* Get fullscreen support -
* Flash does not allow fullscreen through javascript
* so always returns false
*
* @return {Boolean} false
* @return {Boolean} false
* @method supportsFullScreen
*/
supportsFullScreen() {
Expand All @@ -264,7 +264,7 @@ class Flash extends Tech {
* Flash does not allow fullscreen through javascript
* so always returns false
*
* @return {Boolean} false
* @return {Boolean} false
* @method enterFullScreen
*/
enterFullScreen() {
Expand All @@ -277,7 +277,7 @@ class Flash extends Tech {
// Create setters and getters for attributes
const _api = Flash.prototype;
const _readWrite = 'rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted'.split(',');
const _readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,played,ended,videoTracks,audioTracks,videoWidth,videoHeight'.split(',');
const _readOnly = 'error,networkState,readyState,seeking,initialTime,duration,startOffsetTime,paused,ended,videoTracks,audioTracks,videoWidth,videoHeight'.split(',');

function _createSetter(attr){
var attrUpper = attr.charAt(0).toUpperCase() + attr.slice(1);
Expand Down

0 comments on commit 64b785b

Please sign in to comment.