2
Reply

How to use jw player

sathya kumar

sathya kumar

May 4 2011 9:12 AM
11.4k
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)