Igalia / meta-webkit

Yocto / OpenEmbedded layer for WebKit based engines and browsers
MIT License
125 stars 67 forks source link

Server video fileplay in COG downloads video locally on everytime at /var/tmp/XXX - imx8mp #400

Closed Rutvij-dev closed 1 year ago

Rutvij-dev commented 1 year ago

Hi, I am running COG with below environment setup,

Hardware Toradex verdin - imx8mp - 2 GiB (memory)

Software BSP - 5.4.161 (dunfell) COG - v0.12.3 WPEwebkit - 2.34.6

I have created one ngnix server on x86 machine, wrote index.html (attached index.html.txt - index.html.txt) and kept H264 video in the same directory.

On target hardware when I run cog <http://ip of server> , it plays video from server with below observations.

Observation

Also I observed that in this particulate time of caching , user can see high pick in CPU % utilisation in top command for WPENetworkProce process until full cached download, this be the separate utilization apart from multimedia processing.

Is there anything I can do to avoid multiple time caching for the same setup on multiple run ?

Appreciate your guidance.

-- Thanks

philn commented 1 year ago

I suspect that, while not optimal, this is might be the expected behaviour... So you reload the page and download starts over, right?

One workaround, in case download buffering is not so useful for you, is to disable it... <video preload=none ....>.

Rutvij-dev commented 1 year ago

Hi @philn, Thank you for an option ,

The problem i am facing is in both the case restart and reload the page.

Also I tried this in index.html as

<body>  
 <video preload=none muted autoplay controls>  
 <source src="BBB-720p-30fps.mp4" type="video/mp4" preload="none">

However No difference , the caching still happens every time in restart and in re-load of page in cog.

philn commented 1 year ago

Can you set this env var and try again? WPE_SHELL_DISABLE_MEDIA_DISK_CACHE=1 ?

Rutvij-dev commented 1 year ago

Still no luck , WPENetworkProce does the downloading again.

philn commented 1 year ago

And tmp files are still written on disk or not?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stale for 7 days with no activity.