streaming-video-technology-alliance / common-media-library

A common library for media playback in JavaScript
Other
41 stars 2 forks source link

The example usage code in the README is not working #67

Closed sebastianpiq closed 9 months ago

sebastianpiq commented 9 months ago

Describe the bug The example usage code in the README has a small error in the appendCmcdQuery() method.

To Reproduce Steps to reproduce the behavior:

  1. Create a project using NPM (npm init).
  2. Install the common-media-library
  3. Copy and paste the example usage code
  4. Run the code

Expected behavior The example usage code runs without errors.

Screenshots cml error

Additional context This is a simple change, it would be nice to fix it. The parameters of the appendCmcdQuery() method are in the wrong order. After correcting the order, the code runs properly.

Suggestion change: appendCmcdQuery('https://example.com/playlist.m3u8', cmcd)