Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Shiva's Avatar
    Probation Member

    Status
    Offline
    Join Date
    Jun 2009
    Posts
    35
    Downloads
    0
    Uploads
    0

    Run video in html in netbeans?

    i am not able to run a video in an html file in netbeans IDE. When i dont run the code in netbeans, the video is playin. Any idea what could be the problem. Please help. Here is the code i am using


    <html>
    <head>
    </head>
    <body>
    <video width="320" height="240" controls>
    <source src="source of the video" type="video/mp4"/>
    </video>
    </body>
    </html>

  2. #2
    kaydell's Avatar
    Newbie - NLP

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    4
    Downloads
    0
    Uploads
    0
    Would you mind giving us the source of the video?


    <source src="source of the video" type="video/mp4"/>

    ???

    --- Edit ---

    When I had trouble playing a video in HTML, I used the iframe tag instead of the video tag:

    Here's a link to what I have.

    http://codepad.org/umgTY0bF

    I validated the HTML so I had to add a DOCTYPE (this specifies HTML5) and I added a <title> element since it is required to validate, and I added a declaration of UTF-8 as the charset. It's good to have pages that validate.

 

 

Quick Reply Quick Reply

Click here to log in


In what corner do we have Search box?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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