/** * Copyright: FireDispatch.com, Inc. (c) 2016 All Rights Reserved * * Module Name: fdci_radio.js * Location: app/public/js * * Project: FireDispatch.com, Inc. (FDCI) * Author: Daryl Jones * First written: 04/11/2016 * * Purpose: * * Change History: * 01/31/2020 daryl@tcomeng.com Changed audio URLs * */ $(document).ready(function () { var stream_control1 = { title: "Control-1 (dispatch)", mp3: "https://cast1.sql2.smrn.com/7401/" }, ready = false; $("#jquery_jplayer_control1").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_control1); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_control1).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_control1", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_command11 = { title: "Command-11", mp3: "https://cast1.sql2.smrn.com/7405/" }, ready = false; $("#jquery_jplayer_command11").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_command11); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_command11).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_command11", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_tac15 = { title: "Tac-15", mp3: "https://cast1.sql2.smrn.com/7406/" }, ready = false; $("#jquery_jplayer_tac15").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_tac15); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_tac15).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_tac15", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_control2 = { title: "Control-2 (dispatch)", mp3: "https://cast1.sql2.smrn.com/7407/" }, ready = false; $("#jquery_jplayer_control2").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_control2); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_control2).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_control2", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_command21 = { title: "Command-21", mp3: "https://cast1.sql2.smrn.com/7408/" }, ready = false; $("#jquery_jplayer_command21").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_command21); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_command21).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_command21", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_tac25 = { title: "Tac-25", mp3: "https://cast1.sql2.smrn.com/7001/" }, ready = false; $("#jquery_jplayer_tac25").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_tac25); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_tac25).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_tac25", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_control3 = { title: "Control-3 (dispatch)", mp3: "https://cast1.sql2.smrn.com/7402/" }, ready = false; $("#jquery_jplayer_control3").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_control3); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_control3).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_control3", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_command31 = { title: "Command-31", mp3: "https://cast1.sql2.smrn.com/7403/" }, ready = false; $("#jquery_jplayer_command31").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_command31); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_command31).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_command31", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_tac35 = { title: "Tac-35", mp3: "https://cast1.sql2.smrn.com/7404/" }, ready = false; $("#jquery_jplayer_tac35").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_tac35); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_tac35).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_tac35", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_command41 = { title: "Command-41", mp3: "https://cast1.sql2.smrn.com/7002/" }, ready = false; $("#jquery_jplayer_command41").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_command41); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_command41).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_command41", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_tac45 = { title: "Tac-45", mp3: "https://cast1.sql2.smrn.com/7003/" }, ready = false; $("#jquery_jplayer_tac45").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_tac45); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_tac45).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_tac45", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_command51 = { title: "Command-51", mp3: "https://cast1.sql2.smrn.com/7004/" }, ready = false; $("#jquery_jplayer_command51").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_command51); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_command51).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_command51", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); // ---------- var stream_vfire21 = { title: "vFire-21", mp3: "https://cast1.sql2.smrn.com/7005/" }, ready = false; $("#jquery_jplayer_vfire21").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_vfire21); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_vfire21).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_vfire21", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); var stream_calfire = { title: "CalFire CZU", mp3: "https://cast1.sql2.smrn.com/7425/" }, ready = false; $("#jquery_jplayer_calfire").jPlayer({ ready: function (event) { ready = true; $(this).jPlayer("setMedia", stream_calfire); }, pause: function () { $(this).jPlayer("clearMedia"); }, error: function (event) { if (ready && event.jPlayer.error.type === $.jPlayer.error.URL_NOT_SET) { // Setup the media stream again and play it. $(this).jPlayer("setMedia", stream_calfire).jPlayer("play"); } }, cssSelectorAncestor: "#jp_container_calfire", swfPath: "", supplied: "mp3", preload: "none", wmode: "window", keyEnabled: true }); });