Skip to content

Commit 64f1c4f

Browse files
authored
Update playing-ads.md
1 parent 70cad51 commit 64f1c4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

playing-ads.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ Override this method to add custom logic when **HISPlayerEvent.HISPLAYER_EVENT_I
268268

269269
### Non-virtual Functions
270270

271-
#### protected float GetAdDuration(int playerIndex)
271+
#### float GetAdDuration(int playerIndex)
272272
Get the duration of a certain advertisement in milliseconds (ms). 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.
273273

274-
#### protected float GetAdRemainingTime(int playerIndex)
274+
#### float GetAdRemainingTime(int playerIndex)
275275
Get the remaining time of a certain advertisement in milliseconds (ms). 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.
276276

277-
#### protected float GetAdCurrentTime(int playerIndex)
277+
#### float GetAdCurrentTime(int playerIndex)
278278
Get the current time of a certain advertisement in milliseconds (ms). 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.
279279

280-
#### protected void ChangeVideoContent(int playerIndex, string url, int resumePosition = 0, AdsProperties ads = null)
280+
#### void ChangeVideoContent(int playerIndex, string url, int resumePosition = 0, AdsProperties ads = null)
281281
Change the video’s url 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. The **urlIndex** is associated with the index of the element in the list of urls. The **resumePosition** is time position in milliseconds (ms) where the new content is starting the playback, default value is 0. The **AdsProperties** is an ads properties to use when loading the new content, default value is null
282282

0 commit comments

Comments
 (0)