Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add direct stream links
  • Loading branch information
ApsOps committed Aug 24, 2014
1 parent 3a7882f commit e62bfe8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/frontend/templates/group.html
Expand Up @@ -52,6 +52,11 @@
</ul>
</form>
</div>
<div id="quality-container" class="options-group container_1">
Direct Links - <a id="direct_hd_url" href="">High quality</a>
<a id="direct_sd_url" href="">Low quality</a>
<a id="direct_audio_url" href="">Audio only</a>
</div>
</td>
</tr><tr>
<td id="player-cell">
Expand Down Expand Up @@ -127,6 +132,14 @@
};
ticker();
});

This comment has been minimized.

Copy link
@mithro

mithro Aug 24, 2014

Member

I think this probably belongs somewhere else but I don't know quite where.

This comment has been minimized.

Copy link
@ApsOps

ApsOps Aug 24, 2014

Author Member

I thought $(document).ready is the right place to put this.

Another way could be creating variables in views when config is loaded?

This comment has been minimized.

Copy link
@mithro

mithro Aug 24, 2014

Member

Let put it here for now. We should also hide/unhide the elements...

// Get and set URLs for direct links
var direct_hd_url = streamer_{{group|safe_js}}.html5_streams.hd[0].file;
var direct_sd_url = streamer_{{group|safe_js}}.html5_streams.download;
var direct_audio_url = streamer_{{group|safe_js}}.audio_streams.download;
$("#direct_hd_url").attr("href", direct_hd_url);
$("#direct_sd_url").attr("href", direct_sd_url);
$("#direct_audio_url").attr("href", direct_audio_url);
});
</script>
<script type="text/javascript">
Expand Down

0 comments on commit e62bfe8

Please sign in to comment.