@freemaxby

Как настроить плеер javascript?

Доброго всем дня.
Сам я в этом бум-бум :) Но начальство сказала и холопы делают :)
И так, есть флеш плеер который играет музычку из папки вот кусочек кода как он выводиться на сайте:
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">

			// JAVASCRIPT VARS
			// cache buster
			var cacheBuster = "?t=" + Date.parse(new Date());
            
            // swf path
            var swfPath = "preview.swf";
            //swfPath += cacheBuster; // uncomment this line to activate the cache buster
            
			
			// stage dimensions
			var stageW = 281;//560;//"100%";
			var stageH = 78;//300;//"100%";
			
			
			// ATTRIBUTES
		    var attributes = {};
		    attributes.id = 'FlabellComponent';
		    attributes.name = attributes.id;
		    
			// PARAMS
			var params = {};
			params.allowfullscreen = "true";
			params.allowScriptAccess = "always";
			params.bgcolor = "#ffffff";
			params.wmode = "transparent";
			

		    /* FLASH VARS */
			var flashvars = {};				
			
			/// if commented / delete these lines, the component will take the stage dimensions defined 
			/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml			
			flashvars.componentWidth = stageW-1;//281; // define these dimensions different then the stage dimension only for preview because the component is samller then the stage
			flashvars.componentHeight = stageH-1;//78;
			
			/// path to the content folder(where the xml files, images or video are nested)
			/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
			flashvars.pathToFiles = "player/";
			flashvars.xmlPath = "xml/settings.xml";
			
			// other vars
			flashvars.artistName = "Своё радио";
			flashvars.songName = "«Своё радио 106,1 FM»";
			flashvars.songURL = "songs/song.mp3";			
						
			
			/** EMBED THE SWF**/
			swfobject.embedSWF(swfPath, attributes.id, stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);
		</script>
	
		<table width="100%" height="100%" cellpadding="0" cellspacing="0">
			<td align="center">
				
				<!-- this div will be overwritten by SWF object -->		
				<div id="FlabellComponent">
					<p>Для прослушивания радио установите Flash Player 9+</p>
					<a href="http://www.adobe.com/go/getflashplayer">
						<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>
					</a>
				</div>
			
			</td>
		</table>
		</div>

Скажите пожалуйста, можно ли через этот плеер пустить радио поток типа sv.wargaming.fm:8051/128? Есть другие готовые решения просто вставил в поле scr= этот адрес и все гуд, но царю нравиться именно этот плеер.
Всем спасибо
Файлы плеера: ссылка
  • Вопрос задан
  • 260 просмотров
Пригласить эксперта
Ответы на вопрос 1
Taraflex
@Taraflex
Ищу работу. Контакты в профиле.
Лучше воспользуйтесь библиотекой
www.schillmania.com/projects/soundmanager2
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы