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

Feature Request #942

Open
rafaelleru opened this issue Oct 9, 2016 · 2 comments
Open

Feature Request #942

rafaelleru opened this issue Oct 9, 2016 · 2 comments

Comments

@rafaelleru
Copy link

@rafaelleru rafaelleru commented Oct 9, 2016

I was looking the API and making my app to stream music, but I can find a option do disappend a file from the body, and the append other I only can play multiple files at the same time. how I can dissapend a file?

@rafaelleru rafaelleru changed the title Feature Feature Request #helpwanted Oct 9, 2016
@rafaelleru rafaelleru changed the title Feature Request #helpwanted Feature Request Oct 9, 2016
@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Oct 9, 2016

var el = document.querySelector('#ElementID')
el.parentNode.removeChild(el)

That should do :)

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Oct 13, 2016

@DiegoRBaquero That should do :)

Heh, nice. But I think without an official way to destroy, won't there be errors as render-media continues to try to append data to the element. Also, outstanding selections won't get deprioritized.

@rafaelleru What you're asking for is basically the equivalent of server = torrent.createServer(); server.destroy(). I think we can just make the appendTo/renderTo methods return a destroy function that you can call to cleanup everything.

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
3 participants
You can’t perform that action at this time.