question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Manifest Parser where manifest url request isn't needed?

See original GitHub issue

Have you read the FAQ and checked for duplicate issues: yes

What version of Shaka Player are you using: 2.2.1

Are you using the demo app or your own custom app: custom app

What browser and OS are you using: Chrome/ OSX

Hi Shaka Team,

I’m trying to integrate shaka player with our existing infrastructure. Currently the MPD content will be available through a separate request so by the time I’m initializing the shaka player and executing .load I’d idealy want to pass it the content directly at this point rather than an uri.

From some previous issues like #946 it seemed the approach would be to create a custom manifest parser factory to remove the logic of requesting the manifest. I then tried to fork dash_parser but after reading #716 and it seemed like not the best approach especially with lots of references to uri.

Per the documentation :

The function of a manifest parser is to take a URL that was passed to load() and give us back a manifest object.

This unfortunately doesn’t fit our use case. Before attempting to create a hacked manifest parser I wanted to check if there was an alternative.

Are any recommendations on how to approach this?

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
theodabcommented, Sep 21, 2017

When you say you have the MPD content already, do you mean that you have already retrieved the manifest but have yet to parse it, or do you mean that you have retrieved the manifest and parsed it and now need Shaka Player to use the data?

If you have yet to parse the manifest, you might want to make a custom networking plugin. You can register one with shaka.net.NetworkingEngine.registerScheme, and it will be used by our existing DASH parser if you provide an uri that uses the custom scheme you registered it under. You can look at lib/net/http_plugin.js if you want an example.

If you have parsed the manifest already, and just want to translate your internal parsed manifest format into our parsed manifest format, then a custom manifest parser that ignores the uri and doesn’t make any network requests is probably the way to go after all. Unless you make a custom networking plugin anyway and just send over the un-parsed raw manifest and parse it again, I suppose.

0reactions
joeyparrishcommented, Oct 2, 2017

Filed #1043 to address the scenario mentioned by @chrisfillmore. Closing this issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manifest Parser where manifest url request isn't needed ...
Per the documentation : The function of a manifest parser is to take a URL that was passed to load() and give us...
Read more >
JSDoc: Tutorial: Manifest Parser Plugins - Shaka Player Demo
The function of a manifest parser is to take a URL that was passed to load() and give us back a manifest object....
Read more >
Failed to Parse Manifest : Using asp.net - Stack Overflow
My deployment script generated the manifest file in Unicode. The file looked fine in Chrome (when going to the URL), validated on online...
Read more >
App Manifest Overview - Android Developers
The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.
Read more >
Payment Method Manifest - W3C
No decision has been taken on the outcome of these issues including whether they are valid. Pull requests with proposed specification text for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found