Lines Matching refs:player

58  * @brief Create a player
67 * @brief Sets the playback source for the player. The corresponding source can be http url
69 * @param player Pointer to an OH_AVPlayer instance
76 OH_AVErrCode OH_AVPlayer_SetURLSource(OH_AVPlayer *player, const char *url);
79 * @brief Sets the playback media file descriptor source for the player.
81 * @param player Pointer to an OH_AVPlayer instance
90 OH_AVErrCode OH_AVPlayer_SetFDSource(OH_AVPlayer *player, int32_t fd, int64_t offset, int64_t size);
98 * @param player Pointer to an OH_AVPlayer instance
104 OH_AVErrCode OH_AVPlayer_Prepare(OH_AVPlayer *player);
109 * This function must be called after {@link Prepare}. If the player state is <b>Prepared</b>,
113 * @param player Pointer to an OH_AVPlayer instance
119 OH_AVErrCode OH_AVPlayer_Play(OH_AVPlayer *player);
124 * @param player Pointer to an OH_AVPlayer instance
130 OH_AVErrCode OH_AVPlayer_Pause(OH_AVPlayer *player);
135 * @param player Pointer to an OH_AVPlayer instance
141 OH_AVErrCode OH_AVPlayer_Stop(OH_AVPlayer *player);
144 * @brief Restores the player to the initial state.
150 * @param player Pointer to an OH_AVPlayer instance
156 OH_AVErrCode OH_AVPlayer_Reset(OH_AVPlayer *player);
159 * @brief Releases player resources async
166 * @param player Pointer to an OH_AVPlayer instance
172 OH_AVErrCode OH_AVPlayer_Release(OH_AVPlayer *player);
175 * @brief Releases player resources sync
182 * @param player Pointer to an OH_AVPlayer instance
188 OH_AVErrCode OH_AVPlayer_ReleaseSync(OH_AVPlayer *player);
191 * @brief Sets the volume of the player.
198 * @param player Pointer to an OH_AVPlayer instance
208 OH_AVErrCode OH_AVPlayer_SetVolume(OH_AVPlayer *player, float leftVolume, float rightVolume);
216 * @param player Pointer to an OH_AVPlayer instance
218 * @param mode Indicates the player seek mode. For details, see {@link AVPlayerSeekMode}.
224 OH_AVErrCode OH_AVPlayer_Seek(OH_AVPlayer *player, int32_t mSeconds, AVPlayerSeekMode mode);
229 * @param player Pointer to an OH_AVPlayer instance
236 OH_AVErrCode OH_AVPlayer_GetCurrentTime(OH_AVPlayer *player, int32_t *currentTime);
241 * @param player Pointer to an OH_AVPlayer instance
248 OH_AVErrCode OH_AVPlayer_GetVideoWidth(OH_AVPlayer *player, int32_t *videoWidth);
253 * @param player Pointer to an OH_AVPlayer instance
260 OH_AVErrCode OH_AVPlayer_GetVideoHeight(OH_AVPlayer *player, int32_t *videoHeight);
263 * @brief set the player playback rate
265 * @param player Pointer to an OH_AVPlayer instance
272 OH_AVErrCode OH_AVPlayer_SetPlaybackSpeed(OH_AVPlayer *player, AVPlaybackSpeed speed);
275 * @brief get the current player playback rate
277 * @param player Pointer to an OH_AVPlayer instance
279 * @return Returns {@link AV_ERR_OK} if the current player playback rate is get; returns an error code defined
284 OH_AVErrCode OH_AVPlayer_GetPlaybackSpeed(OH_AVPlayer *player, AVPlaybackSpeed *speed);
287 * @brief Set the renderer information of the player's audio renderer
288 * @param player Pointer to an OH_AVPlayer instance
289 * @param streamUsage The value {@link OH_AudioStream_Usage} used for the stream usage of the player audio render.
292 * {@link AV_ERR_INVALID_VAL} if input player is nullptr or streamUsage value is invalid.
296 OH_AVErrCode OH_AVPlayer_SetAudioRendererInfo(OH_AVPlayer *player, OH_AudioStream_Usage streamUsage);
299 * @brief Set the interruption mode of the player's audio stream
300 * @param player Pointer to an OH_AVPlayer instance
302 * the player audio stream.
305 * {@link AV_ERR_INVALID_VAL} if input player is nullptr or interruptMode value is invalid.
309 OH_AVErrCode OH_AVPlayer_SetAudioInterruptMode(OH_AVPlayer *player, OH_AudioInterrupt_Mode interruptMode);
312 * @brief Set the effect mode of the player's audio stream
313 * @param player Pointer to an OH_AVPlayer instance
315 * the player audio stream.
318 * {@link AV_ERR_INVALID_VAL} if input player is nullptr or effectMode value is invalid.
322 OH_AVErrCode OH_AVPlayer_SetAudioEffectMode(OH_AVPlayer *player, OH_AudioStream_AudioEffectMode effectMode);
325 * @brief set the bit rate use for hls player
329 * the player will select the appropriate bit rate and speed according to the network connection.
335 * @param player Pointer to an OH_AVPlayer instance
342 OH_AVErrCode OH_AVPlayer_SelectBitRate(OH_AVPlayer *player, uint32_t bitRate);
347 * @param player Pointer to an OH_AVPlayer instance
354 OH_AVErrCode OH_AVPlayer_SetVideoSurface(OH_AVPlayer *player, OHNativeWindow *window);
359 * @param player Pointer to an OH_AVPlayer instance
366 OH_AVErrCode OH_AVPlayer_GetDuration(OH_AVPlayer *player, int32_t *duration);
371 * @param player Pointer to an OH_AVPlayer instance
378 OH_AVErrCode OH_AVPlayer_GetState(OH_AVPlayer *player, AVPlayerState *state);
381 * @brief Checks whether the player is playing.
383 * @param player Pointer to an OH_AVPlayer instance
388 bool OH_AVPlayer_IsPlaying(OH_AVPlayer *player);
393 * @param player Pointer to an OH_AVPlayer instance
398 bool OH_AVPlayer_IsLooping(OH_AVPlayer *player);
403 * @param player Pointer to an OH_AVPlayer instance
410 OH_AVErrCode OH_AVPlayer_SetLooping(OH_AVPlayer *player, bool loop);
413 * @brief Method to set player callback.
415 * @param player Pointer to an OH_AVPlayer instance
424 OH_AVErrCode OH_AVPlayer_SetPlayerCallback(OH_AVPlayer *player, AVPlayerCallback callback);
434 * @param player Pointer to an OH_AVPlayer instance
441 OH_AVErrCode OH_AVPlayer_SelectTrack(OH_AVPlayer *player, int32_t index);
451 * @param player Pointer to an OH_AVPlayer instance
458 OH_AVErrCode OH_AVPlayer_DeselectTrack(OH_AVPlayer *player, int32_t index);
466 * @param player Pointer to an OH_AVPlayer instance
474 OH_AVErrCode OH_AVPlayer_GetCurrentTrack(OH_AVPlayer *player, int32_t trackType, int32_t *index);
477 * @brief Method to set player media key system info callback.
479 * @param player Pointer to an OH_AVPlayer instance
486 OH_AVErrCode OH_AVPlayer_SetMediaKeySystemInfoCallback(OH_AVPlayer *player,
492 * @param player Pointer to an OH_AVPlayer instance
499 OH_AVErrCode OH_AVPlayer_GetMediaKeySystemInfo(OH_AVPlayer *player, DRM_MediaKeySystemInfo *mediaKeySystemInfo);
505 * @param player Pointer to an OH_AVPlayer instance
513 OH_AVErrCode OH_AVPlayer_SetDecryptionConfig(OH_AVPlayer *player, MediaKeySession *mediaKeySession,
517 * @brief Method to set player information notify callback.
519 * @param player Pointer to an OH_AVPlayer instance.
524 * {@link AV_ERR_INVALID_VAL} if input player is null or player SetOnInfoCallback failed.
527 OH_AVErrCode OH_AVPlayer_SetOnInfoCallback(OH_AVPlayer *player, OH_AVPlayerOnInfoCallback callback, void *userData);
530 * @brief Method to set player error callback.
532 * @param player Pointer to an OH_AVPlayer instance.
537 * {@link AV_ERR_INVALID_VAL} if input player is null or player SetOnErrorCallback failed.
540 OH_AVErrCode OH_AVPlayer_SetOnErrorCallback(OH_AVPlayer *player, OH_AVPlayerOnErrorCallback callback, void *userData);