It’s Open Source. Ultimately you can do whatever you like to your CMS.
A webservice is NOT the way to accomplish live event handling as you describe. You need something that can push commands direct to the Player. I’ve suggested some technologies. I’m afraid I can’t offer you more help than that.
We added the sliders in the display page as you said and now we are facing an issue in retrieving the corresponding displayname for the slider.
How can we take the display name for each slider from that table? Could you please help us in this ?
Hi Dan,
This is the code we have written for adding the volume slider , for getting the volume and its corresponding display. We want to pass these JS variables to the DB. So for that used ajax method to convert the JS variables to PHP. But the value is not getting passed from the Display.class.php.
Below is the code we have written in table_render.php file
All I’m saying is that you’re developing something, which we’ve said isn’t generally useful to the project in our opinion (because it doesn’t really fit with the project goals due to the way you want to implement it).
If and when Dan has time to help you out with your project then I’m sure he will do, but you have to appreciate that it’s not a priority for us because it’s of no benefit to the project, so waiting 2 hours before grumbling because nobody told you how to write some software you’re developing isn’t really on in my opinion.
Of course Alex, I too want to implement it in some other method but presently, this is the only way I’m having for implementing this feature. Sorry if I was wasting your time.
You’re not wasting anyones time. All I’m asking for is a little understanding and patience from you. We simply don’t have the resources to help everyone within a few minutes of them posting - especially when the question is about writing custom code which will take time to understand before any reasonable feedback can be given.
Ok Alex, I will definitely wait and at the same time I will try from my end. If I get any other way, I will share it in the forum. Thank you for your support.
I think you have misunderstood how JavaScript and PHP interact with each other, JavaScript is client side and PHP is server side, you cannot have an UPDATE statement or any PHP in your JavaScript success callback.
You need to have the client read the values from your slider and send them to the server. The server then updates them and responds with a success or failure.
In your client side javascript code you could have something like this:
q=UpdateVolume is important because it will map to your displayDAO controller class method name. So in PHP you would have something like this in the displayDAO class:
Obviously you’d have to do the appropriate sanitization and validate your volume figure was correct. I’d also recommend catching the error condition in your JavaScript handler.
Thanks a lot for your help . But still when I tried doing like this I get a blank white screen page on click of display menu while opening in chrome and I get an error stating “HTTP 500 Internal Server Error” while opening in IE. Could please help with this issue ?
Coming in here late but here is my suggestion for controlling volume at the player. I currently run a 100 location network in veterinary hospitals. We started in 2004 on Scala but are in the process of migrating to Xibo. One of the things we offer our clients is the ability to run music through Winamp. So music is streaming while the video is playing. The problem is when we have a video with its own audio in the playlist then we need to turn down Winamp until after the AV file plays, then turn it back up. We do this using a small VBS script and it works. We need to figure out how to keep this functionality as we migrate to Xibo.
Scala has a feature on Media Items that support audio called “Audio Ducking”. If enabled, it pauses the main audio and plays the audio from the Media Item. When the Media Item finishes it resumes playback of the main audio. The “main audio” is specified using a special audio-only playlist (Scala’s “Playlist” is roughly equivalent to a Xibo “Layout”).
If the Xibo team were to accomplish something like this, I’d be delighted as the Audio Ducking feature of Scala is one of a few that I’d sorely miss.
In the meantime, we’ll likely follow suit with the post above, using a player like WinAMP and turning it down/up via a Xibo Shell Command before/after videos that contain audio. Not optimal, but workable.