Permalink
Browse files

Add streaming ports for start/stop stream

  • Loading branch information...
N-Bz committed Nov 30, 2017
1 parent f875c91 commit 97c3e36f7e7498672e59f0ca076ccdaeea3bb4af
Showing with 14 additions and 0 deletions.
  1. +2 −0 src/Bybop_Connection.py
  2. +12 −0 src/Bybop_Device.py
@@ -59,6 +59,8 @@ def connect(self, d2c_port, controller_type, controller_name, device_id=None):
dico['controller_name'] = controller_name
if device_id is not None:
dico['device_id'] = device_id
dico['arstream2_client_stream_port'] = 55004
dico['arstream2_client_control_port'] = 55005
jsonReq = json.dumps(dico, separators=(',', ':'))

try:
@@ -431,6 +431,18 @@ def emergency(self):
"""
self.send_data('ardrone3.Piloting.Emergency')

def start_streaming(self):
"""
Starts the video streaming (it can be recieved by an external RTP client on port 55004(rtp)/55005(rtcp).
"""
self.send_data('ardrone3.MediaStreaming.VideoEnable', 1)

def stop_streaming(self):
"""
Stops the video streaming.
"""
self.send_data('ardrone3.MediaStreaming.VideoEnable', 0)

class JumpingSumo(Device):
def __init__(self, ip, c2d_port, d2c_port):
"""

0 comments on commit 97c3e36

Please sign in to comment.