예제 #1
0
 def release_output(self, output):
     output.release()
     HttpClient.make_request(
         TimestampUtils.get_miliseconds(self.starting_interval_seconds),
         TimestampUtils.get_miliseconds(self.next_interval_seconds),
         self.current_video_piece_filename)
     self.delete_file()
예제 #2
0
    def send_file_multiple_times(filename='sample.mp4', seconds_to_add=10):
        for index in range(MINIMUM_NUMBER_OF_REPETITIONS_EXPECTED):
            starting_timestamp = time.time()
            final_timestamp = starting_timestamp + float(seconds_to_add)

            HttpClient.make_request(
                TimestampUtils.get_miliseconds(starting_timestamp),
                TimestampUtils.get_miliseconds(final_timestamp), filename)