Replies: 3 comments 6 replies
-
Yes there is something in place but I'm not sure if it is really possible to register a plugin from the application. |
Beta Was this translation helpful? Give feedback.
-
I guess yes you'll have to compile a custom version. |
Beta Was this translation helpful? Give feedback.
-
Hello again, I've made an extension to add my custom loader. The extension does not require recompiling the library, so it can be used from the I have run into an issue, though. My loader seems to start in a mid AdaptationSet, and then "adapts" to a lower one. I think that this is because I'm not reporting progress or some other stats. Can someone tell me what FetchLoader and HTTPLoader does to cause properly report? It seem quite complicated, and I think that I can probably do something simpler than what is there. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a desktop app with a webview.
The native app gives me access to video and audio segments, as well as information that I can use to construct a DASH manifest.
I think that using a base URL in the manifest with a custom scheme (i.e.
my_custom_scheme://video/42.m4s
) is what would make dash.js use some sort of plugin loader for the segments, and maybe the manifest as well.The extensions to dash.js that I've seen have only modified a request that already has an XHR, etc., and I don't need an XHR since I'm not making a network request, just a call to the native app through functions that it provides to the web view. The other extension that I've seen is for indexed DB offline, and it looks much more involved than what I believe is needed: I just want dash to call a function that I make with an URL, and have that function return an ArrayBuffer/Uint8Array of the segment, and maybe headers, if that's needed by dash.js.
I'd also like to load the manifest with the custom scheme if possible.
I feel like there's already something in place that allows me to make such an plugin, but I haven't seen any documentation about it.
What do I need to do to make this plugin and register it with dash.js?
Beta Was this translation helpful? Give feedback.
All reactions