This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Aleksandrs Čudars
about 11 years

2.2 The Video Element

For this code:

<video controls="controls">
        <source src="http://bit.ly/w3mp4vid">
</video>

I get this error:

Oops, try again. 
Whoops! The source of your video is not the correct URL.

The task is:

Write a video tag with the source of “http://bit.ly/w3mp4vid“. Don’t forget to specify the controls=”controls” attribute otherwise the controls will not show up!

So what am I doing wrong?

(Same goes for the section 2.3 and 3.2)

Answer 515c0437d883f8eab0001566

5 votes
Best answer

Permalink

this code will pass (step2):

<video controls="controls" src="http://bit.ly/w3mp4vid"> </video>

Description: I guess it’s just a ‘bug’ in this tutorial. “src” attribute in < video > tag will works as well, but with the embedded < source > tag, you can have different format of the video file to tackle the compatibility issue with different browsers.


Reference : http://www.html5rocks.com/en/tutorials/video/basics/#toc-markup http://www.w3schools.com/html/html5_video.asp

points
Submitted by ahchienong
almost 11 years

3 comments

Nędza Darek almost 11 years

It works, thanks!

Aleksandrs Čudars almost 11 years

it similarly passes for step 3 as well. Thanks ahchien!

ahchienong almost 11 years

Great to be able to help, You’re welcome =)

Answer 513fd26af67b7dd8060009cd

1 vote

Permalink

I found the solution - one has to include the src remark in the video element, so before the /video.

points
Submitted by rick2234
about 11 years

2 comments

Aleksandrs Čudars about 11 years

can you explain in detail?

Leelo about 10 years

Answer 5128c0b6bcf70e7c01001665

0 votes

Permalink

I believe that the

points
Submitted by Catarina Clemente
about 11 years

Answer 5128c4ce3150fc5269001894

0 votes

Permalink

I answered with this code:

video controls=”controls” source src=”http://w3schools.com/tags/movie.ogg“ type=”video/ogg” source src=”http://w3schools.com/tags/movie.mp4“ type=”video/mp4”

And, still, I got this error message:

Whoops! The source of your video is not the correct URL.

Maybe with a little help… Thanks in advance.

points
Submitted by Catarina Clemente
about 11 years

Answer 513dd3cc3c9a0e002f00678f

0 votes

Permalink

You need to use this code to pass

    <video controls="controls">
        <source src="http://bit.ly/w3mp4vid" type="video/mp4">
        <source src="http://bit.ly/w3oggvid" type="video/ogg">
        Your browser does not support the HTML5 video tag.
    </video>

The trick lies in specifying the correct file type in the url like below source src=”http://bit.ly/w3**mp4**vid“ type=”video/mp4“ source src=”http://bit.ly/w3**ogg**vid“ type=”video/ogg

points
Submitted by xavier_glab
about 11 years

5 comments

Aleksandrs Čudars about 11 years

of course we tried it, which is why this issue exists and is still not resolved.

Nędza Darek almost 11 years

Aleksandrs, I think problem lays in correctness tests issues not with code that was sent by Xavier. It is working - it shows movie and play it.

Aleksandrs Čudars almost 11 years

yes, that is true and you are correct! =)

Nędza Darek almost 11 years

Aleks, so maybe we shall repair his course? Is this possible? I have never tried making codeacademy’s course so I don’t know.

Aleksandrs Čudars almost 11 years

I think only the Codecademy team can change the courses and the only the course creator can modify his/hers correctness of the tests for successful passing.

Answer 513e25fdb92aa9a03f001557

0 votes

Permalink

Same problem as above users, any fix?

points
Submitted by arcCoder86624
about 11 years

Answer 513fcdc42d9c871b40000742

0 votes

Permalink

I also cannot find code that works. Xavier_glab’s code also failed.

points
Submitted by rick2234
about 11 years