Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Issue 1185453004: Implemented setting memory limits through WebMediaPlayer interface

Created:
5 years, 6 months ago by servolk
Modified:
5 years, 6 months ago
Reviewers:
ddorwin, wolenetz
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@set-mem-limits-on-demux-stream
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implemented setting memory limits through WebMediaPlayer interface Depends on https://codereview.chromium.org/1171263004/ https://codereview.chromium.org/1182183004/ BUG=498482

Patch Set 1 #

Patch Set 2 : Added WebMediaPlayerAndroid impl #

Patch Set 3 : int -> size_t #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -0 lines) Patch
M content/renderer/media/android/media_source_delegate.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/android/media_source_delegate.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 1 chunk +28 lines, -0 lines 2 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 1 chunk +26 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
servolk
5 years, 6 months ago (2015-06-17 00:25:35 UTC) #2
ddorwin
https://codereview.chromium.org/1185453004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1185453004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc#newcode765 content/renderer/media/android/webmediaplayer_android.cc:765: NOTIMPLEMENTED(); As mentioned in https://codereview.chromium.org/1182183004/, this only makes sense ...
5 years, 6 months ago (2015-06-17 21:02:27 UTC) #4
servolk
https://codereview.chromium.org/1185453004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1185453004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc#newcode765 content/renderer/media/android/webmediaplayer_android.cc:765: NOTIMPLEMENTED(); On 2015/06/17 21:02:27, ddorwin wrote: > As mentioned ...
5 years, 6 months ago (2015-06-17 22:20:58 UTC) #5
servolk
5 years, 6 months ago (2015-06-18 23:41:56 UTC) #6
On 2015/06/17 22:20:58, servolk wrote:
>
https://codereview.chromium.org/1185453004/diff/40001/content/renderer/media/...
> File content/renderer/media/android/webmediaplayer_android.cc (right):
> 
>
https://codereview.chromium.org/1185453004/diff/40001/content/renderer/media/...
> content/renderer/media/android/webmediaplayer_android.cc:765:
NOTIMPLEMENTED();
> On 2015/06/17 21:02:27, ddorwin wrote:
> > As mentioned in https://codereview.chromium.org/1182183004/, this only makes
> > sense in the MSE case. Thus, it would make more sense to use an MSE-specific
> > interface (and avoid all the NOTIMPLEMENTED()/NOTREACHED()/return 0.
> > 
> > Also, should this be NOTREACHED() if we only support this for MSE?
> 
> See my comments on other CLs: this could make sense also for other cases (e.g.
> direct URL playback through FFmpeg or any other media playback through WMP). I
> was hoping to provide a common unified interface for setting memory buffer
sizes
> for media playback that could be later implemented by other media players
> (including WebMediaPlayerMS and for the case of the alternative non-MSE
playback
> here). It's just that MSE is highest-priority use case and we can live with
> others being not implemented for now.
> 
>
https://codereview.chromium.org/1185453004/diff/40001/media/blink/webmediapla...
> File media/blink/webmediaplayer_impl.cc (right):
> 
>
https://codereview.chromium.org/1185453004/diff/40001/media/blink/webmediapla...
> media/blink/webmediaplayer_impl.cc:599: if (demuxer_ &&
> demuxer_->GetStream(DemuxerStream::AUDIO)) {
> On 2015/06/17 21:02:27, ddorwin wrote:
> > Is it possible for these to be called when there is no demuxer_?
> 
> There are not yet invoked from anywhere.

FYI: I've merged this CL into https://codereview.chromium.org/1171263004/, since
this CL depends on that one and having a single CL might make code review a bit
easier by removing the need to cross-reference CLs. But if you'd prefer to keep
it separate, please let me know, I can revert the merge and go back to two
separate CLs.

Powered by Google App Engine
This is Rietveld 408576698