SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Expected '}'

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Expected '}'

    Hi all I get an expected '}' js error, I just added in the controls line maybe it is something to do with this? I have tried adding '}' is various places but I am clueless when it comes to js- whaere should the closing bracket go? Thank you

    HTML Code:
    <script type="text/javascript">
    <!--  Specify your player below. You uploaded this in step 2b -->
    $f("a.rtmp", "http://s3.amazonaws.com/videoexample/flowplayer-3.2.7.swf", { 
     
    	//  This next code configures the player to use rtmp plugin for streaming. 
    		clip: { 
    			provider: 'rtmp'
    		}, 
    	// Here is our rtpm plugin configuration 
    		plugins: { 
    		controls: {
    	url: 'videoexample/flowplayer.controls-3.2.1.swf'
    }
     
    	  		rtmp: {  
    		  
    <!--  This is where you call on the rtmp plugin. You uploaded this in step 2d. It is recognizable by its .swf suffix and the section with 'rtmp' in the file name 
    -->
    			url: 'flowplayer.rtmp-3.2.3.swf',			
    /*
    	"netConnectionUrl" below defines where the streams are found;
    	this URL is specific to Amazon CloudFront. it is the address you are given when you made a streaming distribution of the bucket in which your video resides, ending in .cloudfront.net. YOU *MUST* ADD "/cfx/st" IN ORDER TO ENSURE THAT YOUR VIDEO WILL STREAM. Mine would read 'rtmp://s1jng015tymskd.cloudfront.net/cfx/st'
    */
    netConnectionUrl: 'cloudfront.net/cfx/st'  
    		} 
    }	     
    });
    </script>

  2. #2
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    in what line is the } expected?

  3. #3
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    On this line: rtmp: {

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,804
    Mentioned
    157 Post(s)
    Tagged
    3 Thread(s)
    Looking at the format of the function it looks like it takes parameters separated by comma's.
    try:
    Code:
    <script type="text/javascript">
    <!--  Specify your player below. You uploaded this in step 2b -->
    $f("a.rtmp", "http://s3.amazonaws.com/videoexample/flowplayer-3.2.7.swf", { 
     
    	//  This next code configures the player to use rtmp plugin for streaming. 
    		clip: { 
    			provider: 'rtmp'
    		}, 
    	// Here is our rtpm plugin configuration 
    		plugins: { 
    			controls: {
    				url: 'videoexample/flowplayer.controls-3.2.1.swf'
    			},
    			rtmp: {  	
    				url: 'flowplayer.rtmp-3.2.3.swf',			
    				netConnectionUrl: 'cloudfront.net/cfx/st'  
    			} 
    		}	     
    });
    </script>
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  5. #5
    SitePoint Evangelist
    Join Date
    Mar 2008
    Posts
    551
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I tried that out and then deleted the comment, it seems that the comments were the issue!


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
  •