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

Multiple Stream Requests #133

Open
jaruba opened this issue Jul 29, 2020 · 0 comments
Open

Multiple Stream Requests #133

jaruba opened this issue Jul 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jaruba
Copy link
Member

jaruba commented Jul 29, 2020

Scenario:
your addon needs to fetch from a lot of sources, so it needs to wait for all of them to reply so it can respond to a stream request

Solution:
Stremio does multiple stream requests to the same addon

Proposed SDK solution:
/manifest.json:

{
   ...
   "sources": ['first','second']
   ...
}

/stream/{type}/{videoID}/{source}.json:

builder.defineStreamHandler(function(args) {
    if (args.source == 'first') {
        // serve one stream to big buck bunny
        const stream = { url: 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4' }
        return Promise.resolve({ streams: [stream] })
    }
})
@jaruba jaruba added the enhancement New feature or request label Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant