From 0a316b50d2787a2b3b03c12327dc7887465c25f0 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 14 Oct 2018 16:47:51 +0200 Subject: [PATCH] Fix some typos (found by codespell) Signed-off-by: Stefan Weil --- CHANGELOG.md | 4 ++-- MIGRATION.md | 4 ++-- examples/blue.monday/jPlayer-tester.html | 2 +- examples/pink.flag/jPlayer-tester.html | 2 +- lib/aurora/aac.js | 2 +- lib/aurora/flac.js | 2 +- lib/aurora/mp3.js | 4 ++-- lib/circle-player/js/circle.player.js | 2 +- lib/circle-player/js/jquery.transform2d.js | 4 ++-- lib/popcorn.js | 4 ++-- src/actionscript/Jplayer.as | 4 ++-- src/actionscript/happyworm/jPlayer/JplayerMp4.as | 2 +- src/actionscript/happyworm/jPlayer/JplayerRtmp.as | 10 +++++----- src/javascript/add-on/jplayer.playlist.js | 2 +- src/javascript/add-on/jquery.jplayer.inspector.js | 2 +- src/javascript/jplayer/jquery.jplayer.js | 2 +- src/javascript/popcorn/popcorn.jplayer.js | 6 +++--- 17 files changed, 29 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4140ac4e..cda2797e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file. ### Changed - jPlayer Repository Refactor: The skins source files are now in `src/skin` and the build skins files in the `dist/skin` folder. - jPlayer Repository Refactor: All the circle player specific files are now in the `lib/circle-player` folder. -- jPlayer Repository Refactor: Changed the html `examples` file extentions from `htm` to `html` for @Laurian. +- jPlayer Repository Refactor: Changed the html `examples` file extensions from `htm` to `html` for @Laurian. ## 2.9.1 - 2014-12-09 @@ -43,7 +43,7 @@ All notable changes to this project will be documented in this file. - New Feature: Merged Pull Request to add [commonJS support](https://github.com/happyworm/jPlayer/pull/257) by [nervo](https://github.com/nervo). - Docs: Added CHANGELOG.md and gave details back to 2.7.1 - Docs: Added MIGRATION.md as placeholder for migration details. -- Bug Fix: Fixed Internet Explorer key bindings. Removed [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/document.activeElement) useage from the key bindings code. +- Bug Fix: Fixed Internet Explorer key bindings. Removed [`document.activeElement`](https://developer.mozilla.org/en-US/docs/Web/API/document.activeElement) usage from the key bindings code. - New Feature: The key bindings option `key` value may now be a number for [`event.which`](http://api.jquery.com/event.which/) and a string for [`event.key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent.key) comparison. - Default Options: Added to the default key bindings: - **l** loop toggle diff --git a/MIGRATION.md b/MIGRATION.md index 087fbff3..4263cfa7 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,11 +1,11 @@ # Migration -All notable changes that affect the backwards compatability of this project will be documented in this file. +All notable changes that affect the backwards compatibility of this project will be documented in this file. ## 2.9.2 - 2014-12-14 ### Changed - jPlayer Repository Refactor: The skins source files are now in `src/skin` and the build skins files in the `dist/skin` folder. - jPlayer Repository Refactor: All the circle player specific files are now in the `lib/circle-player` folder. -- jPlayer Repository Refactor: Changed the html `examples` file extentions from `htm` to `html` for @Laurian. +- jPlayer Repository Refactor: Changed the html `examples` file extensions from `htm` to `html` for @Laurian. ## 2.8.2 - 2014-11-19 diff --git a/examples/blue.monday/jPlayer-tester.html b/examples/blue.monday/jPlayer-tester.html index 19698596..591437da 100644 --- a/examples/blue.monday/jPlayer-tester.html +++ b/examples/blue.monday/jPlayer-tester.html @@ -53,7 +53,7 @@ // swfPath: "../../dist/jplayer/", // Check trailing slash // swfPath: "../../dist/jplayer/broken", // Check broken swfPath errors. // swfPath: "../../dist/jplayer/Jplayer.swf", // Check URLs work - // swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensative (Apache did not mind the extension's case not matching and worked too.) + // swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensitive (Apache did not mind the extension's case not matching and worked too.) // swfPath: "/", // Checks various // supplied: "flv", supplied: "flv,m4v,webmv", diff --git a/examples/pink.flag/jPlayer-tester.html b/examples/pink.flag/jPlayer-tester.html index 2e0ab19a..78fee147 100644 --- a/examples/pink.flag/jPlayer-tester.html +++ b/examples/pink.flag/jPlayer-tester.html @@ -53,7 +53,7 @@ // swfPath: "../../dist/jplayer/", // Check trailing slash // swfPath: "../../dist/jplayer/broken", // Check broken swfPath errors. // swfPath: "../../dist/jplayer/Jplayer.swf", // Check URLs work - // swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensative (Apache did not mind the extension's case not matching and worked too.) + // swfPath: "../../dist/jplayer/Jplayer.SWF", // Check URLs extension case insensitive (Apache did not mind the extension's case not matching and worked too.) // swfPath: "/", // Checks various // supplied: "flv", supplied: "flv,m4v,webmv", diff --git a/lib/aurora/aac.js b/lib/aurora/aac.js index 7a5c4e06..6f7f7e64 100644 --- a/lib/aurora/aac.js +++ b/lib/aurora/aac.js @@ -39,7 +39,7 @@ var ADTSDemuxer = AV.Demuxer.extend(function() { stream.advance(1); // private ret.chanConfig = stream.read(3); - stream.advance(4); // original/copy, home, copywrite, and copywrite start + stream.advance(4); // original/copy, home, copyright, and copyright start ret.frameLength = stream.read(13); stream.advance(11); // fullness diff --git a/lib/aurora/flac.js b/lib/aurora/flac.js index 86cee3c4..f7394ba1 100644 --- a/lib/aurora/flac.js +++ b/lib/aurora/flac.js @@ -655,7 +655,7 @@ var FLACDemuxer = AV.Demuxer.extend(function() { This is more than sufficient for the longest flac file I have (~50 mins 2-channel 16-bit 44.1k which uses about 7.5% of the UInt32 space for the largest offset) Can certainly be improved by storing sample numbers and offests as doubles, but would require additional overriding of the searchTimestamp and seek functions (possibly more?) Also the flac faq suggests it would be possible to find frame lengths and thus create seek points on the fly via decoding but I assume this would be slow - I may look into these thigns though as my project progresses + I may look into these things though as my project progresses */ case SEEKTABLE: for(var s=0; s myStatus.duration) { // The time is invalid, ie., past the end. myStatus.pausePosition = 0; myStream.seek(0); - seekedEvent(); // Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceeding seeking event. + seekedEvent(); // Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceding seeking event. } else if(!isNaN(time)) { if(getSeekTimeRatio() > getLoadRatio()) { // Use an estimate based on the downloaded amount seeking(true); diff --git a/src/actionscript/happyworm/jPlayer/JplayerRtmp.as b/src/actionscript/happyworm/jPlayer/JplayerRtmp.as index 218cd7cf..a136d88d 100644 --- a/src/actionscript/happyworm/jPlayer/JplayerRtmp.as +++ b/src/actionscript/happyworm/jPlayer/JplayerRtmp.as @@ -280,14 +280,14 @@ package happyworm.jPlayer myStatus.isPlaying = true; // Should be handled elsewhere. } - // Under RTMP, this event code occurs every time the media starts playing and when a new position is seeked to, even when paused. + // Under RTMP, this event code occurs every time the media starts playing and when a new position is sought to, even when paused. // Since under RTMP the event behaviour is quite different, believe a refactor is best here. // ie., Under RTMP we should be able to know a lot more info about the stream. // See onMetaDataHandler() for other condition, since duration is vital. // See onResult() response handler too. - // Appears to be some duplication between onMetaDataHandler() and onResult(), along with a race between them occuring. + // Appears to be some duplication between onMetaDataHandler() and onResult(), along with a race between them occurring. break; case "NetStream.Play.UnpublishNotify": @@ -418,7 +418,7 @@ package happyworm.jPlayer { // videoSupport turns on/off video - by default no video, audio only videoBinding=videoSupport; - /* Dont close the stream or netconnection here anymore so we can recycle if host/appname are the same + /* Don't close the stream or netconnection here anymore so we can recycle if host/appname are the same if ((myStream != null)) { myStream.close(); @@ -466,7 +466,7 @@ package happyworm.jPlayer if (myStream != null) { myStream.close(); - // Dont close the netConnection here any longer, as we may recycle it later + // Don't close the netConnection here any longer, as we may recycle it later // may need an extra way to close manually if switching media types after an rtmp session - revisit // myConnection.close(); myStatus.reset(); @@ -806,7 +806,7 @@ package happyworm.jPlayer trace("GOT HERE!"); myStream.seek(0); - seekedEvent();// Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceeding seeking event. + seekedEvent();// Deals with seeking effect when using setMedia() then pause(huge). NB: There is no preceding seeking event. } else if (! isNaN(time)) { diff --git a/src/javascript/add-on/jplayer.playlist.js b/src/javascript/add-on/jplayer.playlist.js index 725caf06..58fad59a 100644 --- a/src/javascript/add-on/jplayer.playlist.js +++ b/src/javascript/add-on/jplayer.playlist.js @@ -132,7 +132,7 @@ $(this.cssSelector.details).hide(); } - // Remove the empty
  • from the page HTML. Allows page to be valid HTML, while not interfereing with display animations + // Remove the empty
  • from the page HTML. Allows page to be valid HTML, while not interfering with display animations $(this.cssSelector.playlist + " ul").empty(); // Create .on() handlers for the playlist items along with the free media and remove controls. diff --git a/src/javascript/add-on/jquery.jplayer.inspector.js b/src/javascript/add-on/jquery.jplayer.inspector.js index e7a6cf89..37a74aa9 100644 --- a/src/javascript/add-on/jquery.jplayer.inspector.js +++ b/src/javascript/add-on/jquery.jplayer.inspector.js @@ -145,7 +145,7 @@ config.eventTimeout[e.type] = setTimeout(function() { config.eventJq[e.type].css("background-color","#fff"); }, 1000); - // The timer to handle the occurences. + // The timer to handle the occurrences. setTimeout(function() { config.eventOccurrence[e.type]--; config.eventJq[e.type].text(eventName + " (" + config.eventOccurrence[e.type] + ")"); diff --git a/src/javascript/jplayer/jquery.jplayer.js b/src/javascript/jplayer/jquery.jplayer.js index 0564889d..721f4567 100644 --- a/src/javascript/jplayer/jquery.jplayer.js +++ b/src/javascript/jplayer/jquery.jplayer.js @@ -700,7 +700,7 @@ playbackRate: 1, // Warning - Now both an option and a status property ended: 0 -/* Persistant status properties created dynamically at _init(): +/* Persistent status properties created dynamically at _init(): width height cssClass diff --git a/src/javascript/popcorn/popcorn.jplayer.js b/src/javascript/popcorn/popcorn.jplayer.js index 8eff0dac..90c584da 100644 --- a/src/javascript/popcorn/popcorn.jplayer.js +++ b/src/javascript/popcorn/popcorn.jplayer.js @@ -13,7 +13,7 @@ * For Popcorn Version: 1.3 * For jPlayer Version: 2.9.0 * Requires: jQuery 1.7+ - * Note: jQuery dependancy cannot be removed since jPlayer 2 is a jQuery plugin. Use of jQuery will be kept to a minimum. + * Note: jQuery dependency cannot be removed since jPlayer 2 is a jQuery plugin. Use of jQuery will be kept to a minimum. */ (function(Popcorn) { @@ -249,7 +249,7 @@ mediaType = 'unknown', jpMedia = {}, jpOptions = {}, - ready = false, // Used during init to override the annoying duration dependance in the track event padding during Popcorn's isReady(). ie., We is ready after loadeddata and duration can then be set real value at leisure. + ready = false, // Used during init to override the annoying duration dependence in the track event padding during Popcorn's isReady(). ie., We is ready after loadeddata and duration can then be set real value at leisure. duration = 0, // For the durationchange event with both HTML5 and Flash solutions. Used with 'ready' to keep control during the Popcorn isReady() via loadeddata event. (Duration=0 is bad.) durationchangeId = null, // A timeout ID used with delayed durationchange event. (Because of the duration=NaN fudge to avoid Popcorn track event corruption.) canplaythrough = false, @@ -367,7 +367,7 @@ if(event.jPlayer.flash.used) { jPlayerFlashEventsPatch(); } - // Set the media andd load it, so that the Flash solution behaves similar to HTML5 solution. + // Set the media and load it, so that the Flash solution behaves similar to HTML5 solution. // This also allows the loadstart event to be used to know jPlayer is ready. $(this).jPlayer('setMedia', jpMedia).jPlayer('load'); });