Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 Video player issue in Chrome

I am embedding html5 video player in my aspx page. Playback is OK in all browsers except chrome (Version 28.0.1500.52). Video stops automatically after 10 secs of playback (video not running completely). Its quite annoying issue. Its working fine on my college computer running chrome version (Version 29.0.1547.66).

here is html

<video id="intro_vid" controls width="800" height="500">
    <source src="Video/Dd.ogv" type='video/ogg;' />
    <source src="Video/Dd.webm" type='video/webm' >
    <source src="Video/Dd.mp4" type='video/mp4'>
    <p>Video is not visible in your browser, Please upgrade your browser</p>
</video>

js to show hide video player.

$(".vid_desi").click(function () {
    $(".introVid").lightbox_me({
        centered: true,
        modalCSS: { left: 50, top: 0 }
    });
    $(".close_Vid_btn").show();
});

$(".close_Vid_btn").click(function () {

    //alert('video close');
    $("video").each(function () {
        $(this).get(0).pause();
    });
    $(".close_Vid_btn").hide();
    $('.js_lb_overlay').hide();
    $(".vid_desi").hide();
    $(".introVid").hide();
});

enter image description here

like image 515
Aamir Shahzad Avatar asked Oct 21 '22 01:10

Aamir Shahzad


2 Answers

I have encountered bugs with chrome and my own html5 video players before. an update solved the issue, I logged a bug report with google and forgot about it. I wouldn't worry about it, most likely a bug with that version of chrome

like image 135
Dave Haigh Avatar answered Oct 23 '22 18:10

Dave Haigh


It is very common for browsers (not only chrome) to have issues or bugs with playing from HTML5 video players. Try uploading to the latest version of chrome, Version 33.0.1750.152.

The video will probably play without breaking abruptly. Otherwise, file a bug report with Google about the issue. Hopefully, it'll be rectified soon.

like image 41
Anirudh Ajith Avatar answered Oct 23 '22 20:10

Anirudh Ajith