bennettpeter / android-MythTV-Leanfront

:tv: MythTV Android TV frontend
GNU General Public License v3.0
45 stars 9 forks source link

big delays in playing recording in progress #33

Closed jfabernathy closed 2 years ago

jfabernathy commented 2 years ago

I'm running Leanfront 355 and using the status port 6744 instead of 6544 so the play from last position works. My backend is fixes 32 22020606103 and since that update I've noticed some startup issues with Leanfront.

For example, this morning the backend started recording the CBS mornings show at 7am. At about 7:44 I started Leanfront to watch it from the beginning. Leanfront started immediately and the news program was shown as available in the News Recording group. I tried to play the program and there was a spinning circle but the show never started. I wanted a minute and then canceled. Tried again, but nothing happened.

I then force stopped the app and cleared the cache. This time the program played. I have not noticed this behavior prior to updating the backend with the 6/6/2022 version

I've attached a log from a test run where it took over 10 second for a playback to start. A normal completed recording playback starts in about 1 second. I'll try again tomorrow morning to get a log with the exact show that I noticed the problem on today. Maybe the attached log with the 10 second delay will show your something useful android.log

jfabernathy commented 2 years ago

not sure it's related, but lately, when I start leanfront on my FireTV 4K I have to click on "refresh list" to get the latest recordings. particularly for recordings in a different Recording Group. In my case Recording group "news". However after refreshing the list, when I selected that video it started playing within 5 seconds.

bennettpeter commented 2 years ago

When you exit leanfront the night before, do you use the HOME button on the fire tv remote? The fire stick handles the HOME button in a strange way that can get leanfront tied up. It is better to repeatedly press the back button until it exits to the home screen. If you do it that way the applicaton is shut down and will start cleanly next time you launch it. When it starts cleanly it refreshes the list on startup. The HOME button works correctly on other devices such as NVidia shield, but even then it is better to shut down by repeatedly pressing the back button.

jfabernathy commented 2 years ago

That's a good question. I know I use both methods. I'll use the repeated back to exit and see if I get a repeat.

I'm noticing the fact that I have to hit the refresh button when I start Leanfront to get all the programs that have started recording since the last time I ran Leanfront. I'll let you know if the proper exit fixes both

jfabernathy commented 2 years ago

Update: This morning I watched the CBS news from the start about 30 minutes into the recording. When Leanfront opened, the news program was in the list of available programs in the News Recording group, so no refresh was needed. The playback started from the beginning after 1 second. I had made sure that Leanfront the night before was closed by using multiple back button clicks.

bennettpeter commented 2 years ago

There is a new version 20220620-leanfront-release-v0-358-gb8a0f90.apk that may fix intermittent bugs like this one.

jfabernathy commented 2 years ago

i'm running that version now. I'll let you know what I find

jfabernathy commented 2 years ago

This morning when leanfront was opened, the currently recorded program was listed as expected.