@@ -36,7 +36,13 @@ module Device
36
36
# @driver.background_app(-1) #=> the app never come back. https://github.com/appium/appium/issues/7741
37
37
#
38
38
39
- # @!method start_recording_screen(remote_path: nil, user: nil, pass: nil, method: nil, force_restart: nil, video_type: 'mp4', time_limit: '180', video_quality: 'medium')
39
+ # @since Appium 1.9.1
40
+ # @!method start_recording_screen(remote_path: nil, user: nil, pass: nil, method: nil, force_restart: nil, video_type: 'mjpeg', time_limit: '180', video_quality: 'medium', video_scale: '320:240')
41
+ #
42
+ # Record the display of devices running iOS Simulator since Xcode 9 or real devices since iOS 11
43
+ # (ffmpeg utility is required: 'brew install ffmpeg').
44
+ # We would recommend to play the video by VLC or Mplayer if you can not play the video with other video players.
45
+ #
40
46
# @param [String] remote_path: The path to the remote location, where the resulting video should be uploaded.
41
47
# The following protocols are supported: http/https, ftp.
42
48
# Null or empty string value (the default setting) means the content of resulting
@@ -51,21 +57,24 @@ module Device
51
57
# @param [Boolean] force_restart: Whether to try to catch and upload/return the currently running screen recording
52
58
# (`false`, the default setting on server) or ignore the result of it
53
59
# and start a new recording immediately (`true`).
54
- # @param [String] video_type: The format of the screen capture to be recorded.
55
- # Available formats: "h264", "mp4" or "fmp4". Default is "mp4" .
56
- # Only works for Simulator .
60
+ # @param [String] video_type: The video codec type used for encoding of the be recorded screen capture .
61
+ # Execute `ffmpeg -codecs` in the terminal to see the list of supported video codecs .
62
+ # 'mjpeg' by default .
57
63
# @param [String] time_limit: Recording time. 180 seconds is by default.
58
64
# @param [String] video_quality: The video encoding quality (low, medium, high, photo - defaults to medium).
59
65
# @param [String] video_fps: The Frames Per Second rate of the recorded video. Change this value if the resulting video
60
66
# is too slow or too fast. Defaults to 10. This can decrease the resulting file size.
67
+ # @param [String] video_scale: The scaling value to apply. Read https://trac.ffmpeg.org/wiki/Scaling for possible values.
68
+ # No scale is applied by default.
61
69
#
62
70
# @example
63
71
#
64
72
# @driver.start_recording_screen
65
- # @driver.start_recording_screen video_type: 'h264', time_limit: '260'
73
+ # @driver.start_recording_screen video_type: 'mjpeg', time_limit: '260'
74
+ # @driver.start_recording_screen video_type: 'libx264', time_limit: '260' # Can get `.mp4` video
66
75
#
67
76
68
- # @since 1.3.4
77
+ # @since Appium 1.3.4
69
78
# @!method start_performance_record(timeout: 300000, profile_name: 'Activity Monitor')
70
79
#
71
80
# This is a blocking application.
@@ -88,7 +97,7 @@ module Device
88
97
# @driver.start_performance_record(timeout: 300000, profile_name: 'Activity Monitor')
89
98
#
90
99
91
- # @since 1.3.4
100
+ # @since Appium 1.3.4
92
101
# @!method get_performance_record(save_file_path: './performance', profile_name: 'Activity Monitor', remote_path: nil, user: nil, pass: nil, method: 'PUT')
93
102
#
94
103
# This is a blocking application.
@@ -115,7 +124,7 @@ module Device
115
124
# @driver.get_performance_record
116
125
# @driver.get_performance_record(save_file_path: './performance', profile_name: 'Activity Monitor')
117
126
118
- # @since 1.6.0
127
+ # @since Appium 1.6.0
119
128
# @!method battery_info
120
129
#
121
130
# Get battery information.
0 commit comments