Closed Bug 1002884 Opened 11 years ago Closed 11 years ago

[RTSP] Make RTSP streaming work on the emulator

Categories

(Firefox OS Graveyard :: RTSP, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
2.0 S2 (23may)

People

(Reporter: ethan, Assigned: ethan)

References

Details

(Whiteboard: [p=1])

In order to support automated tests for RTSP, we have to make RTSP streaming work on the emulator as on real devices.
So far, several issues that block RTSP work on the emulator are found: 1. RTP packets sent from a streaming server cannot reach the client application. 2. MP4 video frames cannot be rendered in the emulator (decoder fails).
Assignee: nobody → ettseng
Blocks: 998899
(In reply to Ethan Tseng [:ethan] from comment #1) > 1. RTP packets sent from a streaming server cannot reach the client application. RTP is transported over UDP by default. It can also be transmitted over the existing RTSP TCP connection. The reasons why RTP packets can't reach our client are: - The emulator doesn't forward UDP packets automatically (and it has no knowledge how to do that). - Our client doesn't perform RTP-over-TCP request. In order to resolve this issue, we can: 1.1 Enable UDP redirection automatically for RTSP client. RTSP client would fire off two UDP packets to the remote RTP/RTCP ports to poke a hole into the firewall for future incoming packets. Maybe the emulator could leverage this information to add port redirection rules for RTSP client. This can be done by two approaches: a. Issue console commands. # telnet localhost 5554 redir add udp:<host-port>:<guest-port> b. Modify emulator's code. 1.2 Support RTP-over-TCP, which is tracked by bug 996765.
Status: NEW → ASSIGNED
Depends on: 996765
Whiteboard: [p=1]
Target Milestone: --- → 2.0 S2 (23may)
Once we build up a streaming server (DSS) on the emulator, our RTSP client could connect to the server though the emulator's own loopback interface. This means we can deliver RTP over UDP. Therefore, issue 1 in comment 1 is not a problem anymore. Furthermore, in our manual tests with DSS running on the emulator, we found issue 2 in comment 1 doesn't exist either. Although we are not quite sure about the underlying reason of this, currently our RTSP streaming function works well on the emulator. So this bug will be set as resolved won't fix.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
No longer blocks: 998899
You need to log in before you can comment on or make changes to this bug.