Class Overview
MediaPlayer class can be used to control playback of audio/video files and streams. An example on how to use the methods in this class can be found in VideoView
. Please see Audio and Video for additional help using MediaPlayer.
Topics covered here are:
State Diagram
Playback control of audio/video files and streams is managed as a state machine. The following diagram shows the life cycle and the states of a MediaPlayer object driven by the supported playback control operations. The ovals represent the states a MediaPlayer object may reside in. The arcs represent the playback control operations that drive the object state transition. There are two types of arcs. The arcs with a single arrow head represent synchronous method calls, while those with a double arrow head represent asynchronous method calls.
From this state diagram, one can see that a MediaPlayer object has the following states
'Android > Tip&Tech' 카테고리의 다른 글
[펌][Android] 안드로이드 인디케이터 설정 - NotificationManager (0) | 2010.12.06 |
---|---|
미디어플레이어 백그라운드 작업 참고문 (0) | 2010.12.04 |
[안드로이드]롤오버 이미지 만들기 (0) | 2010.12.03 |
[펌]Mediaplayer Service - 백그라운드 음악 실행 (0) | 2010.12.03 |
[펌]mediaplayer로 mp3돌리는 팁 (0) | 2010.12.03 |