sathya kumar

sathya kumar

  • NA
  • 90
  • 0

How to use jw player

May 4 2011 9:12 AM
Hi friends,

       I  download the jw player. i want to know how to give the video url at the run time for the java script given by jw player. if anyone know the solution help me.

Here is the code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

    <title>Untitled Page</title>

</head>

<body>

    <form id="form1" runat="server">

    <div>

   

      <div id="mediaplayer">JW Player goes here</div>

      <script type="text/javascript" src="jwplayer.js"></script>

      <script type="text/javascript">

            jwplayer("mediaplayer").setup({

                  flashplayer: "player.swf",

                  file: "sample.flv",

                  image: "preview.jpg"

            });

    </script>

     

    </div>

    </form>

</body>

</html>

 



              thanks,

Answers (2)