Comments (4)
Unfortunately, I'm not too sure how react-native runs. mpd-parser is javascript project that when given the XML of an MPEG-DASH manifest will return a JSON representation of it. If react-native works with regular javascript, you should be able to include it.
However, it's likely that you don't want mpd-parser itself but probably want to look at a full-fledged video player (like Video.js itself). However, you'll want to find a player that supports react-native. I believe Video.js won't work due to how react-native works, but I'm not positive.
from mpd-parser.
Hey , i still can't fix my problem , my question is that you use 2 parameters in your function, i'm talking about manifest and manifesturl , what's the point of manifest ? if adding only manifesturl will give me the output that i want.
from mpd-parser.
@AnassHmida @gkatsev yeah I think the 'usage' section of readme may be wrong.
the module seems to export
function parse(manifestString, options) {
yet the usage says parse(manifest, manifestURL)
from mpd-parser.
Yup, looks like it was changed at one point and the example and docs never got updated.
Here's an example usage: https://github.com/videojs/http-streaming/blob/0976212d8c447b80904a8d1b5f8323579b875be2/src/dash-playlist-loader.js#L41-L45
I think passing the manifestUri
as part of the options object is important.
from mpd-parser.
Related Issues (20)
- Not all audio codecs are being returned in json output HOT 4
- Undefined dateTimeObject values for live mpd manifests
- Wrong resolvedUri HOT 2
- Parser dropping values from AdaptionSet HOT 9
- How to calculate current live segment HOT 4
- xmldom vulnerability HOT 4
- DASH_INVALID_XML error HOT 7
- Security vulnerability in xmldom HOT 4
- Parser failing with blob url
- Generic Identifiers are not Parsed
- Matching upper-case keysystem UUID string in generateKeySystemInformation HOT 1
- Is there any Java/Kotlin implementation of this lib? HOT 1
- Parsing error for representations without segment info
- Update @xmldom/xmldom to fix a security advisory
- manifest endList is true for dynamic MPD instead of false HOT 1
- Security issue HOT 1
- Duplicate Playlist Entries with BaseURL tags at different levels of the Manifest
- Incorrect total number of audio tracks HOT 1
- Wrong resolvedUri HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpd-parser.