Author Topic: Trigger Events from Cartwall  (Read 7514 times)

aspinwalld

  • New User

  • Offline
  • *
  • 13
    • Aspinwall Productions
Trigger Events from Cartwall
« on: August 15, 2016, 03:25:30 PM »
Is it possible to trigger manual events from the cartwall or a hotkey?

Background:
I plan on using RadioDJ as a remote automation solution for ball games at a commercial radio station. I have made an event that triggers an automated playlist that consists of a station ID, two spots, and a bed (all are automatically rotated through categories). Since this, in my opinion, is the best way to create dynamic content for ball game breaks, is there a way to trigger this manual event from the cartwall or a hotkey? I would love for the announcer to just be able to click on a cartwall item and the playlist auto-generates, loads up, and plays.

Thanks in advance!

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: Trigger Events from Cartwall
« Reply #1 on: August 15, 2016, 06:02:54 PM »
No, events can't be triggered manually. Not in RadioDJ version 1.8.2.0.
However, manual events can be inserted in main playlist using rotations or by loading a playlist. There are no other options until someone writes a plugin to trigger events or Marius adds the feature in next RadioDJ version.
I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

aspinwalld

  • New User

  • Offline
  • *
  • 13
    • Aspinwall Productions
Re: Trigger Events from Cartwall
« Reply #2 on: August 15, 2016, 07:23:27 PM »
Thanks.

So the easiest way to do it (until some awesome dev out there writes a plugin) would be to make one playlist that contains that event? Then just have the announcers open the playlist which will load the dynamic content from the event? If I remember correctly it's only two button clicks to load in a playlist, so that isn't that bad actually.

Also, on another topic, is it possible to put a stop set in between two pieces of audio in an event?

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: Trigger Events from Cartwall
« Reply #3 on: August 15, 2016, 08:30:42 PM »
So the easiest way to do it (until some awesome dev out there writes a plugin) would be to make one playlist that contains that event? Then just have the announcers open the playlist which will load the dynamic content from the event? If I remember correctly it's only two button clicks to load in a playlist, so that isn't that bad actually.
Yes, that's correct. Loading playlists may not as easy as single-click cartwall (or event wall), but it should work.
In fact, I've developed few plugins for RadioDJ and I have had the same idea about cart wall for firing manual events. I could write a plugin for that, but right now I'm busy working on improved REST server plugin.

Also, on another topic, is it possible to put a stop set in between two pieces of audio in an event?
It is possible to stop playback using a manual event in playlist, if that is what you meant. To do that, create a manual event and add "Assisted Enable!" action. That will stop main playlist advancing to next track.
I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5748
    • Radio DJ
Re: Trigger Events from Cartwall
« Reply #4 on: August 15, 2016, 09:33:11 PM »
Give me a day or two for the events cartwall. It may be handy in many situation such a plugin. ;)
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

aspinwalld

  • New User

  • Offline
  • *
  • 13
    • Aspinwall Productions
Re: Trigger Events from Cartwall
« Reply #5 on: August 16, 2016, 07:56:33 PM »
"A Day or Two"
Marius, you are the best!

aspinwalld

  • New User

  • Offline
  • *
  • 13
    • Aspinwall Productions
Re: Trigger Events from Cartwall
« Reply #6 on: August 16, 2016, 08:09:20 PM »
Valdis: although it looks like Marius may make cartwall triggering into a plugin/feature, for the current time, I do have a quick question. At times, when I open the playlist into the automation log, it stays in the log as an event, and hitting my play hotkey will run the event and populate the log with my audio and play it. Other times, when I open the playlist, it automatically runs the event and plays my files (since I've got it set to automation). Do you know why this action is not consistent?

Thanks for your input!

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: Trigger Events from Cartwall
« Reply #7 on: August 16, 2016, 08:55:12 PM »
Valdis: although it looks like Marius may make cartwall triggering into a plugin/feature, for the current time, I do have a quick question. At times, when I open the playlist into the automation log, it stays in the log as an event, and hitting my play hotkey will run the event and populate the log with my audio and play it. Other times, when I open the playlist, it automatically runs the event and plays my files (since I've got it set to automation). Do you know why this action is not consistent?
The playback should be consistent. I'll try to explain how it works. When "AUTOMATED" is on and there are no track playing, but there was a track playing an it finished, RadioDJ will play first track or trigger first event in main playlist. However, if a track is playing or nothing was playing before loading a playlist, RadioDJ will not start playing next track or trigger next playlist event.
Although it is not possible to tell, RadioDJ is in play mode and waiting for tracks to be added in main playlist after current track has finished playing and there are no tracks in main playlist. So, if "AUTOMATED" is on, as soon as you add new items to playlist, they are played.

The only inconsistency is that there are no indications of RadioDJ being in playing/waiting mode. IMHO, the play button should have some visual clue when RadioDJ is in this mode.
I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

aspinwalld

  • New User

  • Offline
  • *
  • 13
    • Aspinwall Productions
Re: Trigger Events from Cartwall
« Reply #8 on: August 16, 2016, 09:09:44 PM »
The playback should be consistent. I'll try to explain how it works. When "AUTOMATED" is on and there are no track playing, but there was a track playing an it finished, RadioDJ will play first track or trigger first event in main playlist. However, if a track is playing or nothing was playing before loading a playlist, RadioDJ will not start playing next track or trigger next playlist event.

What you are saying makes sense, however it may or may not be exactly what I'm looking to solve.

When opening the playlist (containing the event), there is never anything playing or cued up to be played. There has, however always been something previously run through the playout log. According to your post the action should be automatically running the event and playing the audio.
The system is always in "automated" mode with AutoDJ off (since I don't have any rotations set up AutoDJ doesn't really matter). The inconsistency that I am seeing is that sometimes the system will automatically play the playlist event (which in turn fires off all of the audio events since I'm running in Automated). Other times, when I go to open the playlist the event just sits at the top of the playlist and needs to be manually triggered (play hotkey). Is it possible that there's some timeout for autoplay functionality or am I way off?

My sports announcer that is remotely "board-opping" through radiodj can't have this inconsistency in playback, so just hoping to find a fix.

Thanks again for all of your help.

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: Trigger Events from Cartwall
« Reply #9 on: August 16, 2016, 10:08:56 PM »
When opening the playlist (containing the event), there is never anything playing or cued up to be played. There has, however always been something previously run through the playout log. According to your post the action should be automatically running the event and playing the audio.
The system is always in "automated" mode with AutoDJ off (since I don't have any rotations set up AutoDJ doesn't really matter). The inconsistency that I am seeing is that sometimes the system will automatically play the playlist event (which in turn fires off all of the audio events since I'm running in Automated). Other times, when I go to open the playlist the event just sits at the top of the playlist and needs to be manually triggered (play hotkey). Is it possible that there's some timeout for autoplay functionality or am I way off?

There is one more condition to the playing/waiting mode - if the playing track has been stopped using stop button or keyboard shortcut, RadioDJ stops waiting for new tracks in queue playlist. That might explain the behaviour you are seeing.

AFAIK, there is no timeout for the waiting-to-play. It can be stopped only by the stop button even if there is nothing playing.
I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

aspinwalld

  • New User

  • Offline
  • *
  • 13
    • Aspinwall Productions
Re: Trigger Events from Cartwall
« Reply #10 on: August 16, 2016, 10:16:25 PM »
I'll have to ask my ball game announcer if he was manually stopping anything. That would definitely explain inconstant behavior; the software is being consistent with its actions, it's the human factor that's inconsistent. Thanks!

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5748
    • Radio DJ
Re: Trigger Events from Cartwall
« Reply #11 on: August 17, 2016, 03:29:57 PM »
As i promised, i wrote a plugin for this task.
You can download it from Downloads page, it is named "Events Cart" plugin. Please test it and if you encounter problems, post them here.
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.

aspinwalld

  • New User

  • Offline
  • *
  • 13
    • Aspinwall Productions
Re: Trigger Events from Cartwall
« Reply #12 on: August 17, 2016, 03:39:02 PM »
Thanks Marius!
I'll test it out when my sports announcer brings the remote laptop back to the station tonight or tomorrow. This is going to make our lives so much easier (and probably has a bunch of other uses too).

Valdis

  • Hero Member

  • Offline
  • *****
  • 562
  • Personal Text
    Radio is a mental condition
    • home
Re: Trigger Events from Cartwall
« Reply #13 on: August 17, 2016, 03:51:59 PM »
As i promised, i wrote a plugin for this task.
You can download it from Downloads page, it is named "Events Cart" plugin. Please test it and if you encounter problems, post them here.
That's great!

However, I already have first stack trace after clicking "Show" button in plugins window:
Code: [Select]
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Plugin_EventsCart.PluginClass.ShowMain()
   at RadioDJ.FormPlugins.butShow_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Have to check that form before calling Show() even if it should have been assigned in constructor. ;)
I am, therefore I think.
I design and develop web apps, and have created few RadioDJ plugins - https://axellence.lv/downloads/

Marius

  • Administrator
  • Hero Member

  • Offline
  • *****
  • 5748
    • Radio DJ
Re: Trigger Events from Cartwall
« Reply #14 on: August 17, 2016, 04:16:13 PM »
Have to check that form before calling Show() even if it should have been assigned in constructor. ;)

[EDITED POST!]

I did managed to reproduce it, by selecting the external window, not restarting the program and pressing SHOW button on plugins list. I added the extra check so now it should work fine.
I will update the downloads page also.

I will make it be able to switch from one mode to another without restart, but for now i think that it will do it's job as it is.

Thanks for reporting it.  ;)
DOWNLOADS PAGE

HOW TO FIX RADIODJ DATABASE
----------------
Please don't PM me for support requests. Use the forums instead.