Simple MediaPlayer Sample
This sample demonstrates the use of
Here are some important things this sample highlights:
- Media playback position and duration are synchronized with a
Seekbarin the UI.
- If the user manually changes the
MediaPlayerplayback position is adjusted accordingly.
- State machine transitions for
MediaPlayerare displayed in the UI.
- MP3 files are loaded from the
raw/res/folder (no streaming over network).
The following articles describe what this sample does in detail:
Copyright 2017 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.