← Форум / Вопросы / embedcode
Здравствуйте, Support!
Ребята, почему код на выдачу плеера не отобрражается веcь, а только начало:
Сам код через htmlspecialchars(’код’, ENT_QUOTES) пропускаю и переменную вставляю в
на выходе плеер выдаёт только
Сам код:
$new = htmlspecialchars('<iframe name="aspect" src="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect='.$aspect.'&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="yes"></iframe> <div align="center"><a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.33&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">4:3</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.25&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">5:4</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.77&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">16:9</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.6&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">16:10</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=2.35&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">2:35</a></div>', ENT_QUOTES);
В переменных $width, $height GET параметры. В $width и $height может передаваться 100%.
Версия FLASH плеера: 1.10.1.6 ( с поддержкой HLS )
Версия HTML5 плеера: 0.12.19
Спасибо за ответ!
PS. проверил без htmlspecialchars() — тоже самое.
PSS. Все что идет после "&", либо "& amp;" (без пробела) не выводит в "Получить код плеера".
Ребята, почему код на выдачу плеера не отобрражается веcь, а только начало:
Сам код через htmlspecialchars(’код’, ENT_QUOTES) пропускаю и переменную вставляю в
&embedcode=<?=$new?>
— FLASH,embedcode:'<?=$new?>
— HTML5на выходе плеер выдаёт только
<iframe name="aspect" src="http://site.tv/live?if=2
Сам код:
$new = htmlspecialchars('<iframe name="aspect" src="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect='.$aspect.'&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="yes"></iframe> <div align="center"><a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.33&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">4:3</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.25&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">5:4</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.77&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">16:9</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=1.6&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">16:10</a> | <a href="http://'.$_SERVER['HTTP_HOST'].'/live?if='.$_GET['if'].'&aspect=2.35&width='.$width.'&height='.$height.'" width="'.$width.'" height="'.$height.'" target="aspect">2:35</a></div>', ENT_QUOTES);
В переменных $width, $height GET параметры. В $width и $height может передаваться 100%.
Версия FLASH плеера: 1.10.1.6 ( с поддержкой HLS )
Версия HTML5 плеера: 0.12.19
Спасибо за ответ!
PS. проверил без htmlspecialchars() — тоже самое.
PSS. Все что идет после "&", либо "& amp;" (без пробела) не выводит в "Получить код плеера".
PHPSID | Ссылка на пост (Смотрели 2549) | 23.08.17 17:44 Ответить |
В HTML5 версии также сделать?
Спасибо.
Потому что плеер выдает
width=10026height=650" width="100 height="650"
в URL 10026, в размерах без знака "%" и кавычки…
Удалю через 57 мин
А когда переключаю на полную версию в браузере..всё нормально
Я же объясняю..если в браузере выставить Полная версия сайта..показывает
А так не работает