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

Stream video in browsers that don't support MediaSource #830

Closed
jakefb opened this issue Jun 8, 2016 · 3 comments
Closed

Stream video in browsers that don't support MediaSource #830

jakefb opened this issue Jun 8, 2016 · 3 comments

Comments

@jakefb
Copy link
Contributor

@jakefb jakefb commented Jun 8, 2016

I have noticed some browsers that don't support MediaSource or WebRTC (Safari on iOS) are still able to download a video torrent from a HTTP web seed, but cannot append the buffer with the MediaSource API.

It would be great to get torrents streaming on iOS. What are some possible ways around this?

@yciabaud

This comment has been minimized.

Copy link
Contributor

@yciabaud yciabaud commented Jun 8, 2016

In my experience, the only way to go smoothly if there is no MediaSource API available is to create a video elem with the webseed url.

Another solution would be to make a video element with the blob URL but I guess you will have to wait for the download and it will not work in iOS with the external video player...

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jun 8, 2016

Safari actually supports MediaSource, but @jhiesey's videostream package lost support for it in version 2.0.0. It got a LOT better in other ways and it's WAY more reliable, so we can't just downgrade to 1.x in order to get support back. Issue here: jhiesey/videostream#24

I think @yciabaud's workaround sounds good, but if you detect MediaSource support, you'll need to special-case new Safari for now, since it supports MediaSource but videostream doesn't yet.

@feross feross closed this Jun 8, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.