JW Player на основе Silverlight.

Тема в разделе "Внешний вид, шаблоны, графика", создана пользователем Xapek, 15.12.2010.

  1. Xapek
    Offline

    Xapek Недавно здесь

    Регистрация:
    28.11.2010
    Сообщения:
    7
    Симпатии:
    0
    Пол:
    Мужской
    Добрый день всем!
    Интересует плеер на основе Silverlight для joomla(воля начальства). Нашёл вот такой плеер JW плеер, но вот как его установить не знаю, мучаюсь уже второй день...
    Инструкция на сайте есть, но для меня эт не понятно, с англ. не айс. вот инструкция:
    Код (html):
    1. Installation
    2.  
    3. This section details a step-by-step process of how to install the JW WMV Player onto your page.
    4.  
    5. Step 1: Transfer the two .JS files and the .XAML file from the download ZIP to your website and include these lines in the header of your site:
    6.  
    7. <script type="text/javascript" src="silverlight.js"></script>
    8.     <script type="text/javascript" src="wmvplayer.js"></script>
    9.  
    10. Step 2: Setup an element you want the player to appear in and insert the JavaScript that will place the player below it:
    11.  
    12. <div id="myplayer">the player will be placed here</div>
    13.    
    14.     <script type="text/javascript">
    15.         var elm = document.getElementById("myplayer");
    16.         var src = '/jw/embed/wmvplayer.xaml';
    17.         var cfg = {
    18.             file:'/videos/myvideo.wmv',
    19.             width:'320',
    20.             height:'180'
    21.         };
    22.         var ply = new jeroenwijering.Player(elm,src,cfg);
    23.     </script>
    24.  
    25. Notice the cfg object in the code is where to put your configuration variables. When installing the player, be sure to refer to all files with the correct directory prefix (and don't forget to upload all videos / songs / images you want to show to your site).

    Как его внедрить?
    Заранее спасибо!!!
     
  2.  

Поделиться этой страницей

Загрузка...