The solution to the forced stretching phenomenon in the playback screen of the H.265 streaming media player EasyPlayer on the mobile phone

In the previous article, we introduced the function update of the H5 web player EasyPlayer, including the realization of real-time video recording on the web page and low-latency live broadcast on iOS. EasyPlayer streaming media player has stable performance and smooth playback. It is a highly reliable and highly available H.265/H.264 player, which can support multiple types of video streaming formats, including RTSP, RTMP, HLS, FLV, WebRTC, etc.

Recently, we found that when EasyPlayer is played on the mobile phone, the video screen is forcibly stretched, which brings a bad experience to users. In response to this situation, we immediately investigated and resolved it.

After investigation, it was found that it was forced to stretch because of the css style:

Optimize the code here, modify the default property to not stretch, and then optimize the video player experience on the mobile phone.

If users want to stretch by default, they can set easyStretch to true here.

In order to meet the diverse scene needs of users, EasyPlayer has multiple versions, including EasyPlayer-RTSP, EasyPlayer.js, EasyPlayerPro, etc., which can support RTSP, RTMP, HTTP, HLS, UDP, RTP, File and other streaming media protocol playback . Interested users can go to the official website to download, deploy and test.

Guess you like

Origin blog.csdn.net/TsingSee/article/details/127516618