def main(): stauts = True try: ########setup video.video_set_up('dayu.mp4') #####play video base.unlock() time.sleep(3) video.launch_video() time.sleep(1) video.check_push_video() i = 0 while i < 100: video.play_video() video.cyclic_video() time.sleep(5) base.back() time.sleep(2) i += 1 logger.info('current cycle is %d' % i) ########## except Exception, msg: logger.debug('Exception:%s' % msg) stauts = False
def main(): stauts = True try: ########setup video.video_set_up('dayu.mp4') #####play video base.unlock() time.sleep(3) video.launch_video() time.sleep(1) video.check_push_video() video.play_video() time.sleep(5) video.cyclic_video() i = 0 while i < 100: time.sleep(1) base.screen_on() time.sleep(1) base.screen_on() base.unlock() i += 1 logger.info('poweroff_screen try: %d' % (i)) ########## except Exception, msg: logger.debug('Exception:%s' % msg) stauts = False
def main(): stauts = True try: video.video_set_up('dayu.mp4') #####play video base.unlock() time.sleep(3) video.launch_video() time.sleep(1) video.check_push_video() video.play_video() base.change_unmute_mute(3) base.exit_app() except Exception, msg: logger.debug('Exception:%s' % msg) stauts = False
def main(): stauts = True try: video.video_set_up('dayu.mp4') #####play video base.unlock() time.sleep(3) video.launch_video() time.sleep(1) video.check_push_video() video.play_video() video.pause_resume(100) base.exit_app() except Exception, msg: logger.debug('Main_Exception:%s' % msg) stauts = False
def main(): stauts = True try: video.video_set_up('animal.mp4') base.unlock() time.sleep(3) video.launch_video() time.sleep(1) video.check_push_video() video.play_video() time.sleep(10) video.cyclic_video() finish_time = video.run_Task() if finish_time == True: check_system.check_test_result('page://videoplayer.yunos.com') base.exit_app() except Exception, msg: logger.debug('Exception:%s' % msg) stauts = False
def main(): stauts = True try: #######setup video.video_set_up('Aboy.mp4', 'zhoujielun.mp4', 'animal.mp4') ####play video base.unlock() time.sleep(3) video.launch_video() time.sleep(10) video.check_push_video() video.play_video_createlist() for i in range(50): video.video_player_cycle('Aboy', 'zhoujielun', 'animal') logger.info('**********current cycle is %d******' % i) base.exit_app() ########## except Exception, msg: logger.debug('Exception:%s' % msg) stauts = False
def main(): try: ########setup video.video_set_up('dayu.mp4') #####play video base.unlock() time.sleep(3) video.launch_video() time.sleep(1) video.check_push_video() video.play_video() time.sleep(20) base.screen_on() time.sleep(1) base.screen_on() base.unlock() return True ########## except Exception, msg: logger.debug('Exception:%s' % msg) return False