public class Media
Player extends Object implements Volume
Automation, Audio
Routing
java.lang.Object | |
↳ | android.media.Media Player |
Media
Player class can be used to lớn control playback of audio/video files và streams. Media
Player is not thread-safe. Creation of & all access lớn player instances should be on the same thread. If registering callbacks, the thread must have a Looper. Topics covered here are: State Diagram Valid và Invalid States Permissions Register informational and error callbacks
Developer Guides
For more information about how to use MediaPlayer, read the media Playback developer guide.
Bạn đang xem: Cô thắm về làng
State Diagram
Playback control of audio/video files & streams is managed as a state machine. The following diagram shows the life cycle và the states of a Media
Player object driven by the supported playback control operations. The ovals represent the states a Media
Player 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 Media
Player object has the following states:
Player object is just created using new or after reset() is called, it is in the Idle state; and after release() is called, it is in the End state. Between these two states is the life cycle of the Media
Player object. You must keep a reference to lớn a Media
Player instance to prevent it from being garbage collected. If a Media
Player instance is garbage collected, release() will be called, causing any ongoing playback to lớn stop. You must gọi release() once you have finished using an instance khổng lồ release acquired resources, such as memory và codecs. Once you have called release(), you must no longer interact with the released instance. Media
Player objects created using new is in the Idle state, while those created with one of the overloaded convenient create methods are NOT in the Idle state. In fact, the objects are in the Prepared state if the creation using create method is successful. In general, some playback control operation may fail due khổng lồ various reasons, such as unsupported audio/video format, poorly interleaved audio/video, resolution too high, streaming timeout, & the like. Thus, error reporting and recovery is an important concern under these circumstances. Sometimes, due to lớn programming errors, invoking a playback control operation in an invalid state may also occur. Under all these error conditions, the internal player engine invokes a user supplied On
Error
Listener.on
Error() method if an On
Error
Listener has been registered beforehand via set
On
Error
Listener(android.media.Media
Player.On
Error
Listener). It is important to lưu ý that once an error occurs, the Media
Player object enters the Error state (except as noted above), even if an error listener has not been registered by the application. It is good programming practice to lớn have your application register a On
Error
Listener lớn look out for error notifications from the internal player engine. Calling set
Data
Source(java.io.File
Descriptor), or set
Data
Source(java.lang.String), or set
Data
Source(android.content.Context, android.net.Uri), or set
Data
Source(java.io.File
Descriptor, long, long), or set
Data
Source(android.media.Media
Data
Source) transfers a Media
Player object in the Idle state lớn the Initialized state. An Illegal
State
Exception is thrown if set
Data
Source() is called in any other state. It is good programming practice to lớn always look out for Illegal
Argument
Exception & IOException that may be thrown from the overloaded set
Data
Source methods. A Media
Player object must first enter the Prepared state before playback can be started. It is important to note that the Preparing state is a transient state, & the behavior of calling any method with side effect while a Media
Player object is in the Preparing state is undefined. While in the Prepared state, properties such as audio/sound volume, screen
On
While
Playing, looping can be adjusted by invoking the corresponding phối methods. khổng lồ start the playback, start() must be called. After start() returns successfully, the Media
Player object is in the Started state. Is
Playing() can be called to kiểm tra whether the Media
Player object is in the Started state. Playback can be paused và stopped, và the current playback position can be adjusted. Playback can be paused via pause(). When the gọi to pause() returns, the Media
Player object enters the Paused state. Lưu ý that the transition from the Started state to lớn the Paused state & vice versa happens asynchronously in the player engine. It may take some time before the state is updated in calls to lớn is
Playing(), và it can be a number of seconds in the case of streamed content. Calling stop() stops playback & causes a Media
Player in the Started, Paused, Prepared or Playback
Completed state to lớn enter the Stopped state. The playback position can be adjusted with a hotline to seek
To(long, int). When the playback reaches the end of stream, the playback completes.
Valid & invalid states
Method Name | Valid States | Invalid States | Comments | |||
attach Aux Effect | Initialized, Prepared, Started, Paused, Stopped, Playback Completed | Idle, Error | This method must be called after set Data Source. Calling it does not change the object state. | |||
get Audio Session Id | any | This method can be called in any state và calling it does not change the object state. | ||||
get Current Position | Idle, Initialized, Prepared, Started, Paused, Stopped, Playback Completed | Error | Successful invoke of this method in a valid state does not change the state. Calling this method in an invalid state transfers the object lớn the Error state. | |||
get Duration | Prepared, Started, Paused, Stopped, Playback Completed | Idle, Initialized, Error | Successful invoke of this method in a valid state does not change the state. Calling this method in an invalid state transfers the object khổng lồ the Error state. | |||
get Video Height | Idle, Initialized, Prepared, Started, Paused, Stopped, Playback Completed | Error | Successful invoke of this method in a valid state does not change the state. Calling this method in an invalid state transfers the object to the Error state. | |||
get Video Width | Idle, Initialized, Prepared, Started, Paused, Stopped, Playback Completed | Error | Successful invoke of this method in a valid state does not change the state. Calling this method in an invalid state transfers the object to lớn the Error state. | |||
is Playing | Idle, Initialized, Prepared, Started, Paused, Stopped, Playback Completed | Error | Successful invoke of this method in a valid state does not change the state. Calling this method in an invalid state transfers the object to the Error state. | |||
pause | Started, Paused, Playback Completed | Idle, Initialized, Prepared, Stopped, Error | Successful invoke of this method in a valid state transfers the object to lớn the Paused state. Calling this method in an invalid state transfers the object to lớn the Error state. | |||
prepare | Initialized, Stopped | Idle, Prepared, Started, Paused, Playback Completed, Error | Successful invoke of this method in a valid state transfers the object to the Prepared state. Calling this method in an invalid state throws an Illegal State Exception. | |||
prepare Async | Initialized, Stopped | Idle, Prepared, Started, Paused, Playback Completed, Error | Successful invoke of this method in a valid state transfers the object to the Preparing state. Calling this method in an invalid state throws an Illegal State Exception. | |||
release | any | After release(), you must not interact with the object. | ||||
reset | Idle, Initialized, Prepared, Started, Paused, Stopped, Playback Completed, Error | After reset(), the object is like being just created. | ||||
seek To | Prepared, Started, Paused, Playback Completed | Idle, Initialized, Stopped, Error | Successful invoke of this method in a valid state does not change the state. Calling this method in an invalid state transfers the object to lớn the Error state. | |||
set Audio Attributes | Idle, Initialized, Stopped, Prepared, Started, Paused, Playback Completed | Error | Successful invoke of this method does not change the state. In order for the target audio attributes type to become effective, this method must be called before prepare() or prepare Async(). | |||
set Audio Session Id | Idle | Initialized, Prepared, Started, Paused, Stopped, Playback Completed, Error | This method must be called in idle state as the audio session ID must be known before calling set Data Source. Calling it does not change the object state. | |||
set Audio Stream Type (deprecated) | Idle, Initialized, Stopped, Prepared, Started, Paused, Playback Completed | Error | Successful invoke of this method does not change the state. In order for the target audio stream type to become effective, this method must be called before prepare() or prepare Async(). | |||
set Aux Effect Send Level | any | Calling this method does not change the object state. | ||||
set Data Source | Idle | Initialized, Prepared, Started, Paused, Stopped, Playback Completed, Error | Successful invoke of this method in a valid state transfers the object to lớn the Initialized state. Calling this method in an invalid state throws an Illegal State Exception. | |||
set Display | any | This method can be called in any state and calling it does not change the object state. | ||||
set Surface | any | This method can be called in any state & calling it does not change the object state. | ||||
set Video Scaling Mode | Initialized, Prepared, Started, Paused, Stopped, Playback Completed | Idle, Error | Successful invoke of this method does not change the state. | |||
set Looping | Idle, Initialized, Stopped, Prepared, Started, Paused, Playback Completed | Error | Successful invoke of this method in a valid state does not change the state. Calling this method in an invalid state transfers the object to lớn the Error state. | |||
is Looping | any | This method can be called in any state & calling it does not change the object state. | ||||
set On Buffering Update Listener | any | This method can be called in any state and calling it does not change the object state. | ||||
set On Completion Listener | any | This method can be called in any state & calling it does not change the object state. | ||||
set On Error Listener | any | This method can be called in any state và calling it does not change the object state. | ||||
set On Prepared Listener | any | This method can be called in any state và calling it does not change the object state. | ||||
set On Seek Complete Listener | any | This method can be called in any state & calling it does not change the object state. | ||||
set Playback Params | Initialized, Prepared, Started, Paused, Playback Completed, Error | Idle, Stopped | This method will change state in some cases, depending on when it"s called. | |||
set Screen On While Playing | any | This method can be called in any state & calling it does not change the object state. | ||||
set Volume | Idle, Initialized, Stopped, Prepared, Started, Paused, Playback Completed | Error | Successful invoke of this method does not change the state. Set Wake Mode | any | This method can be called in any state và calling it does not change the object state. | |
start | Prepared, Started, Paused, Playback Completed | Idle, Initialized, Stopped, Error | Successful invoke of this method in a valid state transfers the object khổng lồ the Started state. Calling this method in an invalid state transfers the object khổng lồ the Error state. | |||
stop | Prepared, Started, Stopped, Paused, Playback Completed | Idle, Initialized, Error | Successful invoke of this method in a valid state transfers the object lớn the Stopped state. Calling this method in an invalid state transfers the object lớn the Error state. | |||
get Track Info | Prepared, Started, Stopped, Paused, Playback Completed | Idle, Initialized, Error | Successful invoke of this method does not change the state. | |||
add Timed Text Source | Prepared, Started, Stopped, Paused, Playback Completed | Idle, Initialized, Error | Successful invoke of this method does not change the state. | |||
select Track | Prepared, Started, Stopped, Paused, Playback Completed | Idle, Initialized, Error | Successful invoke of this method does not change the state. | |||
deselect Track | Prepared, Started, Stopped, Paused, Playback Completed | Idle, Initialized, Error | Successful invoke of this method does not change the state. |
Permissions
One may need khổng lồ declare a corresponding WAKE_LOCK permission element. This class requires the Manifest.permission.INTERNET permission when used with network-based content.
Callbacks
Applications may want khổng lồ register for informational & error events in order khổng lồ be informed of some internal state update & possible runtime errors during playback or streaming. Registration for these events is done by properly setting the appropriate listeners (via calls to lớn setOn
Prepared
Listener, set
On
Video
Size
Changed
Listener, set
On
Seek
Complete
Listener, set
On
Completion
Listener, set
On
Buffering
Update
Listener, set
On
Info
Listener, set
On
Error
Listener, etc). In order lớn receive the respective callback associated with these listeners, applications are required to lớn create Media
Player objects on a thread with its own Looper running (main UI thread by default has a Looper running).
Summary
class | Media Player.Drm Info Encapsulates the DRM properties of the source. |
class | Media Player.Metrics Constants
|
class | Media Player.No Drm Scheme Exception Thrown when a DRM method is called before preparing a DRM scheme through prepare |
interface | Media Player.On Buffering Update Listener Interface definition of a callback khổng lồ be invoked indicating buffering status of a truyền thông resource being streamed over the network. |
interface | Media Player.On Completion Listener Interface definition for a callback lớn be invoked when playback of a media source has completed. |
interface | Media Player.On Drm Config Helper Interface definition of a callback lớn be invoked when the tiện ích can vày DRM configuration (get/set properties) before the session is opened. |
interface | Media Player.On Drm Info Listener Interface definition of a callback khổng lồ be invoked when the DRM info becomes available |
interface | Media Player.On Drm Prepared Listener Interface definition of a callback to notify the tiện ích when the DRM is ready for key request/response |
interface | Media Player.On Error Listener Interface definition of a callback khổng lồ be invoked when there has been an error during an asynchronous operation (other errors will throw exceptions at method gọi time). |
interface | Media Player.On Info Listener Interface definition of a callback to lớn be invoked lớn communicate some info and/or warning about the truyền thông or its playback. |
interface | Media Player.On Media Time Discontinuity Listener Interface definition of a callback lớn be invoked when discontinuity in the normal progression of the truyền thông media time is detected. |
interface | Media Player.On Prepared Listener Interface definition for a callback to lớn be invoked when the media source is ready for playback. |
interface | Media Player.On Seek Complete Listener Interface definition of a callback lớn be invoked indicating the completion of a seek operation. |
interface | Media Player.On Subtitle Data Listener Interface definition of a callback khổng lồ be invoked when a player subtitle track has new subtitle data available. |
interface | Media Player.On Timed Meta Data Available Listener Interface definition of a callback lớn be invoked when a track has timed metadata available. |
interface | Media Player.On Timed Text Listener Interface definition of a callback khổng lồ be invoked when a timed text is available for display. |
interface | Media Player.On Video Size Changed Listener Interface definition of a callback to be invoked when the video size is first known or updated |
class | Media Player.Provisioning Network Error Exception Thrown when the device requires DRM provisioning but the provisioning attempt has failed due lớn a network error (Internet reachability, timeout, etc.). |
class | Media Player.Provisioning Server Error Exception Thrown when the device requires DRM provisioning but the provisioning attempt has failed due khổng lồ the provisioning vps denying the request. |
class | Media Player.Track Info Class for Media |
int | MEDIA_ERROR_IO File or network related operation errors. |
int | MEDIA_ERROR_MALFORMED Bitstream is not conforming to lớn the related coding standard or tệp tin spec. |
int | MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK The video is streamed and its container is not valid for progressive playback i.e the video"s index (e.g moov atom) is not at the start of the file. |
int | MEDIA_ERROR_SERVER_DIED Media hệ thống died. |
int | MEDIA_ERROR_TIMED_OUT Some operation takes too long lớn complete, usually more than 3-5 seconds. |
int | MEDIA_ERROR_UNKNOWN Unspecified truyền thông player error. |
int | MEDIA_ERROR_UNSUPPORTED Bitstream is conforming khổng lồ the related coding standard or tệp tin spec, but the media framework does not tư vấn the feature. |
int | MEDIA_INFO_AUDIO_NOT_PLAYING Informs that audio is not playing. |
int | MEDIA_INFO_BAD_INTERLEAVING Bad interleaving means that a media has been improperly interleaved or not interleaved at all, e.g has all the video clip samples first then all the audio ones. |
int | MEDIA_INFO_BUFFERING_END Media |
int | MEDIA_INFO_BUFFERING_START Media |
int | MEDIA_INFO_METADATA_UPDATE A new phối of metadata is available. |
int | MEDIA_INFO_NOT_SEEKABLE The truyền thông media cannot be seeked (e.g live stream) |
int | MEDIA_INFO_STARTED_AS_NEXT The player was started because it was used as the next player for another player, which just completed playback. |
int | MEDIA_INFO_SUBTITLE_TIMED_OUT Reading the subtitle track takes too long. |
int | MEDIA_INFO_UNKNOWN Unspecified media player info. |
int | MEDIA_INFO_UNSUPPORTED_SUBTITLE Subtitle track was not supported by the media framework. |
int | MEDIA_INFO_VIDEO_NOT_PLAYING Informs that video is not playing. |
int | MEDIA_INFO_VIDEO_RENDERING_START The player just pushed the very first đoạn clip frame for rendering. |
int | MEDIA_INFO_VIDEO_TRACK_LAGGING The clip is too complex for the decoder: it can"t decode frames fast enough. |
String | MEDIA_MIMETYPE_TEXT_SUBRIP This constant was deprecated in API màn chơi 28. Use Media |
int | PREPARE_DRM_STATUS_PREPARATION_ERROR The DRM preparation has failed . |
int | PREPARE_DRM_STATUS_PROVISIONING_NETWORK_ERROR The device required DRM provisioning but couldn"t reach the provisioning server. |
int | PREPARE_DRM_STATUS_PROVISIONING_SERVER_ERROR The device required DRM provisioning but the provisioning hệ thống denied the request. |
int | PREPARE_DRM_STATUS_SUCCESS The status codes for On |
int | SEEK_CLOSEST This mode is used with seek |
int | SEEK_CLOSEST_SYNC This mode is used with seek |
int | SEEK_NEXT_SYNC This mode is used with seek |
int | SEEK_PREVIOUS_SYNC This mode is used with seek |
int | VIDEO_SCALING_MODE_SCALE_TO_FIT Specifies a video scaling mode. |
int | VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING Specifies a video clip scaling mode. |
Media Player() Default constructor. |
Media Player(Context context) Default constructor with context. |
void | add On Routing Changed Listener(Audio Routing.On Routing Changed Listener listener, Handler handler) Adds an Audio |
void | add Timed Text Source(File Descriptor fd, String mime Type) Adds an external timed text source tệp tin (File |
void | add Timed Text Source(String path, String mime Type) Adds an external timed text source file. |
void | add Timed Text Source(File Descriptor fd, long offset, long length, String mime) Adds an external timed text tệp tin (File |
void | add Timed Text Source(Context context, Uri uri, String mime Type) Adds an external timed text source tệp tin (Uri). |
void | attach Aux Effect(int effect Id) Attaches an auxiliary effect lớn the player. |
void | clear On Media Time Discontinuity Listener() Clears the listener previously set with set |
void | clear On Subtitle Data Listener() Clears the listener previously phối with set |
static Media Player | create(Context context, Uri uri, Surface Holder holder, Audio Attributes audio Attributes, int audio Session Id) Same factory method as create(android.content.Context, android.net.Uri, android.view.Surface |
static Media Player | create(Context context, int resid, Audio Attributes audio Attributes, int audio Session Id) Same factory method as create(android.content.Context, int) but that lets you specify the audio attributes and session ID to lớn be used by the new Media |
static Media Player | create(Context context, Uri uri, Surface Holder holder) Convenience method to lớn create a Media |
static Media Player | create(Context context, int resid) Convenience method to create a Media |
static Media Player | create(Context context, Uri uri) Convenience method khổng lồ create a Media |
Volume Shaper | create Volume Shaper(Volume Shaper.Configuration configuration) Returns a Volume |
void | deselect Track(int index) Deselect a track. |
int | get Audio Session Id() Returns the audio session ID. |
int | get Current Position() Gets the current playback position. |
Media Player.Drm Info | get Drm Info() Retrieves the DRM Info associated with the current source |
String | get Drm Property String(String property Name) Read a DRM engine plugin String property value, given the property name string. |
int | get Duration() Gets the duration of the file. |
Media Drm.Key Request | )">get Key Request(byte<> key Set Id, byte<> init Data, String mime Type, int key Type, Map String,String> optional Parameters) A key request/response exchange occurs between the app and a license server to obtain or release keys used khổng lồ decrypt encrypted content. |
Persistable Bundle | get Metrics() Return Metrics data about the current player. |
Playback Params | get Playback Params() Gets the playback params, containing the current playback rate. |
Audio Device Info | get Preferred Device() Returns the selected output specified by set |
Audio Device Info | get Routed Device() Returns an Audio |
int | get Selected Track(int track Type) Returns the index of the audio, video, or subtitle track currently selected for playback, The return value is an index into the array returned by get |
Sync Params | get Sync Params() Gets the A/V sync mode. |
Media Timestamp | get Timestamp() Get current playback position as a Media |
Track Info<> | get Track Info() Returns an array of track information. |
int | get Video Height() Returns the height of the video. |
int | get Video Width() Returns the width of the video. |
boolean | is Looping() Checks whether the Media |
boolean | is Playing() Checks whether the Media |
void | pause() Pauses playback. |
void | prepare() Prepares the player for playback, synchronously. |
void | prepare Async() Prepares the player for playback, asynchronously. |
void | prepare Drm(UUID uuid) Prepares the DRM for the current source If On |
byte<> | provide Key Response(byte<> key Set Id, byte<> response) A key response is received from the license server by the app, then it is provided to lớn the DRM engine plugin using provide |
void | release() Releases resources associated with this Media |
void | release Drm() Releases the DRM session The player has to lớn have an active DRM session và be in stopped, or prepared state before this hotline is made. |
void | remove On Routing Changed Listener(Audio Routing.On Routing Changed Listener listener) Removes an Audio |
void | reset() Resets the Media |
void | restore Keys(byte<> key Set Id) Restore persisted offline keys into a new session. |
void | seek To(int msec) Seeks to specified time position. |
void | seek To(long msec, int mode) Moves the truyền thông media to specified time position by considering the given mode. |
void | select Track(int index) Selects a track. |
void | set Audio Attributes(Audio Attributes attributes) Sets the audio attributes for this Media |
void | set Audio Session Id(int session Id) Sets the audio session ID. |
void | set Audio Stream Type(int streamtype) This method was deprecated in API level 26. Use set |
void | set Aux Effect Send Level(float level) Sets the send cấp độ of the player lớn the attached auxiliary effect. |
void | set Data Source(Asset File Descriptor afd) Sets the data source (Asset |
void | set Data Source(File Descriptor fd) Sets the data source (File |
void | set Data Source(File Descriptor fd, long offset, long length) Sets the data source (File |
void | set Data Source(String path) Sets the data source (file-path or http/rtsp URL) lớn use. |
void | set Data Source(Media Data Source data Source) Sets the data source (Media |
void | ,%20java.util.List)">set Data Source(Context context, Uri uri, Map String,String> headers, List Http Cookie> cookies) Sets the data source as a content Uri. |
void | )">set Data Source(Context context, Uri uri, Map String,String> headers) Sets the data source as a nội dung Uri. |
void | set Data Source(Context context, Uri uri) Sets the data source as a content Uri. |
void | set Display(Surface Holder sh) Sets the Surface |
void | set Drm Property String(String property Name, String value) Set a DRM engine plugin String property value. |
void | set Looping(boolean looping) Sets the player to be looping or non-looping. |
void | set Next Media Player(Media Player next) Set the Media |
void | set On Buffering Update Listener(Media Player.On Buffering Update Listener listener) Register a callback khổng lồ be invoked when the status of a network stream"s buffer has changed. |
void | set On Completion Listener(Media Player.On Completion Listener listener) Register a callback to be invoked when the end of a media source has been reached during playback. |
void | set On Drm Config Helper(Media Player.On Drm Config Helper listener) Register a callback lớn be invoked for configuration of the DRM object before the session is created. |
void | set On Drm Info Listener(Media Player.On Drm Info Listener listener) Register a callback lớn be invoked when the DRM info is known. |
void | set On Drm Info Listener(Media Player.On Drm Info Listener listener, Handler handler) Register a callback khổng lồ be invoked when the DRM info is known. |
void | set On Drm Prepared Listener(Media Player.On Drm Prepared Listener listener, Handler handler) Register a callback lớn be invoked when the DRM object is prepared. |
void | set On Drm Prepared Listener(Media Player.On Drm Prepared Listener listener) Register a callback to be invoked when the DRM object is prepared. |
void | set On Error Listener(Media Player.On Error Listener listener) Register a callback lớn be invoked when an error has happened during an asynchronous operation. |
void | set On Info Listener(Media Player.On Info Listener listener) Register a callback to be invoked when an info/warning is available. |
void | set On Media Time Discontinuity Listener(Media Player.On Media Time Discontinuity Listener listener, Handler handler) Sets the listener lớn be invoked when a truyền thông time discontinuity is encountered. |
void | set On Media Time Discontinuity Listener(Media Player.On Media Time Discontinuity Listener listener) Sets the listener lớn be invoked when a truyền thông media time discontinuity is encountered. |
void | set On Prepared Listener(Media Player.On Prepared Listener listener) Register a callback to lớn be invoked when the truyền thông media source is ready for playback. |
void | set On Seek Complete Listener(Media Player.On Seek Complete Listener listener) Register a callback to lớn be invoked when a seek operation has been completed. |
void | set On Subtitle Data Listener(Media Player.On Subtitle Data Listener listener) Sets the listener to be invoked when a subtitle track has new data available. |
void | set On Subtitle Data Listener(Media Player.On Subtitle Data Listener listener, Handler handler) Sets the listener khổng lồ be invoked when a subtitle track has new data available. |
void | set On Timed Meta Data Available Listener(Media Player.On Timed Meta Data Available Listener listener) Register a callback to lớn be invoked when a selected track has timed metadata available. |
void | set On Timed Text Listener(Media Player.On Timed Text Listener listener) Register a callback to be invoked when a timed text is available for display. |
void | set On Video Size Changed Listener(Media Player.On Video Size Changed Listener listener) Register a callback lớn be invoked when the đoạn phim size is known or updated. |
void | set Playback Params(Playback Params params) Sets playback rate using Playback |
boolean | set Preferred Device(Audio Device Info device Info) Specifies an audio device (via an Audio |
void | set Screen On While Playing(boolean screen On) Control whether we should use the attached Surface |
void | set Surface(Surface surface) Sets the Surface to lớn be used as the sink for the video clip portion of the media. |
void | set Sync Params(Sync Params params) Sets A/V sync mode. |
void | set Video Scaling Mode(int mode) Sets đoạn clip scaling mode. |
void | set Volume(float left Volume, float right Volume) Sets the volume on this player. |
void | set Wake Mode(Context context, int mode) Set the low-level nguồn management behavior for this Media |
void | start() Starts or resumes playback. |
void | stop() Stops playback after playback has been started or paused. |
void | finalize() Called by the garbage collector on an object when garbage collection determines that there are no more references to lớn the object. Hai nhân vật bắt buộc – Thắm của “Cô Thắm về làng” hết sức được yêu thương thích tại phần 1 nên sau thời điểm triển khai phần 2, Nhan Phúc Vinh – Tường Vi đã nhận được lời liên tục vai diễn. Cô Thắm về làng là tập phim ca nhạc hài được phát sóng vào dịp Tết 2016, được người theo dõi truyền hình yêu quý vì bầu không khí vui vẻ, đầy ắp giờ đồng hồ cười. Cặp diễn viên bao gồm Nhan Phúc Vinh – Tường Vi được người ái mộ yêu thích, thậm chí còn còn ghép đôi họ cùng nhau vì dạng hình tương xứng và ăn ý trên màn ảnh. Ngay lúc đạo diễn đề cập mang lại phần 2, cặp đôi Cần – Thắm chấp nhận ngay tức khắc. Nhan Phúc Vinh cho thấy sự duyên dáng của bộ phim truyền hình và nhân vật đã thu hút anh, trong khi, Tường Vi share dự án này hết sức có ý nghĩa với cô.
Khi tảo phim, diễn viên cute học cách sản xuất những món ăn truyền thống lâu đời ngày Tết khiến cô ói nao ao ước trở thành người thiếu nữ của gia đình. Về phía a ma tơ gốc buộc phải Thơ, anh lại khá băn khoăn lo lắng khi bắt buộc thu âm hầu như ca khúc rất gần gũi như Giăng câu, hai trái tim vàng, Lên chùa mong duyên, Lối về buôn bản nhỏ, mùa xuân cưới em, tết đoàn viên… Ở phần 1, Thắm (Tường Vi đóng) ra đời ở vùng quê nhưng lại được sang Mỹ du học. Một lần, cô về thăm nhà vào thời gian Tết đã khiến bao con trai trai nghỉ ngơi thôn buôn bản say đắm vày nhan nhan sắc mỹ miều. Cần (Nhan Phúc Vinh), một nam giới trai quê chân chất, cần mẫn nhưng bốc đồng đã thử qua nhiều khó khăn mới đoạt được được Thắm. Sang phần 2, chuyện tình của họ được phụ huynh 2 mặt thúc ép để có một đám hỏi trong mơ.
Nhưng đúng vào lúc này, Duyên (Trương Nhi Yaya) xuất hiện, rào cản tình cảm của cần và Thắm. Cô vốn là bạn cùng thôn của Thắm cùng xem đề xuất là “hoàng tử trong mơ”. Trở về quê sau khá nhiều năm xa cách, Duyên công khai minh bạch theo đuổi và đòi cưới Cần bởi mọi giá, khiến cho đối phương bao phát âm lầm, giận dỗi. Ngoài ra, cặp đôi Đượm - Kiệm (Sam – Jun đội 365) lại khiến mái ấm gia đình đau đầu vị muốn minh chứng mình đã trưởng thành để tổ chức triển khai đám cưới. Cặp đôi bạn trẻ Toán – Lý (Long đẹp mắt trai với Puka) cũng các phen sóng gió vì sự phá bĩnh của bà nước ngoài Lê Thiện.
Ở phần 2, phim được chi tiêu với kinh phí lớn khi quay nhiều bối cảnh từ khu vực miền bắc đến tây-nam Bộ. Ê-kíp cũng “chịu chơi” khi quay phim bằng technology 4K. Được phân phát sóng đúng dịp Tết Đinh Dậu, Cô Thắm về buôn bản 2 còn tái hiện không khí xuân rộn ràng cảnh sắc chợ hoa Tết làm việc Bến Bình Đông (Q.8 – TP.HCM) và những phong tục truyền thống cuội nguồn như làm bếp bánh tét, có tác dụng mứt, làm củ kiệu, bày mâm cỗ… Phim được phát sóng từ thứ 2 đến thiết bị 6 mặt hàng tuần trên HTV2 thời điểm 20h.
|