Commit d29a6fb369cda5cedf7995b22de30db013aeb842

Authored by Wesnydy Ribeiro
1 parent d0dfb3b2

Converts messages sent to the player to string objects

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
core/renderer.py
... ... @@ -135,7 +135,7 @@ def send_to_video_creator(id, message):
135 135 # Stablishes connection with video creator server.
136 136 socket = open_socket_connection()
137 137 # Send gloss to video creator.
138   - socket.send(message.encode("utf-8")+DEFAULT_PTS)
  138 + socket.send(str(message)+DEFAULT_PTS)
139 139 # Receive a response from the video creator
140 140 socket.recv(3)
141 141 # Send the control message to video creator
... ... @@ -174,7 +174,7 @@ def run(ch, method, properties, body):
174 174  
175 175 body = {"file": properties.correlation_id+".mp4", "size": filesize}
176 176 json.dumps(body)
177   -
  177 +
178 178 manager.send_to_queue("videos", body, properties)
179 179  
180 180 clean(properties.correlation_id)
... ...