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

Issue 10413015: Upstream implementation for embedded video for WebMediaPlayerAndroid (Closed)

Created:
8 years, 7 months ago by qinmin
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jochen+watch-content_chromium.org, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Upstream implementation for embedded video for WebMediaPlayerAndroid This change implements the embedded video for chrome on android. However, the implementation of StreamTextureFactoryAndroid class is not included in this change. So we only pass a null pointer to the constructor of WebMediaPlayerAndroid in render_view_impl.cc. The class will be upstreamed later when we upstream java surface related code. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139978

Patch Set 1 #

Total comments: 4

Patch Set 2 : refactored the code to remove SetVideoSurface() call #

Total comments: 2

Patch Set 3 : remove GetWebMediaPlayerManager() from render_view.h #

Total comments: 38

Patch Set 4 : addressing feedbacks #

Total comments: 32

Patch Set 5 : addressing feedbacks #

Total comments: 10

Patch Set 6 : addressing feedbacks #

Total comments: 6

Patch Set 7 : use first party url for cookies #

Total comments: 4

Patch Set 8 : fix the usage of first party url #

Patch Set 9 : add the missing DidLoadingProgress() function due to recent webkit change #

Patch Set 10 : rebase after https://chromiumcodereview.appspot.com/10469003/ got committed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+324 lines, -14 lines) Patch
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 3 chunks +17 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -1 line 0 comments Download
M media/base/android/media_player_bridge.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A webkit/media/android/stream_texture_factory_android.h View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
M webkit/media/android/webmediaplayer_android.h View 1 2 3 4 5 6 7 8 9 9 chunks +44 lines, -4 lines 0 comments Download
M webkit/media/android/webmediaplayer_android.cc View 1 2 3 4 5 6 7 8 9 9 chunks +86 lines, -9 lines 0 comments Download
A webkit/media/android/webmediaplayer_manager_android.h View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A webkit/media/android/webmediaplayer_manager_android.cc View 1 2 3 4 5 1 chunk +50 lines, -0 lines 0 comments Download
M webkit/media/webkit_media.gypi View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
qinmin
8 years, 7 months ago (2012-05-18 22:49:10 UTC) #1
jamesr
https://chromiumcodereview.appspot.com/10413015/diff/1/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h (right): https://chromiumcodereview.appspot.com/10413015/diff/1/content/renderer/render_view_impl.h#newcode259 content/renderer/render_view_impl.h:259: void SetVideoSurface(jobject j_surface, int player_id); where does the "jobject" ...
8 years, 7 months ago (2012-05-18 23:10:23 UTC) #2
qinmin
https://chromiumcodereview.appspot.com/10413015/diff/1/content/renderer/render_view_impl.h File content/renderer/render_view_impl.h (right): https://chromiumcodereview.appspot.com/10413015/diff/1/content/renderer/render_view_impl.h#newcode259 content/renderer/render_view_impl.h:259: void SetVideoSurface(jobject j_surface, int player_id); I forgot to upload ...
8 years, 7 months ago (2012-05-19 00:50:04 UTC) #3
jam
http://codereview.chromium.org/10413015/diff/5002/content/public/renderer/render_view.h File content/public/renderer/render_view.h (right): http://codereview.chromium.org/10413015/diff/5002/content/public/renderer/render_view.h#newcode143 content/public/renderer/render_view.h:143: GetWebMediaPlayerManager() = 0; does this need to be in ...
8 years, 7 months ago (2012-05-21 15:39:07 UTC) #4
qinmin
http://codereview.chromium.org/10413015/diff/5002/content/public/renderer/render_view.h File content/public/renderer/render_view.h (right): http://codereview.chromium.org/10413015/diff/5002/content/public/renderer/render_view.h#newcode143 content/public/renderer/render_view.h:143: GetWebMediaPlayerManager() = 0; Not necessarily. We call this in ...
8 years, 7 months ago (2012-05-21 16:42:38 UTC) #5
qinmin
Done, removed GetWebMediaPlayerManager() from render_view.h On 2012/05/21 16:42:38, qinmin wrote: > http://codereview.chromium.org/10413015/diff/5002/content/public/renderer/render_view.h > File content/public/renderer/render_view.h ...
8 years, 7 months ago (2012-05-21 18:11:36 UTC) #6
jam
content lgtm On 2012/05/21 16:42:38, qinmin wrote: > http://codereview.chromium.org/10413015/diff/5002/content/public/renderer/render_view.h > File content/public/renderer/render_view.h (right): > > ...
8 years, 7 months ago (2012-05-22 15:33:49 UTC) #7
scherkus (not reviewing)
https://chromiumcodereview.appspot.com/10413015/diff/9001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10413015/diff/9001/content/renderer/render_view_impl.cc#newcode4910 content/renderer/render_view_impl.cc:4910: media_player_manager_->ReleaseMediaResources(); do we not want to do anything when ...
8 years, 7 months ago (2012-05-23 22:45:46 UTC) #8
qinmin
https://chromiumcodereview.appspot.com/10413015/diff/9001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/10413015/diff/9001/content/renderer/render_view_impl.cc#newcode4910 content/renderer/render_view_impl.cc:4910: media_player_manager_->ReleaseMediaResources(); I will address this when upstreaming the next ...
8 years, 7 months ago (2012-05-24 20:30:28 UTC) #9
scherkus (not reviewing)
next round of comments I'm still pretty confused at how all of this is supposed ...
8 years, 7 months ago (2012-05-24 21:36:31 UTC) #10
qinmin
https://chromiumcodereview.appspot.com/10413015/diff/9001/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/10413015/diff/9001/webkit/media/android/webmediaplayer_android.cc#newcode532 webkit/media/android/webmediaplayer_android.cc:532: if (texture_id_) I think we are currently turning all ...
8 years, 7 months ago (2012-05-25 01:04:20 UTC) #11
scherkus (not reviewing)
one last round! https://chromiumcodereview.appspot.com/10413015/diff/12002/webkit/media/android/stream_texture_factory_android.h File webkit/media/android/stream_texture_factory_android.h (right): https://chromiumcodereview.appspot.com/10413015/diff/12002/webkit/media/android/stream_texture_factory_android.h#newcode18 webkit/media/android/stream_texture_factory_android.h:18: virtual ~StreamTextureProxy() { } nit: no ...
8 years, 7 months ago (2012-05-25 22:01:46 UTC) #12
qinmin
https://chromiumcodereview.appspot.com/10413015/diff/12002/webkit/media/android/stream_texture_factory_android.h File webkit/media/android/stream_texture_factory_android.h (right): https://chromiumcodereview.appspot.com/10413015/diff/12002/webkit/media/android/stream_texture_factory_android.h#newcode18 webkit/media/android/stream_texture_factory_android.h:18: virtual ~StreamTextureProxy() { } On 2012/05/25 22:01:46, scherkus wrote: ...
8 years, 7 months ago (2012-05-26 00:37:41 UTC) #13
scherkus (not reviewing)
LGTM w/ one nit https://chromiumcodereview.appspot.com/10413015/diff/20011/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/10413015/diff/20011/webkit/media/android/webmediaplayer_android.cc#newcode39 webkit/media/android/webmediaplayer_android.cc:39: #define GL_TEXTURE_EXTERNAL_OES 0x8D65 static const ...
8 years, 7 months ago (2012-05-26 00:56:09 UTC) #14
jochen (gone - plz use gerrit)
https://chromiumcodereview.appspot.com/10413015/diff/20011/webkit/media/android/stream_texture_factory_android.h File webkit/media/android/stream_texture_factory_android.h (right): https://chromiumcodereview.appspot.com/10413015/diff/20011/webkit/media/android/stream_texture_factory_android.h#newcode6 webkit/media/android/stream_texture_factory_android.h:6: #define WEBKIT_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_ANDROID_H_ #pragma once (here and in other headers) ...
8 years, 7 months ago (2012-05-26 10:24:57 UTC) #15
qinmin
Swiched to use first party url. Jochen, would you please take a look again? thanks ...
8 years, 6 months ago (2012-05-29 18:29:34 UTC) #16
jochen (gone - plz use gerrit)
https://chromiumcodereview.appspot.com/10413015/diff/18003/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/10413015/diff/18003/webkit/media/android/webmediaplayer_android.cc#newcode476 webkit/media/android/webmediaplayer_android.cc:476: WebURL url(frame_->document().firstPartyForCookies()); I'd name this "first_party_url", and then https://chromiumcodereview.appspot.com/10413015/diff/18003/webkit/media/android/webmediaplayer_android.cc#newcode477 ...
8 years, 6 months ago (2012-05-30 08:41:37 UTC) #17
qinmin
hi, jochen, I've fixed the usage of first_party_url, please check. https://chromiumcodereview.appspot.com/10413015/diff/18003/webkit/media/android/webmediaplayer_android.cc File webkit/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/10413015/diff/18003/webkit/media/android/webmediaplayer_android.cc#newcode476 ...
8 years, 6 months ago (2012-05-30 17:06:51 UTC) #18
jochen (gone - plz use gerrit)
cookie jar changes lgtm, thanks! On Wed, May 30, 2012 at 7:06 PM, <qinmin@chromium.org> wrote: ...
8 years, 6 months ago (2012-05-30 17:50:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10413015/12017
8 years, 6 months ago (2012-05-30 17:55:32 UTC) #20
commit-bot: I haz the power
Try job failure for 10413015-12017 (retry) (previous was lost) on win_rel for step "browser_tests". It's ...
8 years, 6 months ago (2012-05-30 22:18:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10413015/12017
8 years, 6 months ago (2012-05-31 01:29:41 UTC) #22
commit-bot: I haz the power
Try job failure for 10413015-12017 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-05-31 02:06:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10413015/12017
8 years, 6 months ago (2012-05-31 16:12:35 UTC) #24
commit-bot: I haz the power
Try job failure for 10413015-12017 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-05-31 18:27:07 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10413015/29006
8 years, 6 months ago (2012-05-31 20:40:13 UTC) #26
commit-bot: I haz the power
Try job failure for 10413015-29006 (retry) (previous was lost) on win_rel for step "browser_tests". It's ...
8 years, 6 months ago (2012-06-01 01:14:32 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/10413015/25010
8 years, 6 months ago (2012-06-01 02:10:00 UTC) #28
commit-bot: I haz the power
8 years, 6 months ago (2012-06-01 05:57:52 UTC) #29
Change committed as 139978

Powered by Google App Engine
This is Rietveld 408576698