Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d77ceaac
authored
Dec 13, 2022
by
claincly
Committed by
Ian Baker
Dec 15, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use Size in MSG_SET_VIDEO_OUTPUT_RESOLUTION.
PiperOrigin-RevId: 495055151
parent
c3ca71fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java
library/core/src/main/java/com/google/android/exoplayer2/Renderer.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java
View file @
d77ceaac
...
@@ -2946,7 +2946,7 @@ import java.util.concurrent.TimeoutException;
...
@@ -2946,7 +2946,7 @@ import java.util.concurrent.TimeoutException;
public
void
surfaceChanged
(
SurfaceHolder
holder
,
int
format
,
int
width
,
int
height
)
{
public
void
surfaceChanged
(
SurfaceHolder
holder
,
int
format
,
int
width
,
int
height
)
{
maybeNotifySurfaceSizeChanged
(
width
,
height
);
maybeNotifySurfaceSizeChanged
(
width
,
height
);
sendRendererMessage
(
sendRendererMessage
(
TRACK_TYPE_VIDEO
,
MSG_SET_VIDEO_OUTPUT_RESOLUTION
,
Pair
.
creat
e
(
width
,
height
));
TRACK_TYPE_VIDEO
,
MSG_SET_VIDEO_OUTPUT_RESOLUTION
,
new
Siz
e
(
width
,
height
));
}
}
@Override
@Override
...
...
library/core/src/main/java/com/google/android/exoplayer2/Renderer.java
View file @
d77ceaac
...
@@ -18,7 +18,6 @@ package com.google.android.exoplayer2;
...
@@ -18,7 +18,6 @@ package com.google.android.exoplayer2;
import
static
java
.
lang
.
annotation
.
ElementType
.
TYPE_USE
;
import
static
java
.
lang
.
annotation
.
ElementType
.
TYPE_USE
;
import
android.media.MediaCodec
;
import
android.media.MediaCodec
;
import
android.util.Pair
;
import
android.view.Surface
;
import
android.view.Surface
;
import
androidx.annotation.IntDef
;
import
androidx.annotation.IntDef
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
...
@@ -28,6 +27,7 @@ import com.google.android.exoplayer2.audio.AuxEffectInfo;
...
@@ -28,6 +27,7 @@ import com.google.android.exoplayer2.audio.AuxEffectInfo;
import
com.google.android.exoplayer2.source.SampleStream
;
import
com.google.android.exoplayer2.source.SampleStream
;
import
com.google.android.exoplayer2.util.Effect
;
import
com.google.android.exoplayer2.util.Effect
;
import
com.google.android.exoplayer2.util.MediaClock
;
import
com.google.android.exoplayer2.util.MediaClock
;
import
com.google.android.exoplayer2.util.Size
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.util.Util
;
import
com.google.android.exoplayer2.video.VideoDecoderOutputBufferRenderer
;
import
com.google.android.exoplayer2.video.VideoDecoderOutputBufferRenderer
;
import
com.google.android.exoplayer2.video.VideoFrameMetadataListener
;
import
com.google.android.exoplayer2.video.VideoFrameMetadataListener
;
...
@@ -207,9 +207,8 @@ public interface Renderer extends PlayerMessage.Target {
...
@@ -207,9 +207,8 @@ public interface Renderer extends PlayerMessage.Target {
int
MSG_SET_PREFERRED_AUDIO_DEVICE
=
12
;
int
MSG_SET_PREFERRED_AUDIO_DEVICE
=
12
;
/**
/**
* The type of a message that can be passed to a video renderer to set the desired output
* The type of a message that can be passed to a video renderer to set the desired output
* resolution. The message payload should be a {@link Pair} containing the desired output width
* resolution. The message payload should be a {@link Size} of the desired output width and
* and height, in {@link Integer} instances. Use this method only when playing with video {@link
* height. Use this method only when playing with video {@link Effect}.
* Effect}.
*/
*/
int
MSG_SET_VIDEO_OUTPUT_RESOLUTION
=
13
;
int
MSG_SET_VIDEO_OUTPUT_RESOLUTION
=
13
;
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment