njumzs / mythdroid

Automatically exported from code.google.com/p/mythdroid
0 stars 0 forks source link

Progress Bar does not update #104

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of MythDroid were you using?
trunk rev 771 
built for Android 2.3.3 with API level 10

Which version of MDD?
trunk rev 771

Which version of MythTV were you using? (e.g. mythfrontend --version)
MythTV Version : v0.25
MythTV Branch : fixes/0.25
Network Protocol : 72
Library API : 0.25.20120408-1
QT Version : 4.8.1

What steps will reproduce the problem?
1. Play a video
2. Note that the progress bar does not move during playback

Please provide any additional information below.
mdd.log:
Sat 21 Jul 14:38:01 - Debug -   -> LMSG: SET_CHANNEL_PROGRESS "7:04/59:59" 0.117
Sat 21 Jul 14:38:02 - Debug -   -> LMSG: SET_CHANNEL_PROGRESS "7:04/59:59" 0.117
Sat 21 Jul 14:38:03 - Debug -   -> LMSG: SET_CHANNEL_PROGRESS "7:04/59:59" 0.117

LCD.pm seems to be expecting something like:
Sat 21 Jul 14:38:01 - Debug -   -> LMSG: SET_CHANNEL_PROGRESS 0.117
Sat 21 Jul 14:38:02 - Debug -   -> LMSG: SET_CHANNEL_PROGRESS 0.117
Sat 21 Jul 14:38:03 - Debug -   -> LMSG: SET_CHANNEL_PROGRESS 0.117

Therefore (this was my fix but I'm no perl guru):
LCD.pm changed from:
    elsif ($data =~ /^SET_CHANNEL_PROGRESS\s+([\.\d]+)/) {
        return $self->channelProgress($1);
    }
to:
   # jcc there may be 2 or 3 "tokens", take the last one
   elsif ($data =~ /^SET_CHANNEL_PROGRESS.*?([\.\d]+)$/) {  
        return $self->channelProgress($1);  
    }

Cheers,
John

Original issue reported on code.google.com by john.clo...@gmail.com on 21 Jul 2012 at 7:41

GoogleCodeExporter commented 8 years ago
Thanks, I'll get this committed

Original comment by foobum on 23 Jul 2012 at 8:38

GoogleCodeExporter commented 8 years ago
Forgot to update the ticket - was fixed in r780. Thanks John.

Original comment by foobum on 3 Oct 2012 at 10:23

GoogleCodeExporter commented 8 years ago
Hi foobum,

I installed mythdroid and MDD 0.6.2, and still have the problem with progress 
bar not updating.  Am I the only one?

MythTV Version : v0.25.3-23-g0b60406
MythTV Branch : fixes/0.25
Network Protocol : 72
Library API : 0.25.20120506-1
QT Version : 4.8.1

My suggested code above fixes it for me, again.

Thanks,
John

Original comment by john.clo...@gmail.com on 7 Jan 2013 at 12:48