Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed examples of using "parse" #149

Merged
merged 1 commit into from
Nov 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ This is the simplest case. Get the script in whatever way you prefer and include
<script src="//path/to/mpd-parser.min.js"></script>
<script>
var mpdParser = window['mpd-parser'];
var parsedManifest = mpdParser.parse(manifest, manifestUrl);
var parsedManifest = mpdParser.parse(manifest, { manifestUri });
</script>
```

Expand All @@ -136,14 +136,14 @@ When using with Browserify, install mpd-parser via npm and `require` the parser
```js
var mpdParser = require('mpd-parser');

var parsedManifest = mpdParser.parse(manifest, manifestUrl);
var parsedManifest = mpdParser.parse(manifest, { manifestUri });
```

With ES6:
```js
import { parse } from 'mpd-parser';

const parsedManifest = parse(manifest, manifestUrl);
const parsedManifest = parse(manifest, { manifestUri });
```

### RequireJS/AMD
Expand All @@ -152,7 +152,7 @@ When using with RequireJS (or another AMD library), get the script in whatever w

```js
require(['mpd-parser'], function(mpdParser) {
var parsedManifest = mpdParser.parse(manifest, manifestUrl);
var parsedManifest = mpdParser.parse(manifest, { manifestUri });
});
```

Expand Down