ournetworks / 2019

ARCHIVED--Coordination for State of Our Networks 2019 on September 20–22, 2019 😱
https://2019.ournetworks.ca/
Creative Commons Attribution Share Alike 4.0 International
11 stars 0 forks source link

IPFS Stream share Links with Timecode #106

Closed darkdrgn2k closed 4 years ago

darkdrgn2k commented 4 years ago

First rough proof of concept

<script>
function shareLink() {
  var link=document.getElementById("link");
  link.value="https://ipfs-mirror-0.stream.meshwithme.online?from=" + live.currentTime() + "&m3u8=live.m3u8";
  link.style.display='block';
  link.select;
  link.setSelectionRange(0, 99999); /*For mobile devices*/
  document.execCommand("copy");
  alert("In Clipboard");
}
function tweatLink() {
  window.open("https://twitter.com/intent/tweet?original_referer=https://ipfs-mirror-0.stream.meshwithme.online/&source=tweetbutton&ur$
}
</script>

TODO

garrying commented 4 years ago

Note the actual working JS is here: https://github.com/ournetworks/ournetworks.ca/pull/135/commits/18c3f4de7f5b5c32dbb8dd53ad4fb8abb4271903#diff-3daf51cbf1b806c396d0872c4f50e378R84

dcwalk commented 4 years ago

This got merged in and there is working code! I'm closing this as done :)