You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Override this method to add custom logic when **HISPlayerEvent.HISPlayerEvent.HISPLAYER_EVENT_AUTO_TRANSITION** is triggered.
226
253
This event occurs when the playback has changed to the next video in the playlist automatically.
@@ -405,9 +432,48 @@ Get the number of tracks of a certain stream. The **playerIndex** is associated
405
432
#### protected void SelectTrack(int playerIndex, int trackIndex)
406
433
Select a certain track of a certain stream to be used as the main track. This action will disable ABR, to enable it again you can use **EnableABR** API. The possible tracks can be obtained from the tracks returned from the method GetTracks. 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.
407
434
435
+
#### public void EnableCaptions(int playerIndex, bool enabled)
436
+
Enables the captions of the stream. 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.
437
+
438
+
#### public HISPlayerCaptionTrack[] GetCaptionTrackList(int playerIndex)
439
+
Provide information about all the captions of a certain stream. 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.
440
+
441
+
#### public int GetCaptionsCount(int playerIndex)
442
+
Obtain the number of captions of a certain stream. 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.
443
+
444
+
#### public string GetCaptionID(int playerIndex, int ccTrackIndex)
445
+
Obtain the ID of a certain caption of a certain player. 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.
446
+
447
+
#### public string GetCaptionLanguage(int playerIndex, int ccTrackIndex)
448
+
Obtain the language of a certain caption of a certain player. 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.
449
+
450
+
#### public void SelectCaptionTrack(int playerIndex, int ccTrackIndex)
451
+
Select a certain caption of a certain stream to be used. Before using this functions is recommended to use GetCaptionTrackList in order to know all the information about the captions. 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.
452
+
453
+
#### public HisPlayerAudioTrack[] GetAudioTrackList(int playerIndex)
454
+
Provide information about all the audio tracks of a certain stream. 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.
455
+
456
+
#### public int GetAudioCount(int playerIndex)
457
+
Obtain the number of audio of a certain stream. 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.
458
+
459
+
#### public string GetAudioID(int playerIndex, int audioTrackIndex)
460
+
Obtain the ID of a certain audio of a certain player. 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.
461
+
462
+
#### protected string GetAudioLanguage(int playerIndex, int audioTrackIndex)
463
+
Obtain the language of a certain audio of a certain player. 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.
464
+
465
+
#### protected void SelectAudioTrack(int playerIndex, int audioTrackIndex)
466
+
Select a certain audio-track of a certain stream to be used. Before using this functions is recommended to use GetAudioTrackList in order to know all the information about the audio-tracks. 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.
467
+
408
468
#### protected void EnableABR(int playerIndex)
409
469
Enables the ABR to change automatically between tracks. 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.
410
470
471
+
#### protected void SetMaxBitrate(int playerIndex, int bitrate)
472
+
Set a new maximum bitrate (in bits per second) of a specific track. This doesn’t disable ABR. The possible tracks can be obtained from the tracks returned from the method GetTracks. 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.
473
+
474
+
#### protected void SetMinBitrate(int playerIndex, int bitrate)
475
+
Set a new minimum bitrate (in bits per second) of a specific track. This doesn’t disable ABR. The possible tracks can be obtained from the tracks returned from the method GetTracks. 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.
476
+
411
477
#### protected void DisableABR(int playerIndex)
412
478
Disables the ABR to prevent the player from changing tracks regardless of bandwidth. 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.
Copy file name to clipboardExpand all lines: releases.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# HISPlayer Unity WebGL SDK Release Notes
2
2
3
+
### Version 4.9.0
4
+
##### July 10, 2025
5
+
-[**Added**] Added GetCaptionTrackList, GetCaptionCount, GetCaptionID, GetCaptionLanguage, EnableCaptions, SelectCaptionTrack APIs to get and select different caption tracks.
6
+
-[**Added**] Added GetAudioTrackList, GetAudioCount, GetAudioID, GetAudioLanguage, SelectAudioTrack APIs to get and select different audio tracks.
7
+
8
+
### Version 4.8.0
9
+
##### July 7, 2025
10
+
-[**Improvement**] Enhancement to InspectorGUI to dynamically show/hide certain options.
11
+
-[**Added**] StartingBitrate moved from the general settings to the settings of each individual stream
12
+
-[**Added**] Added TrackBitrateRange to select the bitrate range allowed in each stream
13
+
-[**Added**] Added ResolutionMaxSize to select the resolution max size allowed in each stream
14
+
-[**Added**] Added ResolutionMinSize to select the resolution min size allowed in each stream
15
+
-[**Added**] Added SetMaxABRResolution and SetMinABRResolution to change the resolution settings allowed by the ABR in runtime
16
+
3
17
### Version 4.7.0
4
18
##### March 3, 2025
5
19
-[**Added**] GetPlaybackSpeedRate and SetPlaybackSpeedRate APIs
@@ -166,9 +166,13 @@ Use Multi Stream Properties to set all the configuration needed for multi stream
166
166
* <spanstyle="color:blue">**LoopPlayback**</span>: Loop the current playback. It's true by default.
167
167
* <spanstyle="color:blue">**AutoTransition**</span>: Change the playback to the next video in the playlist. This action won't have effect when loopPlayback is true. It's false by default.
168
168
* <spanstyle="color:blue">**AdsProperties**</span>: List of properties to configure advertisement insertions for each player in the scene. For more information, please refer to [**Playing Ads**](./playing-ads.md)
169
+
* <spanstyle="color:blue">**Starting Bitrate**</span>: The bitrate in bps the player will try to start playing. Setting it to 0 will make the player start with the lowest track.
170
+
* <spanstyle="color:blue">**Track Bitrate Range**</span>: Limits the tracks by bitrate range. X = Minimum bitrate, Y = Maximum bitrate (in bps).
171
+
* <spanstyle="color:blue">**Resolution Max Size**</span>: Limits the tracks by maximum resolution. X = Max width (px), Y = Max height (px).
172
+
* <spanstyle="color:blue">**Resolution Min Size**</span>: Limits the tracks by minimum resolution. X = Min width (px), Y = Min height (px).
0 commit comments