简体   繁体   中英

JWplayer doesn't play video fast

I use jwplayer 7 for my website. The video we are using are MP4 formats.

My problem is jwplayer star playing the videos only after they load and I don't want that.

Is there any setting or configuration or tricks for that?

sample link from my site

In this website Android app, this problem didn't exist.

What is the behavior you're trying to achieve? Not autostarting video? From the JWP side, you can set autostart to true (or false). Default behavior is autostart: false.

Here is an article that you may find helpful that details how to autostart on page load: https://support.jwplayer.com/customer/en/portal/articles/1428525-autostarting-on-page-load

You won't like the answer, I appreciate your site has many (thousands?) of video files and it's gunna be a mission to edit each one. If they were all edited & saved from one program that means they all have this problem. If you receive videos from various sources then some files may be okay.

About the problem files. Like I said in the comments, your link has videos with metadata at the back end of file. I know this because I checked the bytes already.

Look at this image of bytes of AzhanceShisheii_128.hugg.mp4 as sampled from your link...

The file correctly begins with ftyp at (1), but then at (2) it says mdat . MDAT is the audio/video frame bytes all mixed up in any order. So how does video player know which bytes are for frame 1 image and bytes for sound of frame 1? It checks metadata section called moov . The previous 4 bytes show size of sections, here the hex value of 09 DE AD 0E means a size of 165.6 mb (check here ). So until 165 megabytes are downloaded, Player cannot even know where any frame 1 data is to display a picture (there is no rule that mdat content must be in order of appearance).

You have to edit your files so its small moov metadata first then large mdat after, not what you have now which is... large mdat first then later followed by small moov metadata.

前面的MDAT与MOOV字节的例子

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM