@@ 34-38 (lines=5) @@ | ||
31 | ||
32 | $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); |
|
33 | ||
34 | if(preg_match(JarvisLanguage::translate('preg_match_relax_music',get_called_class()), $command)) { |
|
35 | $stream_url = 'http://pub4.radiotunes.com:80/radiotunes_relaxation_aacplus.flv'; |
|
36 | JarvisPHP::getLogger()->debug('Playing relaxation'); |
|
37 | $start_vlc = true; |
|
38 | } |
|
39 | if(preg_match(JarvisLanguage::translate('preg_match_lounge_music',get_called_class()), $command)) { |
|
40 | $stream_url = 'http://pub4.radiotunes.com:80/radiotunes_smoothlounge_aacplus.flv'; |
|
41 | JarvisPHP::getLogger()->debug('Playing lounge'); |
|
@@ 39-43 (lines=5) @@ | ||
36 | JarvisPHP::getLogger()->debug('Playing relaxation'); |
|
37 | $start_vlc = true; |
|
38 | } |
|
39 | if(preg_match(JarvisLanguage::translate('preg_match_lounge_music',get_called_class()), $command)) { |
|
40 | $stream_url = 'http://pub4.radiotunes.com:80/radiotunes_smoothlounge_aacplus.flv'; |
|
41 | JarvisPHP::getLogger()->debug('Playing lounge'); |
|
42 | $start_vlc = true; |
|
43 | } |
|
44 | if(preg_match(JarvisLanguage::translate('preg_match_jazz_music',get_called_class()), $command)) { |
|
45 | $stream_url = 'http://pub4.radiotunes.com:80/radiotunes_smoothjazz_aacplus.flv'; |
|
46 | JarvisPHP::getLogger()->debug('Playing jazz'); |
|
@@ 44-48 (lines=5) @@ | ||
41 | JarvisPHP::getLogger()->debug('Playing lounge'); |
|
42 | $start_vlc = true; |
|
43 | } |
|
44 | if(preg_match(JarvisLanguage::translate('preg_match_jazz_music',get_called_class()), $command)) { |
|
45 | $stream_url = 'http://pub4.radiotunes.com:80/radiotunes_smoothjazz_aacplus.flv'; |
|
46 | JarvisPHP::getLogger()->debug('Playing jazz'); |
|
47 | $start_vlc = true; |
|
48 | } |
|
49 | if(preg_match(JarvisLanguage::translate('preg_match_stop',get_called_class()), $command)) { |
|
50 | $result = @socket_connect($socket, 'localhost', 9999); |
|
51 | if ($result === false) { |