Closed Bug 1121647 Opened 10 years ago Closed 10 years ago

Screen turns off by timeout while playing flash video

Categories

(Firefox for Android Graveyard :: Plugins, defect)

35 Branch
ARM
Android
defect
Not set
normal

Tracking

(firefox35 affected, firefox36 affected, firefox37 affected, firefox38 verified, fennec+)

RESOLVED FIXED
Firefox 38
Tracking Status
firefox35 --- affected
firefox36 --- affected
firefox37 --- affected
firefox38 --- verified
fennec + ---

People

(Reporter: mirraz1, Assigned: snorp)

References

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150114183400

Steps to reproduce:

Play flash video. Version: Flash Player 11.1 for Android 4.0 (11.1.115.81)


Actual results:

Screen turns off by timeout.


Expected results:

Screen shouldn't turn off while playing flash video. Previous version Firefox 34 for Android worked fine.
OS: Linux → Android
Hardware: x86_64 → ARM
Sounds like lifecycle issues with the plugin.
On Alcatel One Touch (Android 4.1.2) from Settings -> Display -> I set "Sleep after 15 sec of inactivity" and then play www.intel.com/museumofme/mobile/index.htm. flash video.
Screen turns off while playing the flash video on Firefox for Android 35, Firefox for Android 36 Beta 1, latest Aurora 37.0a2 and latest Nightly 38.0a1. 
The video played until the end on Firefox 34.0.1
Can you assist with a regression-range?
Status: UNCONFIRMED → NEW
tracking-fennec: --- → ?
Ever confirmed: true
Regression window-wanted:

good build: 03-10-2014 
bad build: 04-10-2014  
pushlog:http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b85c260821ab&tochange=229801d17f7e

Bug 1022669 - Display does not turn off while playing audio
Note: scenarios tested
flash video: http://goo.gl/VLqwCA
audio file: http://goo.gl/lv8SLA
HTML5 video:  http://goo.gl/gStfPS
From Settings -> Display -> I set "Sleep after 15 sec of inactivity" and leave the video play for a while:

03-10-2014 build:
1. flash video => The screen won't go off while playing a flash video.
2. audio file => The screen won't go off while audio file is played.
3. HTML5 video => The screen won't go off while playing a HTML5 video.

04-10-2014 build:
1. flash video => The screen turns off while no audio is heard.
2. audio file => The screen turns off while audio is heard.
3. HTML5 video => The screen won't go off while playing a HTML5 video.

So, the screen shouldn't go off by timeout while playing a flash and a HTML5 video and it should go off by timeout while playing an audio file.
Looks like this is expected behavior after bug 1022669 what is going to be our behavior here?
Flags: needinfo?(snorp)
Flags: needinfo?(alam)
I understand that we should be able to continue playing audio even with the screen off but video should leave it on... unless I'm missing something? (totally possible)
Flags: needinfo?(alam)
bug 1022669 changed this behavior for Fx35 we need to make a decision if we should prioritize battery life or uninterrupted video?
Bug 1022669 changed the behavior for HTML video and HTML audio, but did nothing for Flash video.

I believe the issue is how do we get Flash video to act like HTML video? Where in the plugin code do we add the wakelock call to keep the screen from turning off while Flash is playing a video?
We're supposed to respond to Flash's wakelock requests in ANPSystem.cpp:setPowerState(). Maybe something has gone wrong there.
Assignee: nobody → snorp
tracking-fennec: ? → +
Flags: needinfo?(snorp)
Same problem here when we flash videos online the screen turn off as if we are not watch nothing. Please you help.me?
This ensures we are using the right topic string in order to keep the screen on.
Attachment #8555242 - Flags: review?(esawin)
Attachment #8555242 - Flags: review?(esawin) → review+
https://hg.mozilla.org/mozilla-central/rev/dcffe1f134a7
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Going to Settings -> Display -> I set "Sleep after 15 sec of inactivity" and then played www.intel.com/museumofme/mobile/index.htm video. The screen does not go off while playing it, so:
Verified as fixed using:
Build: Firefox for Android 38.0a1 (2015-02-04)
Device: Alcatel One Touch (Android 4.1.2)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: