Skip to content

Commit 74718f2

Browse files
Merge pull request #13 from HISPlayer/release/4.13.0
Release/4.13.0
2 parents c1bdc1b + fba2d80 commit 74718f2

2 files changed

Lines changed: 63 additions & 4 deletions

File tree

hisplayer-api.md

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ The following public APIs are provided by **HISPlayerManager**
6363
* **HISPLAYER_EVENT_PLAYBACK_PLAY**
6464
* **HISPLAYER_EVENT_PLAYBACK_PAUSE**
6565
* **HISPLAYER_EVENT_PLAYBACK_STOP**
66-
* **HISPLAYER_EVENT_PLAYBACK_SEEK**
66+
* **HISPLAYER_EVENT_PLAYBACK_SEEK** [OBSOLETE]
67+
* **HISPLAYER_EVENT_PLAYBACK_SEEK_BEGIN**
68+
* **HISPLAYER_EVENT_PLAYBACK_SEEK_END**
6769
* **HISPLAYER_EVENT_VOLUME_CHANGE**
6870
* **HISPLAYER_EVENT_END_OF_PLAYLIST**
6971
* **HISPLAYER_EVENT_AUTO_TRANSITION**
@@ -195,7 +197,7 @@ This event occurs whenever an internal playback has been paused.
195197
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_STOP** is triggered.
196198
This event occurs whenever an internal playback has been stopped.
197199

198-
#### protected virtual void EventPlaybackSeek(HISPlayerEventInfo eventInfo)
200+
#### protected virtual void EventPlaybackSeek(HISPlayerEventInfo eventInfo) [OBSOLETE]
199201
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_SEEK** is triggered.
200202
This event occurs whenever an internal playback has been sought to a new time position.
201203

@@ -214,6 +216,44 @@ This event occurs whenever an internal playback has been sought to a new time po
214216
</tr>
215217
</table>
216218

219+
#### protected virtual void EventPlaybackSeekBegin(HISPlayerEventInfo eventInfo)
220+
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_SEEK_BEGIN** is triggered.
221+
This event occurs when an internal playback begins seeking to a new time position.
222+
223+
<table>
224+
<tr>
225+
<th>Name</th>
226+
<th>Description</th>
227+
</tr>
228+
<tr>
229+
<td>param1</td>
230+
<td>Value of the old track position in milliseconds.</td>
231+
</tr>
232+
<tr>
233+
<td>param2</td>
234+
<td>Value of the new track position in milliseconds.</td>
235+
</tr>
236+
</table>
237+
238+
#### protected virtual void EventPlaybackSeekEnd(HISPlayerEventInfo eventInfo)
239+
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_PLAYBACK_SEEK_END** is triggered.
240+
This event occurs after an internal playback has finished seeking to a new time position.
241+
242+
<table>
243+
<tr>
244+
<th>Name</th>
245+
<th>Description</th>
246+
</tr>
247+
<tr>
248+
<td>param1</td>
249+
<td>Value of the old track position in milliseconds.</td>
250+
</tr>
251+
<tr>
252+
<td>param2</td>
253+
<td>Value of the new track position in milliseconds.</td>
254+
</tr>
255+
</table>
256+
217257
#### protected virtual void EventVolumeChange(HISPlayerEventInfo eventInfo)
218258
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_VOLUME_CHANGE** is triggered.
219259
This event occurs whenever the volume has been modified.
@@ -386,8 +426,8 @@ Pause a certain stream giving a **playerIndex**. The **playerIndex** is associat
386426
#### void Stop(int playerIndex)
387427
Stop a certain stream giving a **playerIndex**. The **playerIndex** is associated with the index of the element of **Multi Stream Properties**, e.g. the index 0 is the element 0 in the list.
388428

389-
#### void Seek(int playerIndex, int milliseconds)
390-
Seek a certain stream to a certain time giving a **playerIndex** and the time of the track to be sought in **milliseconds**. The stream is associated with the index of the element of **Multi Stream Properties**, e.g. the index 0 is the element 0 in the list.
429+
#### void Seek(int playerIndex, long time)
430+
Seek a certain stream to a certain time giving a **playerIndex**. For **non-live content**: seeks to the specified time in milliseconds. For **live content**: seeks to the specified epoch time (WebGL only). The stream is associated with the index of the element of **Multi Stream Properties**, e.g. the index 0 is the element 0 in the list.
391431

392432
#### void SetVolume(int playerIndex, float volume)
393433
Modify the volume of a certain stream giving a **playerIndex**. The **volume** of the track value ranges between 0.0f and 1.0f. The **playerIndex** is associated with the index of the element of **Multi Stream Properties**, e.g. the index 0 is the element 0 in the list.
@@ -500,3 +540,16 @@ Get the epoch time (in seconds since 1970) of the first EXT-X-PROGRAM-DATE-TIME
500540

501541
#### string GetProgramDateTimeString(int playerIndex)
502542
Get the EXT-X-PROGRAM-DATE-TIME value seen in the manifest of a certain player. Only available for HLS manifests that have the tag information. The **playerIndex** is associated with the index of the element of **Multi Stream Properties**, e.g. the index 0 is the element 0 in the list.
543+
544+
#### void SetLogLevel(LogLevel logLevel)
545+
Establishes the amount of logs to be shown.
546+
**logLevel**: The log level to be used: 0->DEBUG, 1->INFO, 2->WARNING, 3->ERROR, 4->NONE
547+
548+
#### void SetLogSystemColorized(bool show)
549+
Enables or disables colorized logs in the HISPlayer log system. Only available for Unity Editor.
550+
551+
#### void SetLogSystemPlatform(bool show)
552+
Enables or disables colorized logs in the HISPlayer log system.
553+
554+
#### void SetLogSystemTimestamp(bool show)
555+
Enables or disables timestamps in the HISPlayer log system.

releases.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# HISPlayer Unity WebGL SDK Release Notes
22

3+
### Version 4.13.0
4+
##### November 28, 2025
5+
- [Added] Support for seeking using epoch time in HLS live streams.
6+
- [Added] New playback seek events: HISPLAYER_EVENT_PLAYBACK_SEEK_BEGIN and HISPLAYER_EVENT_PLAYBACK_SEEK_END with their respective overridable functions.
7+
- [Added] Customizable logging system allowing configuration of logLevel, showPlatform, showColorized, and showTimestamp.
8+
39
### Version 4.12.0
410
##### October 29, 2025
511
- [**Added**] GetProgramDateTimeEpoch and GetProgramDateTimeString APIs to obtain the EXT-X-PROGRAM-DATE-TIME information from HLS streams.

0 commit comments

Comments
 (0)