Spaces:
Paused
Paused
|
Download node_modules/stremio-addon-sdk/docs/api/responses/stream.md from no1b4me/hytranslator: direct link, hf CLI and curl.
- Browser
- Download file 2.57 kB
-
https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/stremio-addon-sdk/docs/api/responses/stream.md
- Command line
-
hf download hf://spaces/no1b4me/hytranslator/node_modules/stremio-addon-sdk/docs/api/responses/stream.md
-
curl -L -o stream.md https://huggingface.co/spaces/no1b4me/hytranslator/resolve/main/node_modules/stremio-addon-sdk/docs/api/responses/stream.md
2.57 kB
Stream Object
Used as a response for defineStreamHandler
One of the following must be passed to point to the stream itself
url- string, direct URL to a video stream - must be an MP4 through https; others supported (other video formats over http/rtmp supported if you setnotWebReady)ytId- string, youtube video ID, plays using the built-in YouTube playerinfoHash- string, info hash of a torrent file, andfileIdxis the index of the video file within the torrent; if fileIdx is not specified, the largest file in the torrent will be selectedfileIdx- number, the index of the video file within the torrent (frominfoHash); if fileIdx is not specified, the largest file in the torrent will be selectedexternalUrl- string,Meta Linkor an external URL to the video, which should be opened in a browser (webpage), e.g. link to Netflix
Additional properties to provide information / behaviour flags
name- optional - string, name of the stream; usually used for stream qualitytitle- optional - string, description of the stream (warning: this will soon be deprecated in favor ofstream.description)description- optional - string, description of the stream (previouslystream.title)subtitles- optional - array ofSubtitle objectsrepresenting subtitles for this streambehaviorHints(all are optional)countryWhitelist: which hints it's restricted to particular countries - array of ISO 3166-1 alpha-3 country codes in lowercase in which the stream is accessiblenotWebReady: applies if the protocol of the url is http(s); needs to be set totrueif the URL does not support https or is not an MP4 filebingeGroup: if defined, addons with the samebehaviorHints.bingeGroupwill be chosen automatically for binge watching; this should be something that identifies the stream's nature within your addon: for example, if your addon is called "gobsAddon", and the stream is 720p, the bingeGroup should be "gobsAddon-720p"; if the next episode has a stream with the samebingeGroup, stremio should select that stream implicitlyproxyHeaders: Only applies tourls; When using this property, you must also setstream.behaviorHints.notWebReady: true; This is an object containingrequestandresponsewhich include the headers that should be used for the stream (example value:{ "request": { "User-Agent": "Stremio" } })