Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Initial commit of project. Aug 17, 2017
gradle/wrapper Initial commit of project. Aug 17, 2017
screenshots Updating screenshot. Aug 22, 2017
.gitignore Initial commit of project. Aug 17, 2017
CONTRIB.md Initial commit of project. Aug 17, 2017
CONTRIBUTING.md Initial commit of project. Aug 17, 2017
LICENSE Initial commit of project. Aug 17, 2017
README.md Updating README.md with links to articles and resized screenshot. Aug 22, 2017
build.gradle Initial commit of project. Aug 17, 2017
gradle.properties Initial commit of project. Aug 17, 2017
gradlew Initial commit of project. Aug 17, 2017
gradlew.bat
settings.gradle Initial commit of project. Aug 17, 2017

README.md

Simple MediaPlayer Sample

This sample demonstrates the use of MediaPlayer. Here are some important things this sample highlights:

  • Media playback position and duration are synchronized with a Seekbar in the UI.
  • If the user manually changes the Seekbar position the MediaPlayer playback position is adjusted accordingly.
  • State machine transitions for MediaPlayer are 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:

  1. MediaPlayer introduction
  2. Buiding the app
  3. Synchronizing with the SeekBar

Screenshots

License

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

http://www.apache.org/licenses/LICENSE-2.0

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.

You can’t perform that action at this time.