Heavy CPU usage listening to MP3 stream using built-in browser [answered]
Steps to reproduce:
- Live in Finland - I'm not sure if the stream works abroad. Should apply to others, too...
- Open Jolla browser and head over to http://www.radiorock.fi
- Wait until the page loads
- Click the play/pause symbol on top of the page to start streaming
- Enjoy the show, and notice device rather quickly warming up
Everything worked as expected, but after some 20 minutes of playing the stream, I took the device off the charger, and noticed it was way too hot! I checked CPU usage using terminal and utility 'top' noticing the browser process using about 45-65% of CPU, pulseaudio was using about 5%, and bluetooth using 1-2%, as I was connected to Logitech bluetooth receiver. I also later checked if not using bluetooth had any difference, but sailfish-browse still used the same amount of CPU power.
This CPU usage seems very high to me. If I stop the stream, CPU usage goes down to idle. I suspect it's in the internal handling of the stream or perhaps missing hardware decoding. The actual stream - this took some digging - is http://83.102.39.40/Radiorock.mp3 and now having created .PLS to play it using the built-in browser, CPU usage is roughly 12-17% for pulseaudio and 3-6% for jolla-mediaplay, the percentages apply to also playing regular MP3 file.
This can be circumvented by digging the actual stream, wrapping it in .PLS and playing that insted, but it's out of usual users' reach - not out of usual Jolla users' reach, though! Does the streaming really hog up that much juice, or could that be optimized somehow?
Oh yeah, I use software version 1.0.7.18 (.16) now, but there doesn't seem to be anything connection-related on this.
EDIT 29.10.2016: Running 2.0.4 now, with updated browser and stuff, the situation is still the same. I have been using Nettiradio for a long time, works like a charm! Doesn't really fix the problem, though.
I have the same behaviour while using YTPlayer from Jolla store, even if I only playback downloaded tracks CPU Usage is around 30-50% at all...
drummer12 ( 2015-09-12 16:56:41 +0200 )editI tested it with youtube in the browser: https://dl.dropboxusercontent.com/u/51032565/20150912193001.jpg
slehtonen85 ( 2015-09-12 21:42:38 +0200 )editNoticed the same while watching some videos on ted.com. Phone heats up and consumes a lot of battery. Haven't tested it yet on Eineheminlampi.
Wizah ( 2015-09-12 22:52:13 +0200 )editVideo streaming is something quite different, also a LOT more demanding - I'd expect to see high CPU usage then, but not with just simple MP3 stream.
Direc ( 2015-09-12 22:54:49 +0200 )edit