Re:Show HN: Teevox – Twitch Multistream Player,made in Stati...
by jiggity on Wednesday January 20, 2016 @02:48PM
(#10940807)
Ahh you mean like pushstate into the addressbar. That's a great idea. One of the issues has been losing the streams you were watching upon refresh
[ Parent
| on HN ]
Re:Show HN: Teevox – Twitch Multistream Player,made in Stati...
by hardwaresofton on Wednesday January 20, 2016 @04:34PM
(#10941547)
Yep! It's one of the things Ember is (or should be) best known for. The whole "don't break the web" tirade.
React-router should be able to handle it (you said you were using react, wasn't sure if it was in conjunction with react-router), but the documentation that describes the updating patterns of the URL isn't so easy to find... This might help though:
https://github.com/rackt/react-router/issues/266 (Issue from someone trying to change URL without triggering re-route, might help with saving params to URL).
I was thinking that rather than how multitwitch does it (which is multitwitch.tv/<stream1>/<stream2> or something like that), you might want to pass the streams as query string params (ex. "&1=<stream1>").... But then again, you could just use their style. Also it might be smart to selected layout type.