New issue
Advanced search Search tips

Issue 867323 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug-Regression



Sign in to add a comment

FPS of desktop stream is reduced when user does nothing.

Reported by ydeura.a...@gmail.com, Jul 25

Issue description

UserAgent: Mozilla/5.0 (X11; CrOS armv7l 10718.58.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.70 Safari/537.36
Platform: 10718.58.0 (Official Build) beta-channel veyron_minnie

Steps to reproduce the problem:
I created an app that captures desktop images and uses those in NaCl module.
The app gets a desktop stream by using navigator.webkitGetUserMedia, posts it to NaCl,
and gets each frame data by using OnGetFrame in NaCl().
Problem is reduction of OnGetFrame's FPS.
When a user does nothing, OnGetFrame is called rarely(every 20 seconds).

I attached an app that logs when OnGetFrame is called. Please use it below steps.
1.(Preparation) Connect to External Display.
2. Launch the app and choose Internal Display.
3. Show Console window by using inspector.
4. Hide the app window, move inspector window to external display, and move mouse cursor to external display.
(Step 4 makes "User does nothing" environment.)
5. Check OnGetFrame call by log.

What is the expected behavior?
OnGetFrame is called frequently(every 50 ms).
(Stable:67.0.3396.99 is good response)

What went wrong?
OnGetFrame is called rarely(every 20 seconds).
(Beta:68.0.3440.70 is rarely response)

WebStore page: 

Did this work before? Yes Stable:67.0.3396.99

Chrome version: 68.0.3440.70  Channel: beta
OS Version: 10718.58.0
Flash Version: 30.0.0.134 /opt/google/chrome/pepper/libpepflashplayer.so

Attathed sample app is based on nacl_sdk/pepper_49/examples/api/media_stream_video.
I added navigator.webkitGetUserMedia in moduleDidLoad and LogToConsole in OnGetFrame.
 
media_stream_video_desktopcapture.zip
2.8 MB Download
Below is log in my env(ASUS Chromebook Flip C100PA).
index.html:1 OnGetFrame:02:47:01.757
index.html:1 OnGetFrame:02:47:12.051
index.html:1 OnGetFrame:02:47:32.032
index.html:1 OnGetFrame:02:47:52.103
index.html:1 OnGetFrame:02:48:01.776
index.html:1 OnGetFrame:02:48:12.133
index.html:1 OnGetFrame:02:48:32.092
index.html:1 OnGetFrame:02:48:52.175
index.html:1 OnGetFrame:02:49:01.798
index.html:1 OnGetFrame:02:49:12.150
index.html:1 OnGetFrame:02:49:32.209
index.html:1 OnGetFrame:02:49:52.232
index.html:1 OnGetFrame:02:50:01.832
index.html:1 OnGetFrame:02:50:12.246
index.html:1 OnGetFrame:02:50:32.252
index.html:1 OnGetFrame:02:50:52.274
index.html:1 OnGetFrame:02:51:01.854
index.html:1 OnGetFrame:02:51:23.297
index.html:1 OnGetFrame:02:51:32.338
index.html:1 OnGetFrame:02:51:52.285
index.html:1 OnGetFrame:02:52:01.283
index.html:1 OnGetFrame:02:52:12.325

Sign in to add a comment