* For applications using the UDP protocol, packet loss can
* occur. when video distortion by video packet loss is
* detected, it is a function to conceal distortion by showing
- * previous vido frame. It is supported only in h.264 codec &
+ * previous video frame. It is supported only in h.264 codec &
* FHD or lower resolution.
*/
ESPLUSPLAYER_LOW_LATENCY_MODE_VIDEO_DISTORTION_CONCEALMENT =
* #ESPLUSPLAYER_STATE_READY from #ESPLUSPLAYER_STATE_IDLE.
* It changes the state immediately.
* It's usually used for sparse stream. (e.g. video packet
- * arrives but audio packet does't yet.)
+ * arrives but audio packet doesn't yet.)
*/
ESPLUSPLAYER_LOW_LATENCY_MODE_DISABLE_PREROLL = 0x0200,
/**
*/
ESPLUSPLAYER_AUDIO_CODEC_TYPE_HW,
/**
- * @description sorfware codec can only be selected
+ * @description software codec can only be selected
*/
ESPLUSPLAYER_AUDIO_CODEC_TYPE_SW,
ESPLUSPLAYER_AUDIO_CODEC_TYPE_MAX
* @code
* static void OnPrepareDone(bool ret, void* userdata) {
* //Something you want to do when prepare done, but, we strongly
- * //recommend DO NOT CALL PLAYER APIs in this callbck
+ * //recommend DO NOT CALL PLAYER APIs in this callback
* printf("OnPrepareDone\n");
* }
* esplusplayer_handle esplayer = esplusplayer_create();
* #ESPLUSPLAYER_STATE_PAUSED or #ESPLUSPLAYER_STATE_PLAYING.
* In ESPLUSPLAYER_STATE_IDLE, this api can be called exceptionally
* between esplusplayer_open() and esplusplayer_prepare_async().
- * the start time of plyabak can be set explicitly when starting
+ * the start time of playback can be set explicitly when starting
* first playback. In this case, esplusplayer_set_seek_done_cb is not
* called.
* @post None
* #ESPLUSPLAYER_STATE_NONE. \n
* @post None
* @exception None
- * @remark The minimum value of input are 0,maximun value is 1.
+ * @remark The minimum value of input are 0,maximum value is 1.
* @see esplusplayer_open() \n
* esplusplayer_set_display() \n
* esplusplayer_set_display_visible()
* @brief Set a callback function to be invoked when player is prepared to
* be started.
* @param [in] handle : esplusplayer handle.
- * @param [in] prepare_async_done_cb : the repare async done callback
+ * @param [in] prepare_async_done_cb : the prepare async done callback
* function to register.
* @param [in] userdata : userdata of prepare_async_done_cb()
* @return @c ESPLUSPLAYER_ERROR_TYPE_NONE on success,otherwise @c one of esplusplayer_error_type
* @pre The player state must be set to #ESPLUSPLAYER_STATE_NONE
* or #ESPLUSPLAYER_STATE_IDLE.
* @post When there is closed caption data, call
- * esplusplayer_closed_caption_cb to nofity that there is closed
+ * esplusplayer_closed_caption_cb to notify that there is closed
* caption needed to be displayed.
* @exception None
* @remark esplusplayer_closed_caption_cb \n
esplusplayer_closed_caption_cb closed_caption_cb, void* userdata);
/**
- * @brief Set a callback function to be invoked when player is flush
- * successed.
+ * @brief Set a callback function to be invoked when the flush operation is
+ * done.
* @param [in] handle : esplusplayer handle.
* @param [in] flush_done_cb : the flush done callback function to register.
* @param [in] userdata : userdata of esplusplayer_flush_done_cb()
#if 0
trackrenderer_->SetAttribute(
TrackRendererAdapter::Attribute::kAlternativeVideoResource,
- alternaltive_video_resource_);
+ alternative_video_resource_);
trackrenderer_->SetAttribute(
TrackRendererAdapter::Attribute::kVideoDecodingMode,
video_decoding_mode_);
return false;
}
if (is_resource_conflicted_) {
- LOG_ERROR_P(this, "Resuem fail resource conflicted");
+ LOG_ERROR_P(this, "Resume fail resource conflicted");
return false;
}
auto op = [this]() noexcept -> bool {
g_quark_from_static_string("matroska_blockadditional_size"),
blockadditional_size, g_free);
- /* blockadditiona_data : the data sent to omx, size (4 bytes) + metadata */
+ /* blockadditional_data : the data sent to omx, size (4 bytes) + metadata */
guint8* blockadditional_data =
(guint8*)g_malloc(((*blockadditional_size) + 4) * sizeof(guint8));
memcpy(blockadditional_data, blockadditional_size, sizeof(uint32_t));
if (type == kPlayerVideoCodecTypeSW &&
vidoe_frame_buffer_type_ == DecodedVideoFrameBufferType::kScale) {
LOG_ERROR_P(this,
- "sw video decoder is not supportted when video frame buffer "
+ "sw video decoder is not supported when video frame buffer "
"type is scale");
return false;
}