hls.js 1.5.12-0.canary.10367 → 1.5.12-0.canary.10370

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hls.js CHANGED
@@ -522,7 +522,7 @@
522
522
  // Some browsers don't allow to use bind on console object anyway
523
523
  // fallback to default if needed
524
524
  try {
525
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.12-0.canary.10367");
525
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.12-0.canary.10370");
526
526
  } catch (e) {
527
527
  /* log fn threw an exception. All logger methods are no-ops. */
528
528
  return createLogger();
@@ -22727,6 +22727,16 @@
22727
22727
  return VTTParser;
22728
22728
  }();
22729
22729
 
22730
+ // From https://github.com/darkskyapp/string-hash
22731
+ function hash(text) {
22732
+ var hash = 5381;
22733
+ var i = text.length;
22734
+ while (i) {
22735
+ hash = hash * 33 ^ text.charCodeAt(--i);
22736
+ }
22737
+ return (hash >>> 0).toString();
22738
+ }
22739
+
22730
22740
  var LINEBREAKS = /\r\n|\n\r|\n|\r/g;
22731
22741
 
22732
22742
  // String.prototype.startsWith is not supported in IE11
@@ -22750,16 +22760,6 @@
22750
22760
  return ts;
22751
22761
  };
22752
22762
 
22753
- // From https://github.com/darkskyapp/string-hash
22754
- var hash = function hash(text) {
22755
- var hash = 5381;
22756
- var i = text.length;
22757
- while (i) {
22758
- hash = hash * 33 ^ text.charCodeAt(--i);
22759
- }
22760
- return (hash >>> 0).toString();
22761
- };
22762
-
22763
22763
  // Create a unique hash id for a cue based on start/end times and text.
22764
22764
  // This helps timeline-controller to avoid showing repeated captions.
22765
22765
  function generateCueId(startTime, endTime, text) {
@@ -30777,7 +30777,7 @@
30777
30777
  * Get the video-dev/hls.js package version.
30778
30778
  */
30779
30779
  function get() {
30780
- return "1.5.12-0.canary.10367";
30780
+ return "1.5.12-0.canary.10370";
30781
30781
  }
30782
30782
  }, {
30783
30783
  key: "Events",