Code style
This commit is contained in:
		| @ -1132,7 +1132,7 @@ | |||||||
|                         if (track.activeCues && track.activeCues.length > 0) { |                         if (track.activeCues && track.activeCues.length > 0) { | ||||||
|                             _setActiveCueForTrack(track); |                             _setActiveCueForTrack(track); | ||||||
|                         } |                         } | ||||||
|                      } |                     } | ||||||
|                 } else { |                 } else { | ||||||
|                     // Caption tracks not natively supported |                     // Caption tracks not natively supported | ||||||
|                     _log('TextTracks not supported so rendering captions manually'); |                     _log('TextTracks not supported so rendering captions manually'); | ||||||
| @ -2456,17 +2456,15 @@ | |||||||
|         } |         } | ||||||
|  |  | ||||||
|         // Select active caption |         // Select active caption | ||||||
|         function _setCaptionIndex(index){ |         function _setCaptionIndex(index) { | ||||||
|  |             // Save active caption | ||||||
|             //save active caption |  | ||||||
|             config.captions.selectedIndex = index; |             config.captions.selectedIndex = index; | ||||||
|  |  | ||||||
|             // clear caption |             // Clear caption | ||||||
|             _setCaption(); |             _setCaption(); | ||||||
|  |  | ||||||
|             // re-run setup |             // Re-run setup | ||||||
|             _setupCaptions(); |             _setupCaptions(); | ||||||
|  |  | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         // Check if media is loading |         // Check if media is loading | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user