Closed Bug 966625 Opened 12 years ago Closed 11 years ago

[RTSP] Data usage of RTSP should be tracked

Categories

(Firefox OS Graveyard :: RTSP, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

VERIFIED FIXED
2.0 S2 (23may)
tracking-b2g backlog

People

(Reporter: ethan, Assigned: johnshih.bugs)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently, RTSP doesn't use the NetworkActivityMonitor and its data usage is not tracked. Steve suggests: Convert our RTSP code to use NSPR/PRFileDesc types and functions. Then we can just use the NetworkActivityMonitor functions directly. The NSPR types and functions have a very similar API to standard sockets This approach also helps us move towards integration with nsSocketTransportService (STS), and cross-platform RTSP support.
Assignee: nobody → ettseng
blocking-b2g: --- → 1.4?
This doesn't fall under QC's FC list & DSDS 1.4 list, so moving to backlog.
blocking-b2g: 1.4? → backlog
Component: General → Networking
Product: Firefox OS → Core
Component: Networking → RTSP
Product: Core → Firefox OS
Hi Ethan, do you have resource or any plan to solve this? Thanks.
(In reply to howie from comment #2) > Hi Ethan, do you have resource or any plan to solve this? Thanks. For now, I don't plan to deal with this bug in the near future. In v1.5 or v2.0, our focus of RTSP will be: 1. Enable RTSP video feature (which means to fix all the remaining issues of playing RTSP video) 2. Establish automation test framework Both these targets require a lot of works and have higher priority than this bug. I think we don't have resource to resolve this bug within a quarter. :)
This issue isn't in 1.5 scope.
No longer blocks: b2g-RTSP-2.0
I can take this! Thanks
Assignee: ettseng → jshih
Depends on: 996535
Since Bug 996535 is landed, this work can easily be done. Note, this is kind of work around before we use nsSocketTransport dircetly in RTSP.
Attachment #8421620 - Flags: review?(sworkman)
Comment on attachment 8421620 [details] [diff] [review] Bug 966625 - Make RTPS be tracked by NetworkActivityMonitor. Review of attachment 8421620 [details] [diff] [review]: ----------------------------------------------------------------- Looks good! r=me. (minor nit: I'd prefer if you added r=sworkman when the review is complete, not before :) ) ::: netwerk/protocol/rtsp/rtsp/ARTSPConnection.cpp @@ +272,5 @@ > } > > mSocket = PR_OpenTCPSocket(PR_AF_INET); > > + NetworkActivityMonitor::AttachIOLayer(mSocket); Please check that mSocket is not null after PR_OpenTCPSocket.
Attachment #8421620 - Flags: review?(sworkman) → review+
(In reply to Steve Workman [:sworkman] from comment #7) > Comment on attachment 8421620 [details] [diff] [review] > Bug 966625 - Make RTPS be tracked by NetworkActivityMonitor. > > Review of attachment 8421620 [details] [diff] [review]: > ----------------------------------------------------------------- > > Looks good! r=me. > > (minor nit: I'd prefer if you added r=sworkman when the review is complete, > not before :) ) Oops! I'll be careful next time! Anyway, thanks for your quick response again ;) > > ::: netwerk/protocol/rtsp/rtsp/ARTSPConnection.cpp > @@ +272,5 @@ > > } > > > > mSocket = PR_OpenTCPSocket(PR_AF_INET); > > > > + NetworkActivityMonitor::AttachIOLayer(mSocket); > > Please check that mSocket is not null after PR_OpenTCPSocket.
r=sworkman
Attachment #8421620 - Attachment is obsolete: true
Attachment #8422951 - Flags: review+
Keywords: checkin-needed
Blocks: b2g-RTSP-2.0
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S2 (23may)
Using following scenario to verify it. Thanks. * Steps 1. launch usage app, and enable network traffic measurement 2. launch the browser and input the following link on URL bar. - http://goo.gl/TwhnSh 3. After the streaming is stopped, checking the data usage of usage app 4. Replay the RTSP again 5. Check the data usage again after the streaming is stopped * Result: Step 3. Increase 4 MB data usage Step 5. Increase double data usage (4 MB*2) * Build information: - Gaia c462d9183d294a2d8ecc472f593ea8cfa15bc9de - Gecko https://hg.mozilla.org/mozilla-central/rev/9d8d16695f6a - BuildID 20140520160203 - Version 32.0a1
Status: RESOLVED → VERIFIED
(In reply to William Hsu [:whsu] from comment #13) > Using following scenario to verify it. > Thanks. Thanks for John and William! Good job! :)
blocking-b2g: backlog → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: