Не нравятся результаты поиска? Попробуйте другой поиск!
DLE FAQ » Все вопросы » Общие вопросы по вёрстке » Дополнительное поле под js и flash видео. Как сделать?

Дополнительное поле под js и flash видео. Как сделать?


     04.01.2017    Все вопросы » Общие вопросы по вёрстке    1745

вопрос
Помогите создать дополнительное поле под видео чтобы можно было выводить видео файлы с помощью видеоплеера spruto в формате js
<script type="text/javascript" src="http://s3.spruto.org/embed/player.js"></script> <script class="splayer"> var params = {"playlist":[{"video":[{"url":"http://p.spruto2.pulter.netdna-cdn.com/vod/spruto2.pulter/promo.mp4"}],"duration":0,"posterUrl":"http://s3.spruto.org/images/Sps_02_spruto_player_screen_1024.jpg"}],"uiLanguage":"ru","width":"640","height":"360"}; player.embed(params); </script>]

И в формате flash
<embed id="player" src="http://s3.spruto.org/embed/player.swf" width="640" height="360" flashvars="set_pl1_video1_url=http%3A%2F%2Fp.spruto2.pulter.netdna-cdn.com%2Fvod%2Fspruto2.pulter%2Fpromo.mp4&set_pl1_duration=0&set_pl1_posterUrl=http%3A%2F%2Fs3.spruto.org%2Fimages%2FSps_02_spruto_player_screen_1024.jpg&set_uiLanguage=ru" bgcolor="#000000" wmode="opaque" allowscriptaccess="always" type="application/x-shockwave-flash" allowfullscreen="true" allownetworking="external" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>)

Если вставлять код в сам шаблон, то видео работает как надо, а если через дополнительное поле, то показывает обрезанный код
var params = {"playlist":[{"video":[{"url":"http://p.spruto2.pulter.netdna-cdn.com/vod/spruto2.pulter/promo.mp4"}],"duration":0,"posterUrl":"http://s3.spruto.org/images/Sps_02_spruto_player_screen_1024.jpg"}],"uiLanguage":"ru","width":"640","height":"360"}; player.embed(params); 

Помогите пожалуйста собрать дополнительное поле под js и flash видео

Ответа пока нет


Чтобы комментировать - войдите или зарегистрируйтесь на сайте

Похожие вопросы

наверх