Release 0.1.6 with one quality setting and silent skips
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m19s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m19s
Playback mode and transcode quality become one quality list: Original quality (direct stream of the source video, the default), then 4K, 1080p, 720p and 480p conversions, with earlier preferences migrated. Left/Right taps during playback skip 10 seconds without showing the controls; holding still opens the timeline, which now keeps focus instead of losing it to Play. Player checks wait for playback to be ready and inspect the screen while paused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6a53196748
commit
74afc7f3d4
16 changed files with 113 additions and 43 deletions
|
|
@ -61,10 +61,23 @@ def browse():
|
|||
capture('plex-sign-in');key(4);text('Settings');key(4);focused('Home')
|
||||
passed('Plex account linking obtains a real PIN and cancellation preserves the session')
|
||||
|
||||
def position():
|
||||
# Live media-session position: the reported one is as of its last update, so project it to now.
|
||||
out=adb('shell','dumpsys','media_session').decode(errors='replace')
|
||||
match=re.search(r'package=tv\.kaleido\.app.*?PlaybackState \{state=(\w+)\(\d+\), position=(\d+).*?speed=([\d.]+), updated=(\d+)',out,re.S)
|
||||
assert match,'Kaleido media session not found'
|
||||
now=float(adb('shell','cat','/proc/uptime').decode().split()[0])*1000
|
||||
state,at,speed,updated=match.group(1),int(match.group(2)),float(match.group(3)),int(match.group(4))
|
||||
return int(at+(now-updated)*speed) if state=='PLAYING' else at
|
||||
|
||||
def player():
|
||||
adb('shell','am','force-stop','tv.kaleido.app')
|
||||
adb('shell','am','force-stop','tv.kaleido.app');adb('logcat','-c')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','9776','--el','testOffset','90000','--ei','testMode','2')
|
||||
time.sleep(12);key(127);focused('Play');capture('player')
|
||||
# A pause sent while the player is still preparing is overridden when playback starts.
|
||||
deadline=time.monotonic()+45
|
||||
while 'READY item=9776' not in adb('logcat','-d','-s','KaleidoPlayback:I').decode(errors='replace'):
|
||||
assert time.monotonic()<deadline,'Playback never became ready';time.sleep(.5)
|
||||
time.sleep(1);key(127);focused('Play');capture('player')
|
||||
passed('Compact player controls over actual video')
|
||||
key(19);focused('Playback timeline');key(22);capture('timeline');key(20);focused('Play')
|
||||
passed('D-pad Up focuses timeline, Right seeks, Down returns to play')
|
||||
|
|
@ -74,14 +87,24 @@ def player():
|
|||
key(4);focused('Subtitles');key(22);focused('Playback options');key(23);text('Playback options')
|
||||
key(20,3);focused('Speed');key(23);text('Playback speed');focused('1.0×');key(20);focused('1.25×');key(23)
|
||||
focused('Playback options');key(23);text('Speed · 1.25×');key(4);focused('Playback options')
|
||||
key(23);text('Playback options');key(23);text('Playback mode');focused('Transcode');key(19);focused('Direct stream');key(23)
|
||||
focused('Playback options');time.sleep(5);key(23);text('Mode · Direct stream');key(4);focused('Playback options')
|
||||
passed('Player gear changes speed and Direct stream while retaining focus')
|
||||
key(23);text('Playback options');key(23);text('Playback quality');focused('Original quality');key(20);focused('4K');key(19);focused('Original quality');key(23)
|
||||
focused('Playback options');time.sleep(5);key(23);text('Quality · Original quality');key(4);focused('Playback options')
|
||||
passed('Player gear changes speed and switches a conversion to Original quality while retaining focus')
|
||||
key(4)
|
||||
wait(lambda r:focus(r)=='' and '2 Fast 2 Furious' not in labels(r),'Controls hidden by Back')
|
||||
key(23);focused('Play');key(126);time.sleep(6)
|
||||
wait(lambda r:'2 Fast 2 Furious' not in labels(r),'Controls auto-hide during playback')
|
||||
passed('OK reveals controls; Back and playback timer hide them')
|
||||
# Pause first: visible controls update their clock while playing, which keeps uiautomator from
|
||||
# dumping a fresh hierarchy. A Right tap skips 10 s without revealing controls; holding reveals
|
||||
# the timeline.
|
||||
key(127);focused('Play');key(4);wait(lambda r:focus(r)=='' and '2 Fast 2 Furious' not in labels(r),'Controls hidden while paused')
|
||||
before=position();key(22);time.sleep(1.5)
|
||||
assert '2 Fast 2 Furious' not in labels(snapshot()),'A tap must not reveal controls'
|
||||
assert position()-before>=9000,'A tap must skip forward 10 seconds'
|
||||
adb('shell','input','keyevent','--longpress','22');focused('Playback timeline')
|
||||
passed('Left/Right taps skip silently; holding reveals the timeline')
|
||||
key(4);wait(lambda r:'2 Fast 2 Furious' not in labels(r),'Back hides controls')
|
||||
key(4);text('Continue Watching');passed('Back exits playback to live home')
|
||||
|
||||
if __name__=='__main__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue