Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7060833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:24:01+00:00 2026-05-28T04:24:01+00:00

trying to access various properties of my video tag. started looking at the HTML5

  • 0

trying to access various properties of my video tag. started looking at the HTML5 video api for some answers.

here is my basic code that i am playing with…

<body>
<div style="text-align:center">     
    <video id="video" onClick="cut()" src="test.mp4" autoplay="autoplay" >

        not supported
    </video>
</div>

<script type="text/javascript">

    var myVideo=document.getElementById("video");
    var currentClip=0;
    document.write(myVideo.isEnabled); // trying to print this out to see what happens

    function cut()
      {
        if (currentClip == 0){
            myVideo.src = "bend.mp4"
            currentClip = 1;
            }
        else{
            myVideo.src = "test.mp4";
            currentClip = 0;
            }
      }

    function playPause(){
        if (myVideo.paused){ 
            myVideo.play(); 
        }
        else{ 
            myVideo.pause(); 
            } 
        }

     function makeBig(){ 
        myVideo.height=(myVideo.videoHeight*2); 
        } 

     function makeSmall(){ 
        myVideo.height=(myVideo.videoHeight/2); 
        } 

     function makeNormal(){ 
        myVideo.height=(myVideo.videoHeight); 
        } 

</script>

i am trying to use this line
document.write(myVideo.isEnabled);
but get undefined. i have limeted experience in web programming, so please excuse if there are any obvious problems.

i seemed to think i could do this by reading this part section of the api
http://www.w3.org/TR/html5/video.html#media-resources-with-multiple-media-tracks

i guess i just really don’t know how to use it any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:24:01+00:00Added an answer on May 28, 2026 at 4:24 am

    Please note that the <video> tag object does not have a isEnabled attribute. You were looking at the MultipleTrackList interface which is not the same thing.
    Check out: http://www.w3schools.com/html5/tag_video.asp and https://developer.mozilla.org/en/HTML/Element/video and https://developer.mozilla.org/en/Using_HTML5_audio_and_video

    Also, instead of using document.write() to debug, use alert( something ) or better yet (if you are working on chrome or firefox with firebug install) use console.log( something ) and see the output in the console (use f12 in chrome to see it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to access various parts of a nested class structure using a arbitrary
Am trying to import some selective data and create a table in MS Access
I'm trying to merge\combine two datatables. I've looked at various examples and answers but
I'm trying to change the properties of various UIButton that I have declared as
I am trying to access various functions from the 'Approximate nearest neighbor' ( ANN
For a project I'm looking at various HTML5 and Javascript elements and security around
I am trying to build an API that gives data on various cities. Currently,
I am trying to permit a python app to access various locations in a
I am trying to access the indentation levels of various bulleted list items. So
I'm trying to access out-of-network profiles using the LinkedIn API, following the instructions from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.