Results 1 to 4 of 4

Thread: use player

  1. #1
    Join Date
    Jan 2011
    Posts
    17

    Default use player

    can i use flowplayer for vshare2.7 ?:confused:

  2. #2
    Join Date
    Sep 2007
    Posts
    906

    Default

    You need to modify include/player.inc to use flowplayer.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  3. #3
    Join Date
    Jan 2011
    Posts
    17

    Default

    <?php

    $displayheight = $config['player_height'] - 20;

    $vshare_player = <<<EOT

    <script type="text/javascript" src="{$config['baseurl']}/player/flowplayer-3.2.4.min.js"></script>




    <p id="vshare_player">
    <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>
    </p>

    <script type="text/javascript">
    var so = new SWFObject("{$config['baseurl']}/player/flowplayer-3.2.5.swf","vshare_player","$config[player_width]","$config[player_height]","8");
    so.addParam("allowfullscreen","true");
    so.addParam('allowscriptaccess','always');
    so.addParam('allownetworking','all');

    so.addVariable("file","{$file}" );
    so.addVariable("image","{$video_thumb_url}/thumb/{$video_folder}{$video_id}.jpg");
    so.addVariable("logo","{$config['baseurl']}/templates/images/watermark.gif");
    so.addVariable("link","{$config["watermark_url"]}");
    so.addVariable("linktarget","_blank");
    so.addVariable("width","{$config['player_width']}");
    so.addVariable("height","{$config['player_height']}");
    so.addVariable("displayheight","$displayheight");
    so.addVariable("overstretch", "true");
    so.addVariable("autostart", "{$config['player_autostart']}");
    so.addVariable("bufferlength", "{$config['player_bufferlength']}");
    so.write('vshare_player');

    </script>

    EOT;
    yeah done that but it is giving get adobe icon

  4. #4
    Join Date
    Sep 2007
    Posts
    906

    Default

    First, you need to get code for flowplayer and work it with a normal video in a HTML page. Once that works, convert that code to player.inc. Both should display same code when you take view source code.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •