DescriptionCreate "stream texture proxy" before "stream texture"
Background: WebMediaPlayerAndroid's constructor does not know
video meta data. Meta data is received in OnVideoSizeChanged().
If ShouldUseVideoOverlayForEmbeddedEncryptedVideo answers true
WebMediaPlayerAndroid's constructor postpones stream texture
creation until OnVideoSizeChanged().
Problem: When constructor sets needs_establish_peer_ = false,
TryCreateStreamTextureProxyIfNeeded() does not create a proxy.
Without a proxy OnVideoSizeChanged() cannot create a stream
texture.
Solution: Once we get meta data, create proxy AND texture.
BUG=433833
TEST=Manual,
1. Play a Youtube clip (no black frame).
2. Play a purchased movie at Youtube (no black frame).
Committed: https://crrev.com/5e431c15487b8e9f749810435eb0ef491af0737e
Cr-Commit-Position: refs/heads/master@{#304995}
Patch Set 1 #
Total comments: 1
Patch Set 2 : qinmin's solution #Messages
Total messages: 13 (2 generated)
|