Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By AjitRamdas

Thread: HTML5 Video tag

  1. #1
    Junior Member
    Join Date
    Mar 2015
    Posts
    2
    Member #
    48140

    HTML5 Video tag

    Hi

    My first time here and im unsure if this is HTML5the right place for my post. But seen as im asking about HTML5 and its new Video tag, i guessed maby this was the right one. So forgive me if i got this wrong.

    Ok

    Im working on a website were video lessons can be uploaded and the users can view. I wanted to know if HTML5`s new Video tag can be used dynamically? and if do how to get it working. Im creating a website that has video lessons, the Admin if the site would upload a Video lesson with other info that goes along with it such as title, brief description etc. I want to use HTML5`s new video tags to do this. But what im trying is not working. I will show and example of the code ive tried below

    <video width="320" height="240" controls>
    <source src="<?php echo $row_WADAvideolessons['Video']; ?>"" type="video/mp4">
    Your browser does not support the video tag.
    </video>

    but i cannot get it working, any help with this would be great.

    Willo

  2.  

  3. #2
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    This may be a silly question but did you set an HTML5 doctype? For HTML5 its like this

    Code:
    <!doctype html>
    Artificial intelligence is nothing compared to natural stupidity -Someone

    Design is a funny word. Some people think design means how it looks.
    But of course, if you dig deeper, itís really how it works.
    -Steve Jobs



  4. #3
    Junior Member
    Join Date
    Mar 2015
    Posts
    2
    Member #
    48140
    Hi Andrew this is not a silly question, its a very important one . . .but yes my pages have the correct mark-up. Thankyou for your input.

    Rgds Willo

  5. #4
    Banned
    Join Date
    Feb 2015
    Posts
    100
    Member #
    42499
    Liked
    4 times
    <video width="320" height="240" controls>
    <source src="movie.mp4" type="video/mp4">
    <source src="movie.ogg" type="video/ogg">
    Your browser does not support the video tag.
    </video>

    This is how you can tag your video.
    Studio87 likes this.

  6. #5
    Senior Member Noteleklabs's Avatar
    Join Date
    Jun 2012
    Location
    NC
    Posts
    217
    Member #
    31890
    Liked
    28 times
    Just to add on a little bit, this line right here

    HTML Code:
    <source src="<?php echo $row_WADAvideolessons['Video']; ?>"" type="video/mp4">


    has an extra
    " at the end of your source attribute, which is probably why it wasn't working. Also, putting a php tag inside a source attribute technically isn't dynamic, at least not in the eyes of the browser, but the time it gets the html, the server side php has already filled in the blanks.
    Hey you! Go make something!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:51 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com