Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

iOS - JWPlayer - Playlist - Selected Index - Play


Hi Team,

We are using JWPlaylistItem class to play the playlist files in JWplayer, And it is working fine as expected.

But we need a feature like if the user selects a video from the playlist the selected index (playlist item) has to play in the JWplayer.

We checked the documentation but we didn't see any method to achieve this feature. And also we checked with Android as well and we found a method onPlaylistItem(int index, PlaylistItem playlistItem) and it is working fine in Android.

Can you please let us know if there is any method in iOS to achieve this.

Thanks in advance.

6 Community Answers

Daniel Berger

JW Player Support Agent  
0 rated :

Hi,

Thank you for the feature request. The corresponding iOS API is onPlaylistItem. Here is a link to this method’s documentation: https://developer.jwplayer.com/sdk/ios/reference/Protocols/JWPlayerDelegate.html#//api/name/onPlaylistItem:

Please let me know if this was the information that you were seeking.

m...

User  
0 rated :

Hi Daniel,

Thanks for your reply and It worked for us.

I have another question, In JWPlayer we are loading the playlist and the playlist videos are playing in a sequence as expected. And Selecting any playlist file also playing fine. But we have the next button in JWPlayer playlist where do we get the notification or callback of NEXT button action. Can you please help us to fix this.

Daniel Berger

JW Player Support Agent  
0 rated :

I am glad to hear that. Can you please clarify your question? I am not sure what you mean by “But we have the next button in JWPlayer playlist where do we get the notification or callback of NEXT button action.”

Is your question interference to our onPlaylistItem delegate?
https://developer.jwplayer.com/sdk/ios/reference/Protocols/JWPlayerDelegate.html#//api/name/onPlaylistItem:

Martin

User  
0 rated :

Hi Daniel,

Thanks for the reply. it worked for us.

a...

User  
0 rated :

Hi Daniel,

Can you please let me know how to hide a Playlist overlay in JWPlayer in iOS SDK. If you want more clarity once we add files to Playlist, JWPlayer has an overlay list button in the top right corner and when we select the list button JWPlayer displays a preview of the files, We are not able to get the thumbnails in the preview. So please let us know how to Hide the overlay in Playlist and remove the overlay.

Thanks in advance.

Daniel Berger

JW Player Support Agent  
0 rated :

Sure. The skinning model in our iOS SDK is based on CSS. If you want to customize a skin, you would need to create a new CSS skin file and then implement it. Here is a link to our CSS Skinning Reference Guide as well as a code example for how to implement a custom skin:
https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/css-skinning/skins_reference/
http://qa.jwplayer.com.s3.amazonaws.com/~daniel/Custom_Skin.zip

This question has received the maximum number of answers.