Skip to content

Commit

Permalink
swap to new music
Browse files Browse the repository at this point in the history
  • Loading branch information
rorpage committed Jun 7, 2019
1 parent 12340f5 commit ae32701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/TodayScene.brs
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ sub audioPlayerStateChanged()
if (m.audio.state = "finished") then
m.audio_track_index++

if (m.audio_track_index > 16) then m.audio_track_index = 1
if (m.audio_track_index > 3) then m.audio_track_index = 1

changeAudioTrack()
end if
end sub

sub changeAudioTrack()
audiocontent = createObject("RoSGNode", "ContentNode")
audiocontent.url = "https://wdwntnow.oseast-us-1.phoenixnap.com/music/today_at_wdw/" + m.audio_track_index.ToStr() + ".mp3"
audiocontent.url = "https://cdn3.wdwnt.com/music/resort_tv/" + m.audio_track_index.ToStr() + ".mp3"

m.audio.content = audiocontent
m.audio.control = "play"
Expand Down

0 comments on commit ae32701

Please sign in to comment.