When developing a video playback feature, which of the following steps is correct?

The HarmonyOS video module supports the development of video services and the opening of the ecosystem, allowing developers to easily play, operate, and develop new functions of video media through the open interfaces. Video playback includes playback controls, playback settings, and playback queries, such as start/stop playback, playback speed settings, and whether to loop playback.

When developing a video playback feature, which of the following steps is correct?
A . Create a Player instance→ construct a data source object and set the media source → call method prepare(), →call method play(), call method stop(→→ call method release()
B . Create a Player instance → call the prepare() → play() → construct the data source object and set the media source→ call the stop() → release().
C . Construct a data source object and set the media source→ create a Player instance→ call method play(), →call method prepare(), →call method stop(→ call method release()
D . Call the prepare() method → create a Plawer instance→ construct a data source object and set the media source → call method→ create a Player instance, Play() → call method stop() → call method release()

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments