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

Different WebSeed behaviour on Torrents with Folder and Torrents Without Folder #1600

Closed
WatchSoMuch opened this issue Mar 24, 2019 · 3 comments
Closed
Labels

Comments

@WatchSoMuch
Copy link

@WatchSoMuch WatchSoMuch commented Mar 24, 2019

What version of WebTorrent?
Latest
What operating system and Node.js version?
Its browser
What browser and version? (if using WebTorrent in the browser)
Chrome 72
What did you expect to happen?

What actually happened?
When passing a webseed Url on torrents without folder we have to point to the file exactly but when pointing to torrents with folder, if we pass the folder name to webseed it duplicates the folder name when looking for the file

@WatchSoMuch WatchSoMuch changed the title folder Different behaviour on Torrents with Folder and Torrents Without Folder Mar 24, 2019
@WatchSoMuch WatchSoMuch changed the title Different behaviour on Torrents with Folder and Torrents Without Folder Different WebSeed behaviour on Torrents with Folder and Torrents Without Folder Mar 24, 2019
@WatchSoMuch

This comment has been minimized.

Copy link
Author

@WatchSoMuch WatchSoMuch commented Mar 24, 2019

Sorry its my first post in Github

@WatchSoMuch WatchSoMuch reopened this Mar 24, 2019
@WatchSoMuch

This comment has been minimized.

Copy link
Author

@WatchSoMuch WatchSoMuch commented Mar 24, 2019

When passing a webseed Url on torrents without folder we have to point to the file exactly but when pointing to torrents with folder, if we pass the folder name to webseed it duplicates the folder name when looking for the file

Actually I have managed to get it working with a torrent that contains only an image, but with torrents that contains a folder, it seems we have to emit the folder name from the webseed parameter.
By emitting that it still didn't work, my chrome developer network tab shows the mp4 file is loading without error, the video shows a blank player with a circle showing its loading, but it never loads, the console shows error "Uncaught (in promise) DOMException" that points to "p.play()" in webtorrent.min function:
function o() {
p.removeEventListener("loadstart", o),
n.autoplay && p.play()
}

it seems it can not play the mp4 file, I also have tested openning the MP4 file in browser and it plays the video.
This video loads without any error if I seed this torrent in webtorrent desktop.

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Jun 22, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jun 22, 2019
@stale stale bot closed this Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.