# OHOS::Media::Player - [Overview](#section1269825086165632) - [Summary](#section273161611165632) - [Public Member Functions](#pub-methods) ## **Overview** **Related Modules:** [MultiMedia\_Player](MultiMedia_Player.md) **Description:** Provides functions for playing online movies, offline movies, and streams, for example, playing local movies and advanced audio coding \(AAC\) streams. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions
|
Sets the playback source for the player. The corresponding source can be the file descriptor (FD) of the local file, local file URI, network URI, or media stream. |
|
Prepare () |
|
Play () |
|
IsPlaying () |
|
Pause () |
|
Stop () |
|
Rewind (int64_t mSeconds, int32_t mode) |
|
SetVolume (float leftVolume, float rightVolume) |
|
SetVideoSurface (Surface *surface) |
|
EnableSingleLooping (bool loop) |
|
GetCurrentTime (int64_t &time) const |
|
GetDuration (int64_t &duration) const |
|
GetVideoWidth (int32_t &videoWidth) |
|
GetVideoHeight (int32_t &videoHeight) |
|
Reset () |
|
Release () |
|
SetPlayerCallback (const std::shared_ptr< PlayerCallback > &cb) |
Registers a listener to receive events and exception notifications from the player. |