Add more parameterization

bug/bundler_fix
dmohanty-r7 2017-06-01 15:40:57 -05:00
parent d9e1d21c56
commit 56b3b0e00d
2 changed files with 3 additions and 4 deletions

View File

@ -36,9 +36,9 @@ module Rex
end
# Starts recording video from video source of index +cam+
def mic_start(cam)
def mic_start(mic)
request = Packet.create_request('audio_interface_start')
request.add_tlv(TLV_TYPE_AUDIO_INTERFACE_NAME, cam)
request.add_tlv(TLV_TYPE_AUDIO_INTERFACE_NAME, mic)
client.send_request(request)
true
end

View File

@ -49,7 +49,7 @@ module Rex
end
end
def cmd_mic_start(start_delay=4096, play_audio=true)
def cmd_mic_start(index=0, start_delay=4096, play_audio=true)
print_status("Streaming mic audio channel...")
if client.mic.mic_list.length == 0
@ -61,7 +61,6 @@ module Rex
stream_path = Rex::Text.rand_text_alpha(8) + ".wav"
duration = 1800
quality = 50
index = 1
print_status("Audio File: #{stream_path}")
print_status("Streaming...")