Skip to content

Commit 5448205

Browse files
Update hisplayer-api.md
1 parent 0d2ce3d commit 5448205

1 file changed

Lines changed: 48 additions & 3 deletions

File tree

hisplayer-api.md

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ The following public APIs are provided by HISPlayerManager.
2929
* **HISPLAYER_EVENT_PLAYBACK_PLAY**
3030
* **HISPLAYER_EVENT_PLAYBACK_PAUSE**
3131
* **HISPLAYER_EVENT_PLAYBACK_STOP**
32-
* **HISPLAYER_EVENT_PLAYBACK_SEEK**
32+
* **HISPLAYER_EVENT_PLAYBACK_SEEK** [OBSOLETE]
33+
* **HISPLAYER_EVENT_PLAYBACK_SEEK_BEGIN**
34+
* **HISPLAYER_EVENT_PLAYBACK_SEEK_END**
3335
* **HISPLAYER_EVENT_END_OF_PLAYLIST**
3436
* **HISPLATER_EVENT_ON_TRACK_CHANGE**
3537
* **HISPLAYER_EVENT_ON_STREAM_RELEASE**
@@ -116,16 +118,59 @@ This event occurs whenever an internal playback has been paused.
116118
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_STOP** is triggered.
117119
This event occurs whenever an internal playback has been stopped.
118120

119-
#### protected virtual void EventPlaybackSeek(HISPlayerEventInfo eventInfo)
121+
#### protected virtual void EventPlaybackSeek(HISPlayerEventInfo eventInfo) [OBSOLETE]
120122
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_SEEK** is triggered.
121123
This event occurs whenever an internal playback has been sought to a new time position.
122-
<table>
124+
125+
<table>
126+
<tr>
127+
<th>Name</th>
128+
<th>Description</th>
129+
</tr>
130+
<tr>
131+
<td>param1</td>
132+
<td>Value of the old track position in milliseconds.</td>
133+
</tr>
134+
<tr>
135+
<td>param2</td>
136+
<td>Value of the new track position in milliseconds.</td>
137+
</tr>
138+
</table>
139+
140+
#### protected virtual void EventPlaybackSeekBegin(HISPlayerEventInfo eventInfo)
141+
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_SEEK_BEGIN** is triggered.
142+
This event occurs when an internal playback begins seeking to a new time position.
143+
144+
<table>
123145
<tr>
124146
<th>Name</th>
125147
<th>Description</th>
126148
</tr>
127149
<tr>
128150
<td>param1</td>
151+
<td>Value of the old track position in milliseconds.</td>
152+
</tr>
153+
<tr>
154+
<td>param2</td>
155+
<td>Value of the new track position in milliseconds.</td>
156+
</tr>
157+
</table>
158+
159+
#### protected virtual void EventPlaybackSeekEnd(HISPlayerEventInfo eventInfo)
160+
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_SEEK_END** is triggered.
161+
This event occurs after an internal playback has finished seeking to a new time position.
162+
163+
<table>
164+
<tr>
165+
<th>Name</th>
166+
<th>Description</th>
167+
</tr>
168+
<tr>
169+
<td>param1</td>
170+
<td>Value of the old track position in milliseconds.</td>
171+
</tr>
172+
<tr>
173+
<td>param2</td>
129174
<td>Value of the new track position in milliseconds.</td>
130175
</tr>
131176
</table>

0 commit comments

Comments
 (0)