/    Sign up×
Community /Pin to ProfileBookmark

video not play in all browsers

i make a fullscreen video, when tested it offline, its just fine. but when i view it online, the video not play, and just blank (black). and i add some code to directly goes to homepage when videos end, and a skip link. why?

this my code:

[CODE]
<script type=”text/javascript” src=”http://code.jquery.com/jquery-1.4.2.min.js”></script>
<script type=”text/javascript”>
$(document).ready(function(){
$(“#video-id”).bind(‘ended’, function(){
location.href=”index2.html#item1″;
});
});
</script>
</head>

<body>

<div class=”videoContainer”>
<video autoplay id=”video-id”>
<source src=”final2.mp4″ type=’video/mp4; codecs=”avc1.42E01E, mp4a.40.2″‘ />
</video>

<div id=”linka”>
<a href=”index2.html”>Skip >></a>
</div>
[/CODE]

the css

[CODE]
.videoContainer
{
height:100%;
width:100%;
overflow: hidden;
top:0;
left:0;
}

video
{
width: 100%;
height: auto;
max-width: 100%;
}

[/CODE]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @aelynne spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...