Skip to content

Commit e2aaaa4

Browse files
Update hisplayer-api.md
1 parent 4af5020 commit e2aaaa4

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

hisplayer-api.md

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ The following public APIs are provided by **HISPlayerManager**
5353
* **HISPLAYER_EVENT_PLAYBACK_BUFFERING**
5454
* **HISPLAYER_EVENT_NETWORK_CONNECTED**
5555
* **HISPLAYER_EVENT_END_OF_CONTENT**
56-
* **HISPLAYER_EVENT_DOWNLOAD_COMPLETED**
57-
* **HISPLAYER_EVENT_DOWNLOAD_PROGRESS**
5856

5957
* **public enum HISPlayerError**: The list of errors provided by HISPlayer SDK. The errors can be used with the virtual functions in the next section:
6058
* **HISPLAYER_ERROR_LICENSE_EXPIRED** (no function on this)
@@ -234,40 +232,6 @@ This event occurs whenever an internal playback is buffering.
234232
Override this method to add custom logic when **HISPlayerEvent.HISPlayer_EVENT_END_OF_CONTENT** is triggered.
235233
This event occurs whenever an internal playlist reaches the end of the list.
236234

237-
#### protected virtual void EventOnDownloadCompleted(HISPlayerEventInfo eventInfo)
238-
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_DOWNLOAD_COMPLETED** is triggered.
239-
This event occurs whenever a stream that was being downloaded has ended the download process, and it's ready to be played.
240-
241-
<table>
242-
<tr>
243-
<th>Name</th>
244-
<th>Description</th>
245-
</tr>
246-
<tr>
247-
<td>stringInfo</td>
248-
<td>Relative path where the stream has been stored. This will equal to the title settled to the video. The path is relative to the Application.persistentDataPath,which in iOS corresponds to /var/mobile/Containers/Data/Application/<guid>/Documents. Save it for later plaback of such stream.</td>
249-
</tr>
250-
</table>
251-
252-
#### protected virtual void EventOnDownloadProgress(HISPlayerEventInfo eventInfo)
253-
Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_DOWNLOAD_PROGRESS** is triggered.
254-
This event occurs whenever a HLS stream is being downloaded, to retrieve the progress of such download.
255-
256-
<table>
257-
<tr>
258-
<th>Name</th>
259-
<th>Description</th>
260-
</tr>
261-
<tr>
262-
<td>param1</td>
263-
<td>The percentage of the download progress of a certain stream.</td>
264-
</tr>
265-
<tr>
266-
<td>stringInfo</td>
267-
<td>Title of the stream that is being downloaded. This title is settled by the user when calling the DownloadStream API.</td>
268-
</tr>
269-
</table>
270-
271235
#### protected virtual void ErrorInfo(HISPlayerErrorInfo errorInfo)
272236
Override this method to add custom logic when an error callback is triggered. Please, refer to the **HISPlayerError** list.
273237

@@ -400,12 +364,3 @@ Obtain the language of a certain audio of a certain player. The playerIndex is a
400364

401365
#### public void SelectAudioTrack(int playerIndex, int audioTrackIndex)
402366
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.
403-
404-
#### public void DownloadStream(string url, string videoTitle)
405-
Download an HLS Stream. Stream will be automatically saved on the Application.PersisentDataPath (/var/mobile/Containers/Data/Appligation/<guid>/Documents). If 2 downloaded contents have the same video title, the last one will overrite the first one. Avoid using non english characters, dots, slashes and any other kind of special character. The **url** refers to the URL to the HLS stream. **videoTitle** is the name of the saved stream and will allow to reproduce it once it has been downloaded.
406-
407-
#### public void DeleteDownloadStream(string videoTitle)
408-
Delete a specific downloaded HLS Stream. **videoTitle** is the name of the stream that will be deleted from the device.
409-
410-
#### public void DeleteAllDownloadedStreams()
411-
Delete all downloaded streams that have been stored in the Application.PersistentDataPath.

0 commit comments

Comments
 (0)