brunchboy on master
Start UI for phrase section con… Assign reasonable default comme… (compare)
brunchboy on master
Can't keep file in phrase, #119… Fix phrae row visibilty, #119 [… Improve filtering of tracks/phr… and 4 more (compare)
brunchboy on master
Working on phrase trigger imple… (compare)
brunchboy on master
Improve wording of phrase trigg… Handle players 5 and 6 for show… Start documenting and creating … (compare)
brunchboy on master
Update dependencies to support … Change chat links from Gitter t… Add track phrase trigger lockou… (compare)
brunchboy on master
Sketch out phrase trigger cues … (compare)
brunchboy on master
Add links to picker window sket… (compare)
brunchboy on master
Sketching phrase trigger UI [sk… (compare)
brunchboy on master
Start draft of phrase triggers … (compare)
brunchboy on master
Updating user guide for linked … Updating user guide for linked … Updating user guide for linked … and 1 more (compare)
brunchboy on master
Only calculate scroll position … (compare)
@brunchboy K, so i've got my overlay.html file outputting almost exactly how I want it i.e. master deck's track title in big letters, artist name under that & cover art left of both lines. Formatting is nearly correct. I have it loaded in OBS and OBS shows the right stuff.
Trouble is when I change tracks, OBS doesn't update. If I click the "Open in Browser" button in OBS Overlay Web Server it shows the updated information, but I have to it manually. I'm guessing I'm missing some setting the OBS Overlay Web Server side that watches when the master deck changes and updates.
FWIW, when I change tracks and watch BLT, it shows the Master track update instantly.
<!--
This is an example of how you can explicitly pull out information for specific players,
but generally you will want to use the loop approach below to get all players found on
the network.
<p>
Player 1: {{players.1.track.title}}—{{players.1.track.artist}}.
<img src="artwork/1?icons=true" width="80" height="80">
</p>
<p>
Player 2: {{players.2.track.title}}—{{players.2.track.artist}}.
<img src="artwork/2?icons=true" width="80" height="80">
</p>
-->
{% for number player in players|sort %}
<p>
<!-- if (players{{number}}.is-tempo-master == true) { -->
<img id="art-{{number}}" src="artwork/{{number}}?icons=true" width="80" height="80" align="left">
<script>animateImage('art-{{number}}', 1000);</script>
<span id="title-{{number}}" style="font-size:30px" style="font-family:Titillium Web">{{master.track.title}}</span>
<br>
<span id="artist-{{number}}" style="font-size:20px" style="font-family:Titillium Web">{{master.track.artist}}.</span>
<br><br>
<!-- }-->
</p>
{% endfor %}
</body>
</html>
I've left the part i'm struggling with in here commented out. I have a statement
if (players{{number}}.is-tempo-master == true) {
thinking that i want this thing to loop through players (i only have 2, but hey, why not loop through all) and determine if it's the master, then i want it to show the coverart and track title, artist name. and when i switch to the next track, it would update all three without me having to rerun it.
I realize i've written this wrong, but i left it in to give direction of what i'm attempting to do. the formatting and HTML stuff I consider good-to-go
I have never been successful in ONLY showing the master track and not showing the non-master tracks information. that's as close as I can get so far. I also attempted to use something like this:
{% if players{{number}}.is-temp-master == true %}
But it flat out ignores this...just shows everything still
{% if … %}
Selmer expresson written, it could control which player information got written to the page.
{% if players.number.is-tempo-master %}
but it’s not worth nailing down because we don’t want to do it that way.
players
variable at all! I created a master
variable for that purpose, see Table 1 in the Variables section of the User Guide: https://blt-guide.deepsymmetry.org/beat-link-trigger/obsoverlay#variables
master.track.title
for example. And wait, I just noticed that you already figured that out @supersport05 so you just need to eliminate the number
loop entirely.
number
available any more for requesting the album art. But that is not a problem, because the master
variable has as number
property which reports the channel number of the current master player, so we can ask for its art using the URL "artwork/{{master.number}}"
.