Skip to content

Commit

Permalink
Update hisplayer-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
StAincrad authored Aug 8, 2024
1 parent 56ed4b7 commit 20e02fb
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions hisplayer-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,25 @@ Calling functions such as GetTracks before this event is triggered will provide
<td>Number of tracks of the playback.</td>
</tr>
</table>


#### protected virtual void EventVideoSizeChange(HISPlayerEventInfo eventInfo)
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_VIDEO_SIZE_CHANGE** is triggered.
This event occurs whenever the internal video size of the current track changes.

<table>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td>param1</td>
<td>Width of the video.</td>
</tr>
<tr>
<td>param2</td>
<td>Heigth of the video.</td>
</tr>
</table>

#### protected virtual void EventPlaybackPlay(HISPlayerEventInfo eventInfo)
Override this method to add custom logic when **HISPlayerEvent.HISPlayer_EVENT_PLAYBACK_PLAY** is triggered.
Expand Down Expand Up @@ -210,25 +228,6 @@ This event occurs whenever an internal playback is buffering.
Override this method to add custom logic when **HISPlayerEvent.HISPlayer_EVENT_END_OF_CONTENT** is triggered.
This event occurs whenever an internal playlist reaches the end of the list.

#### protected virtual void EventVideoSizeChange(HISPlayerEventInfo eventInfo)
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_VIDEO_SIZE_CHANGE** is triggered.
This event occurs whenever the internal video size of the current track changes.

<table>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td>param1</td>
<td>Width of the video.</td>
</tr>
<tr>
<td>param2</td>
<td>Heigth of the video.</td>
</tr>
</table>

#### protected virtual void ErrorInfo(HISPlayerErrorInfo errorInfo)
Override this method to add custom logic when an error callback is triggered. Please, refer to the **HISPlayerError** list.

Expand Down

0 comments on commit 20e02fb

Please sign in to comment.