powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Java [игнор отключен] [закрыт для гостей] / Скрипт выбора URL
1 сообщений из 1, страница 1 из 1
Скрипт выбора URL
    #38156172
sergheyka22
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Здравствуйте форумчане, столкнулся с такой проблемой
Код: javascript
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
<script type="text/javascript">
function init() {
var useInternalControls = true;

var controls = new TorrentStream.Controls("tsplayer", {
style: useInternalControls ? "internal" : "ts-black",
debug: true
});

try {
var player = new TorrentStream.Player(controls.getPluginContainer(), {
debug: true,
useInternalControls: useInternalControls,
bgColor: "#000000",
fontColor: "#ffffff",
onLoad: function() {
this.registerEventHandler(controls);
controls.attachPlayer(this);
try {
					var p = this;
					var str = "$url_channel";
					if (str.indexOf("http") == 0){
						this.loadTorrent(str, {autoplay: true});
					}
					else{
						this.loadPlayer(str, {autoplay: true});	
					}
				} catch(e) {
					console.log("init: " + e);
				}
}
});
}
catch(e) {
controls.onSystemMessage(e);
}
}
</script>



В строчке : происходит выбор плеера для ссылок с HTTP и без. Во всех браузерах плеер работает кроме Фаерфокса который работает через раз. В чем тут может быть причина? спасибо
Код: javascript
1.
2.
3.
4.
5.
6.
7.
var str = "$url_channel";

if (str.indexOf("http") == 0){
this.loadTorrent(str, {autoplay: true});
}
else{
this.loadPlayer(str, {autoplay: true});
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / Java [игнор отключен] [закрыт для гостей] / Скрипт выбора URL
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]