android - jwplayer slow buffer video lag -
i’m using jwplayer mobile site... need mobile capability html5 player.. choose jwplayer.
i'm converting video ffmpeg
ffmpeg -i input.mp4 -vcodec h264 -b 1400k -s 1280x720 -acodec libfaac -ac 2 -ab 128k -movflags faststart -y output.mp4
i'm using centos apache server , installed h264 streaming module
my videos starting fast @ first.. in middle when internet slows , buffering slows down.. @ same time video lags , sounds continues few second ... @ point video , audio sync well. happening because of slow buffer problem.. after whole video buffered when replay..full video playing . i used android phones chrome browser check . need playing position show load icon , wait if buffer slows.. not lag video
i cant lower video bitrate.. because of competitors.. want solution html5 player.. have added jwplayer code.
<script> jwplayer("myelement").setup({ width: "100%", skin: "skin.xml", autostart: true, sharing: {}, image: "http://example.com/mp4/screen.jpg", sources: [{ file: "http://example.com/720.mp4", label: "720p", "default": "true" },{ file: "http://example.com/hd/hd.mp4", label: "hd" },{ file: "http://example.com/mp4/480x320.mp4", label: "480p" }], startparam: "starttime", stretching: "exactfit", autostart: false, }); </script>
Comments
Post a Comment