profoundDmd
New Coder
What's up everybody, got a question/problem here:
I created a website and would like to play some videos in it.
Src is empty because the actual link to the video is dynamically changed.
The problem is that the video is played (very) laggy. Nothing too bad really, but it's not supposed to happen. I can play youtube-videos and stuff without any problem. This site won't be used online and will always run on localhost, so a slow internet connection is not the problem. When I open it in Quicktime player for example, it plays fine, not slow, no lag, nothing. But when I view it in my webbrowser it almost seems like it's being played over slow internet.... It happens in Chrome and FF (haven't tried other browsers), hardware acceleration does nothing. Videos are only around 70mb, not even full hd...yet. They're all mp4's, that shouldn't be a problem, right? Maybe there's something wrong with the html5 video-tag? Haven't used it before, so maybe i'm missing something obvious? Any suggestions?
Thnx!
I created a website and would like to play some videos in it.
HTML:
<video id="oldtv" width="1200" height="680" data-setup='{}'>
<source src="" type="video/mp4">
</video>
Src is empty because the actual link to the video is dynamically changed.
JavaScript:
$("#oldtv").find("source").attr("src", "video/vid" + (index + 1) + ".mp4");
The problem is that the video is played (very) laggy. Nothing too bad really, but it's not supposed to happen. I can play youtube-videos and stuff without any problem. This site won't be used online and will always run on localhost, so a slow internet connection is not the problem. When I open it in Quicktime player for example, it plays fine, not slow, no lag, nothing. But when I view it in my webbrowser it almost seems like it's being played over slow internet.... It happens in Chrome and FF (haven't tried other browsers), hardware acceleration does nothing. Videos are only around 70mb, not even full hd...yet. They're all mp4's, that shouldn't be a problem, right? Maybe there's something wrong with the html5 video-tag? Haven't used it before, so maybe i'm missing something obvious? Any suggestions?
Thnx!
Last edited: