Results 1 to 3 of 3
  1. #1
    gstar is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default making a video play with custom button?

    Java Code:
    		<script type="text/javascript">
    		function myFunction() {
    			document.write('<table border="1" cellspacing="1" cellpadding="5">')
    			for(i = 0; i < 1; i++){
    			   document.write('<tr>')
    			   document.write('<td><embed name="twitcamPlayer" src="http://static.livestream.com/grid/LSPlayer.swf?hash=asqy3&autoplay=1" width="360" height="100" ></embed>' + i + '</td>')
    			   document.write('</tr>')
    			}
    		}
    		document.write('</table>')
    		</script>
    		<button onclick="myFunction()">Try it</button>
    Basically, i cant figure out a way to start the twitcam once the button is pressed any help guys?
    Im new i dont know if this the right section, so sorry

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: making a video play with custom button?

    This is a Java forum, and you appear to be asking a JavaScript question. Please understand that Java is to JavaScript as Ham is to Hamster. They're not the same language, and since you've asked your question in the wrong forum, we can't help you. I still wish you success in solving this, but recommend that you ask Google to help you find some JavaScript forums so you can get real help, and waste less of your time waiting for answers that will never come.

    Luck.

  3. #3
    gstar is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default Re: making a video play with custom button?

    Thanks, learnt sutting new today ;)

Similar Threads

  1. Play A Video in JFrame
    By Godslug in forum AWT / Swing
    Replies: 1
    Last Post: 03-26-2012, 12:25 PM
  2. how to play a video from a file using jmf in a java
    By 200808147 in forum New To Java
    Replies: 0
    Last Post: 07-10-2011, 12:20 PM
  3. Replies: 0
    Last Post: 06-07-2010, 06:23 PM
  4. How to play video files in Java
    By Hasan in forum Advanced Java
    Replies: 11
    Last Post: 04-26-2009, 11:57 PM
  5. code to play Video from server
    By arvind in forum CLDC and MIDP
    Replies: 0
    Last Post: 04-15-2009, 09:19 AM

Posting Permissions

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