Skip to content

Commit

Permalink
Merge pull request #309 from LNFWebsite/master
Browse files Browse the repository at this point in the history
Fix #282 #126 ... This is big!
  • Loading branch information
LNFWebsite authored May 15, 2017
2 parents d52b08b + f1863e9 commit 88da2e1
Show file tree
Hide file tree
Showing 4 changed files with 300 additions and 26 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Features:
- Puts you in charge of your playlist by saving all video information necessarry to play (name, time, video_id) with the playlist. To save your playlist, simply bookmark the open tab of Streamly or click "Save Playlist" to copy a link to your clipboard.

- Runs independently from any server and requires no association with YouTube (API keys, etc...).

<sub>Note: You may even use Streamly just stored on your computer, but likely YouTube will give you an error stating that the video creator did not allow the video to play on this site. The same will occur if you try to open a YouTube embed on your computer, as they don't recognize the `file://` site location as a valid website. You may resolve this easily by placing Streamly on a file hosting service that allows you to access the file without downloading (ie. forking on GitHub).<sub>

- Works on all modern browsers (Chrome, Firefox, more...) as well as browsers on Android phones/tablets.

Expand Down
30 changes: 28 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,21 @@ <h1 id="title"><a href="#" style="color:white;text-decoration:none;">Streamly <s
<input type="textbox" id="inputBox" placeholder="Search, drag and drop video, or paste its URL..." autofocus>
</form>
<button id="saveButton" data-clipboard-text="https://lnfwebsite.github.io/Streamly/" onclick="saveButton();">Save playlist</button>
<!--<span class="fa fa-cog" id="settingsButton" onclick="openSettings();" title="Settings"></span>-->
<span class="fa fa-cog" id="settingsButton" onclick="openSettings();" title="Settings"></span>
<span class="fa fa-exchange" id="stationIcon" onclick="disconnectStation();" title="Streamly Station is connected. Click to disconnect..."></span>
</header>
<div id="main">
<div id="settingsShadow"></div>
<div id="settingsWindow">
<div id="settingsCloseButton" onclick="closeSettings();">Close</div>
<h1>Settings</h1><hr>
<h2>Streamly Station</h2><hr>
<p><i>Connect to a Streamly Station</i></p>
<form action="javascript:actionConnectStation();" method="get">
<label for="connectStationBox">Address:</label>
<input type="textbox" id="connectStationBox" placeholder="Enter the Streamly Station address (ex. 192.168.0.15)..." title="Enter the Streamly Station address">
</form>
</div>
<div id="blurBackground"></div>
<form action="javascript:input(2);" method="get">
<input type="textbox" id="playlistNameBox" placeholder="Streamly Playlist" title="Enter your playlist name" />
Expand Down Expand Up @@ -118,8 +130,21 @@ <h1 id="title"><a href="#" style="color:white;text-decoration:none;">Streamly <s
$("#playlistNameBox").on("blur", function() {
input(2);
});

function openSettings() {
$("#settingsWindow").css("display", "block");
$("#settingsShadow").css("display", "block");
}
function closeSettings() {
$("#settingsWindow").css("display", "none");
$("#settingsShadow").css("display", "none");
}
if ($(window).width() <= 600) {
$("#title").after($("#settingsButton"));
$("#settingsButton").after($("#stationIcon"));
}

function startVideoProgress() {
function startVideoProgress() {
if (!videoPaused) {
actionTimers.clear();
videoProgress();
Expand Down Expand Up @@ -158,6 +183,7 @@ <h1 id="title"><a href="#" style="color:white;text-decoration:none;">Streamly <s
//ending
case 0:
console.log("ending");
sendStation("playerending");
loopVideo();
break;
//playing
Expand Down
Loading

0 comments on commit 88da2e1

Please sign in to comment.