File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
ui/console/command_dispatcher/stdapi Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ def mic_list
36
36
end
37
37
38
38
# Starts recording video from video source of index +cam+
39
- def mic_start ( cam )
39
+ def mic_start ( mic )
40
40
request = Packet . create_request ( 'audio_interface_start' )
41
- request . add_tlv ( TLV_TYPE_AUDIO_INTERFACE_NAME , cam )
41
+ request . add_tlv ( TLV_TYPE_AUDIO_INTERFACE_NAME , mic )
42
42
client . send_request ( request )
43
43
true
44
44
end
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def cmd_list_audio_interfaces
49
49
end
50
50
end
51
51
52
- def cmd_mic_start ( start_delay = 4096 , play_audio = true )
52
+ def cmd_mic_start ( index = 0 , start_delay = 4096 , play_audio = true )
53
53
print_status ( "Streaming mic audio channel..." )
54
54
55
55
if client . mic . mic_list . length == 0
@@ -61,7 +61,6 @@ def cmd_mic_start(start_delay=4096, play_audio=true)
61
61
stream_path = Rex ::Text . rand_text_alpha ( 8 ) + ".wav"
62
62
duration = 1800
63
63
quality = 50
64
- index = 1
65
64
66
65
print_status ( "Audio File: #{ stream_path } " )
67
66
print_status ( "Streaming..." )
You can’t perform that action at this time.
0 commit comments