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)
Tracking
(tracking-b2g:backlog)
People
(Reporter: ethan, Assigned: johnshih.bugs)
References
Details
Attachments
(1 file, 1 obsolete file)
6.04 KB,
patch
|
johnshih.bugs
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Updated•12 years ago
|
Assignee: nobody → ettseng
blocking-b2g: --- → 1.4?
![]() |
||
Updated•12 years ago
|
Blocks: b2g-RTSP-2.0
![]() |
||
Comment 1•12 years ago
|
||
This doesn't fall under QC's FC list & DSDS 1.4 list, so moving to backlog.
blocking-b2g: 1.4? → backlog
![]() |
||
Updated•12 years ago
|
Component: General → Networking
Product: Firefox OS → Core
![]() |
||
Updated•12 years ago
|
Component: Networking → RTSP
Product: Core → Firefox OS
![]() |
||
Comment 2•12 years ago
|
||
Hi Ethan, do you have resource or any plan to solve this? Thanks.
Reporter | ||
Comment 3•12 years ago
|
||
(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. :)
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 7•11 years ago
|
||
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.
try result: https://tbpl.mozilla.org/?tree=Try&rev=8abc1aeab03c
Looks good!
Assignee | ||
Comment 10•11 years ago
|
||
r=sworkman
Attachment #8421620 -
Attachment is obsolete: true
Attachment #8422951 -
Flags: review+
Keywords: checkin-needed
![]() |
||
Updated•11 years ago
|
Blocks: b2g-RTSP-2.0
Comment 11•11 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S2 (23may)
![]() |
||
Comment 13•11 years ago
|
||
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
Reporter | ||
Comment 14•11 years ago
|
||
(In reply to William Hsu [:whsu] from comment #13)
> Using following scenario to verify it.
> Thanks.
Thanks for John and William!
Good job! :)
Updated•11 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•