@give-tech/ec-player 0.0.1-beta.25 → 0.0.1-beta.26

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/index.js CHANGED
@@ -2284,6 +2284,9 @@ class HLSPlayer extends BasePlayer {
2284
2284
  data: annexBData,
2285
2285
  size: annexBData.length
2286
2286
  });
2287
+ if (!frame) {
2288
+ console.log(`[fMP4] decodeSample failed: isSync=${sample.isSync}, nalType=${nalType}, size=${annexBData.length}, firstBytes=${Array.from(annexBData.slice(0, 10)).map((b) => b.toString(16).padStart(2, "0")).join(" ")}`);
2289
+ }
2287
2290
  if (frame) {
2288
2291
  frame.pts = sample.pts;
2289
2292
  frame.dts = sample.dts;