Release Kaleido 0.1.10 with native Original playback and PCM compatibility
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m45s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m45s
This commit is contained in:
parent
784921dba9
commit
2a83fe0db5
23 changed files with 721 additions and 43 deletions
|
|
@ -26,7 +26,7 @@ def ready(item,timeout=45):
|
|||
|
||||
def controls():
|
||||
adb('shell','am','force-stop','tv.kaleido.app');adb('logcat','-c')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset','90000','--ei','testMode','1')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset','90000','--ei','testMode','1','--ez','testValidation','true')
|
||||
ready(7599);key(127);focused('Play')
|
||||
screenshot('direct-stream-episode')
|
||||
key(4);wait(lambda r:not labels(r),'One Back must hide controls rather than only clearing focus')
|
||||
|
|
@ -67,7 +67,7 @@ def episode():
|
|||
item=titles[0];expected=str(titles[1]['ratingKey'])
|
||||
adb('shell','am','force-stop','tv.kaleido.app')
|
||||
adb('logcat','-c')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId',str(item['ratingKey']),'--el','testOffset','90000','--ei','testMode','2')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId',str(item['ratingKey']),'--el','testOffset','90000','--ei','testMode','2','--ez','testValidation','true')
|
||||
time.sleep(9);key(127);focused('Play')
|
||||
for _ in range(6):
|
||||
if 'Next episode' in focus(snapshot()):break
|
||||
|
|
@ -82,12 +82,12 @@ def episode():
|
|||
assert 'item='+expected in logs,'Next episode did not become the active player'
|
||||
print('PASS next episode replaced player with expected title')
|
||||
|
||||
def postplay():
|
||||
def postplay(mode=2):
|
||||
from inspect_server import get
|
||||
item=get('/library/metadata/7599?includeMarkers=1')['Metadata'][0]
|
||||
adb('shell','am','force-stop','tv.kaleido.app');adb('logcat','-c')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset',str(item['duration']-12000),'--ei','testMode','2')
|
||||
deadline=time.monotonic()+45
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset',str(item['duration']-12000),'--ei','testMode',str(mode),'--ez','testValidation','true')
|
||||
deadline=time.monotonic()+(90 if mode<=0 else 45)
|
||||
while time.monotonic()<deadline:
|
||||
time.sleep(1)
|
||||
logs=adb('logcat','-d','-s','KaleidoPlayback:I','AndroidRuntime:E','*:S').decode(errors='replace')
|
||||
|
|
@ -104,7 +104,7 @@ def credits():
|
|||
item=get('/library/metadata/7599?includeMarkers=1')['Metadata'][0]
|
||||
marker=next(m for m in item['Marker'] if m['type']=='credits')
|
||||
adb('shell','am','force-stop','tv.kaleido.app');adb('logcat','-c')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset',str(marker['startTimeOffset']+2000),'--ei','testMode','2')
|
||||
adb('shell','am','start','-n','tv.kaleido.app/.MainActivity','--es','testTitleId','7599','--el','testOffset',str(marker['startTimeOffset']+2000),'--ei','testMode','2','--ez','testValidation','true')
|
||||
time.sleep(6);key(127);focused('Play');key(19);focused('Playback timeline');key(19);focused('Skip credits')
|
||||
screenshot('skip-credits-contrast');key(23)
|
||||
deadline=time.monotonic()+8
|
||||
|
|
@ -125,4 +125,4 @@ def credits():
|
|||
(OUT/'postplay-cancel.log').write_text(logs)
|
||||
print('PASS skip credits -> postplay, episode/related rows, cancellable autoplay')
|
||||
|
||||
globals()[sys.argv[1]]()
|
||||
if __name__=='__main__':globals()[sys.argv[1]]()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue