This is a message.

FlowPlayer doesnt seem to work for me :( Help a girl ;D Created Jun 28, 2010

This thread is solved

Views: 1774     Replies: 7     Last reply Jul 20, 2010  
You must login first before you can use this feature

sophie19

Posts: 3

Registered:
Jun 25, 2010

FlowPlayer doesnt seem to work for me :( Help a girl ;D

Posted: Jun 28, 2010


 <html>  
 <head>
 
 <script src="test2.js"></script>
	<script type="text/javascript">
 /*
	    function querySt(ji) {
	        hu = window.location.search.substring(1);
	        gy = hu.split("&");
	        for (i = 0; i < gy.length; i++) {
	            ft = gy[i].split("=");
	            if (ft[0] == ji) {
	                return ft[1];
	            }
	        }
	    }

	    function doSomething() {

	        var test = new StringBuilderEx();
	        var a = querySt("number");
	        test.append("test");
	        test.append("<a ");
	        test.append("href="test.flv" ");
	        test.append("Style ="display:block;width:425px
height:300px;" ");
	        test.append("id="player" ");
	        test.append("test</a> ");
	        test.append("<script language="JavaScript" ");
	        test.append("> ");
	        test.append("flowplayer("player" ");
	        test.append(", "flowplayer-3.2.2.swf" ");
	        test.append("); </script>");
	        return test.toString();
	    }

</script>


    <script src="flowplayer-3.2.2.min.js"></script>

		<title>test</title>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
		
		<style type="text/css" media="screen">
			body { background-color: #003d81; margin: 1pc; text-align: center; font-family: Arial, sans-serif; color: Olive; }
			h1 { text-transform: uppercase; font-size: 2pc; }
			h2 { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 2.7pc; font-weight: bold; letter-spacing: -0.2pc; cursor: default; border-bottom: 1px white dotted; }
			h3, h3 b { font-size: 0.7pc; text-align: justify; font-weight: normal; }
			#encase { width: 600px; border: 2px #0054b5 groove; padding: 0.5pc; margin-left: auto; margin-right: auto; }
			#encase p { font-size: 0.7pc; text-align: justify; }
			#b_enter a { padding: 0px 28px 2px 28px; color: white; background-color: #71a230; border: 1px white solid; font-family: "Trebuchet MS", Arial, sans-serif; text-decoration: none; font-size: 2pc; font-weight: bold; margin-right: 1pc; }
			#b_enter a:hover { background-color: white; color: #71a230; border: 1px #71a230 solid; }
			#b_exit a { padding: 0px 40px 2px 39px; color: white; background-color: #9d1111; border: 1px white solid; font-family: "Trebuchet MS", Arial, sans-serif; text-decoration: none; font-size: 2pc; font-weight: bold; }
			#b_exit a:hover { background-color: white; color: #9d1111; border: 1px #9d1111 solid; }
			#footer p { font-size: 0.8pc; text-align: center; color: #2976CF; }
			#footer a { margin-right: 1pc; color: #2976cf; }
			#footer a:hover { color: Olive; }
			#title_4 { background-color: #2976cf; margin-right: 1pc; padding: 0.2pc; font-weight: bold; }
			p#tour_link {text-align: center;margin-top: 20px;} 
			#tour_link a {color: #bbf;text-decoration:none;margin-top:10px;} 
		</style>

	
	</head>

<body>
<script type="text/javascript">
 /* 
   document.write(doSomething());
</script>
</body>
</html>

Note the test2.js is

 /*
    // Assign our class to Array class
    var StringBuilderEx = Array;
    
    // Using prototype I link function append to push
    Array.prototype.append=Array.prototype.push;

    // Used to convert arguments in array
    Array.prototype._convertToArray=function(arguments)
    {
        if (!arguments) 
            return new Array();

        if (arguments.toArray)
            return arguments.toArray();

        var len = arguments.length 
        var results = new Array(len);

        while (len--)
        {
            results[len] = arguments[len];
        }

        return results;
    };

    // First solution using regular expression
    Array.prototype.appendFormat=function(pattern)
    {
        var args = this._convertToArray(arguments).slice(1);
    
        this[this.length]=pattern.replace(/{(d+)}/g, 
            function(pattern, index)
            {
                return args[index].toString();
            });
    };
     
    // Second solution using split and join
    Array.prototype.appendFormatEx=function(pattern)
    {
        if (this._parameters==null)
            this._parameters = new Array();
        
        var args = this._convertToArray(arguments).slice(1);
    
        for (var t=0,len=args.length;t<len;t++)
        {
            this._parameters[this._parameters.length]=args[t];
        }

        this[this.length]=pattern;
    };

    // Concatenate the strings using join 
    // (some lines of code are relay with second solution)
    Array.prototype.toString=function()
    {
        var hasParameters = this._parameters!=null;
        hasParameters = hasParameters && this._parameters.length>0;
    
        if (hasParameters)
        {
            var values = this.join("").split('?');
            var tempBuffer = new Array();
        
            for (var t=0,len=values.length;t<len;t++)
            {
                tempBuffer[tempBuffer.length]=values[t];
                tempBuffer[tempBuffer.length]=this._parameters[t];
            }
     
            return tempBuffer.join("");
        }
        else
        {
            return this.join("");
        }
    };

My question is : Why is the player not starting, i switched it from asp.net to html, javascript and it doesnt seem to work.

I have the link video with the link on the bottom of the page but the video never start.

:(

gmccomb

Posts: 746

Registered:
Apr 9, 2009

» FlowPlayer doesnt seem to work for me :( Help a girl ;D

Posted: Jun 28, 2010

Reply to: FlowPlayer doesnt seem to work for me :( Help a girl ;D, from sophie19
Rather than try to debug ASP code you should simply look at the code that's generated, and available in the Show Source or Page Source in your browser. Compare that with the minimal install instructions.

You didn't post the pure HTML version so it's hard to tell if you're doing things right there.

Consider posting a live URL showing your work in progress. If you get it to work, please add a reply to your thread, and mark it solved.

sophie19

Posts: 3

Registered:
Jun 25, 2010

» » FlowPlayer doesnt seem to work for me :( Help a girl ;D

Posted: Jun 28, 2010

Reply to: » FlowPlayer doesnt seem to work for me :( Help a girl ;D, from gmccomb
Actually, when i press page source, i see the javascript thing :

script type="text/javascript">
document.write(doSomething());
</script>

gmccomb

Posts: 746

Registered:
Apr 9, 2009

» » » FlowPlayer doesnt seem to work for me :( Help a girl ;D

Posted: Jun 30, 2010

Reply to: » » FlowPlayer doesnt seem to work for me :( Help a girl ;D, from sophie19
My bad. I too-quickly assumed the code was server-side.

You might want to look into whatever debug console is available for your browser. Check for errors, and look at the page as it is rendered, not the source.

But maybe before that go back and hand-code a VERY basic page using HTML only (no dynamic writing) and get that to work.

Frederik

Posts: 2

Registered:
Jul 20, 2010

» FlowPlayer doesnt seem to work for me :( Help a girl ;D

Posted: Jul 20, 2010

Reply to: FlowPlayer doesnt seem to work for me :( Help a girl ;D, from sophie19
maybe you could googling it..