Skip to content

Commit 3c01488

Browse files
authored
Merge pull request #336 from androidx/release-1.0.1-stable
1.0.1
2 parents 2ca9050 + 4f0b30b commit 3c01488

77 files changed

Lines changed: 1994 additions & 517 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ body:
2020
label: Media3 Version
2121
description: What version of Media3 (or ExoPlayer) are you using?
2222
options:
23+
- Media3 1.0.1
2324
- Media3 1.0.0
2425
- Media3 1.0.0-rc02
2526
- Media3 1.0.0-rc01
@@ -29,6 +30,7 @@ body:
2930
- Media3 1.0.0-alpha03
3031
- Media3 1.0.0-alpha02
3132
- Media3 1.0.0-alpha01
33+
- ExoPlayer 2.18.6
3234
- ExoPlayer 2.18.5
3335
- ExoPlayer 2.18.4
3436
- ExoPlayer 2.18.3

.github/ISSUE_TEMPLATE/question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In case your question is related to a piece of media:
3636
- Authentication HTTP headers
3737

3838
Don't forget to check ExoPlayer's supported formats and devices, if applicable
39-
(https://exoplayer.dev/supported-formats.html).
39+
(https://developer.android.com/guide/topics/media/exoplayer/supported-formats).
4040

4141
If there's something you don't want to post publicly, please submit the issue,
4242
then email the link/bug report to dev.exoplayer@gmail.com using a subject in the

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ We will also consider high quality pull requests. These should merge
2323
into the `main` branch. Before a pull request can be accepted you must submit
2424
a Contributor License Agreement, as described below.
2525

26+
### Code style
27+
28+
We follow the
29+
[Google Java Style Guide](https://google.github.io/styleguide/javaguide.html)
30+
and use [`google-java-format`](https://github.com/google/google-java-format) to
31+
automatically reformat the code. Please consider auto-formatting your changes
32+
before opening a PR (we will otherwise do this ourselves before merging). You
33+
can use the various IDE integrations available, or bulk-reformat all the changes
34+
you made on top of `main` using
35+
[`google-java-format-diff.py`](https://github.com/google/google-java-format/blob/master/scripts/google-java-format-diff.py):
36+
37+
```shell
38+
$ git diff -U0 main... | google-java-format-diff.py -p1 -i
39+
```
40+
2641
## Contributor license agreement
2742

2843
Contributions to any Google project must be accompanied by a Contributor

RELEASENOTES.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# Release notes
22

3+
### 1.0.1 (2023-04-18)
4+
5+
This release corresponds to the
6+
[ExoPlayer 2.18.6 release](https://github.com/google/ExoPlayer/releases/tag/r2.18.6).
7+
8+
* Core library:
9+
* Reset target live stream override when seeking to default position
10+
([#11051](https://github.com/google/ExoPlayer/pull/11051)).
11+
* Fix bug where empty sample streams in the media could cause playback to
12+
be stuck.
13+
* Session:
14+
* Fix bug where multiple identical queue items published by a legacy
15+
`MediaSessionCompat` result in an exception in `MediaController`
16+
([#290](https://github.com/androidx/media/issues/290)).
17+
* Add missing forwarding of `MediaSession.broadcastCustomCommand` to the
18+
legacy `MediaControllerCompat.Callback.onSessionEvent`
19+
([#293](https://github.com/androidx/media/issues/293)).
20+
* Fix bug where calling `MediaSession.setPlayer` doesn't update the
21+
available commands.
22+
* Fix issue that `TrackSelectionOverride` instances sent from a
23+
`MediaController` are ignored if they reference a group with
24+
`Format.metadata`
25+
([#296](https://github.com/androidx/media/issues/296)).
26+
* Fix issue where `Player.COMMAND_GET_CURRENT_MEDIA_ITEM` needs to be
27+
available to access metadata via the legacy `MediaSessionCompat`.
28+
* Fix issue where `MediaSession` instances on a background thread cause
29+
crashes when used in `MediaSessionService`
30+
([#318](https://github.com/androidx/media/issues/318)).
31+
* Fix issue where a media button receiver was declared by the library
32+
without the app having intended this
33+
([#314](https://github.com/androidx/media/issues/314)).
34+
* DASH:
35+
* Fix handling of empty segment timelines
36+
([#11014](https://github.com/google/ExoPlayer/issues/11014)).
37+
* RTSP:
38+
* Retry with TCP if RTSP Setup with UDP fails with RTSP Error 461
39+
UnsupportedTransport
40+
([#11069](https://github.com/google/ExoPlayer/issues/11069)).
41+
342
### 1.0.0 (2023-03-22)
443

544
This release corresponds to the

constants.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414
project.ext {
15-
releaseVersion = '1.0.0'
16-
releaseVersionCode = 1_000_000_3_00
15+
releaseVersion = '1.0.1'
16+
releaseVersionCode = 1_000_001_3_00
1717
minSdkVersion = 16
1818
appTargetSdkVersion = 33
1919
// API version before restricting local file access.

demos/gl/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ android {
2727
versionCode project.ext.releaseVersionCode
2828
minSdkVersion project.ext.minSdkVersion
2929
targetSdkVersion project.ext.appTargetSdkVersion
30+
multiDexEnabled true
3031
}
3132

3233
buildTypes {

demos/main/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<string name="unexpected_intent_action">Unexpected intent action: <xliff:g id="action">%1$s</xliff:g></string>
2323

24-
<string name="error_cleartext_not_permitted">Cleartext HTTP traffic not permitted. See https://exoplayer.dev/issues/cleartext-not-permitted</string>
24+
<string name="error_cleartext_not_permitted">Cleartext HTTP traffic not permitted. See https://developer.android.com/guide/topics/media/issues/cleartext-not-permitted</string>
2525

2626
<string name="error_generic">Playback failed</string>
2727

demos/session/src/main/java/androidx/media3/demo/session/MainActivity.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import android.view.ViewGroup
2626
import android.widget.ArrayAdapter
2727
import android.widget.ListView
2828
import android.widget.TextView
29+
import androidx.activity.OnBackPressedCallback
2930
import androidx.appcompat.app.AppCompatActivity
3031
import androidx.core.content.ContextCompat
3132
import androidx.media3.common.MediaItem
@@ -73,20 +74,24 @@ class MainActivity : AppCompatActivity() {
7374
val intent = Intent(this, PlayerActivity::class.java)
7475
startActivity(intent)
7576
}
77+
78+
onBackPressedDispatcher.addCallback(
79+
object : OnBackPressedCallback(/* enabled= */ true) {
80+
override fun handleOnBackPressed() {
81+
popPathStack()
82+
}
83+
}
84+
)
7685
}
7786

7887
override fun onOptionsItemSelected(item: MenuItem): Boolean {
7988
if (item.itemId == android.R.id.home) {
80-
onBackPressed()
89+
onBackPressedDispatcher.onBackPressed()
8190
return true
8291
}
8392
return super.onOptionsItemSelected(item)
8493
}
8594

86-
override fun onBackPressed() {
87-
popPathStack()
88-
}
89-
9095
override fun onStart() {
9196
super.onStart()
9297
initializeBrowser()

demos/session/src/main/java/androidx/media3/demo/session/PlayerActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ class PlayerActivity : AppCompatActivity() {
135135
updateMediaMetadataUI(controller.mediaMetadata)
136136
updateShuffleSwitchUI(controller.shuffleModeEnabled)
137137
updateRepeatSwitchUI(controller.repeatMode)
138+
playerView.setShowSubtitleButton(controller.currentTracks.isTypeSupported(TRACK_TYPE_TEXT))
138139

139140
controller.addListener(
140141
object : Player.Listener {

demos/transformer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ manual steps.
6161
(this will only appear if the AAR is present), then build and run the demo
6262
app and select a MediaPipe-based effect.
6363
64-
[Transformer]: https://exoplayer.dev/transforming-media.html
64+
[Transformer]: https://developer.android.com/guide/topics/media/transforming-media
6565
[MediaPipe]: https://google.github.io/mediapipe/
6666
[build an AAR]: https://google.github.io/mediapipe/getting_started/android_archive_library.html

0 commit comments

Comments
 (0)