Class MediaPlayerControl
- java.lang.Object
-
- aero.panasonic.inflight.services.pairing.v1.MediaPlayerControl
-
public class MediaPlayerControl extends java.lang.ObjectThe MediaPlayerControl class allows the seatback monitor to listen for media player messages.
The
MediaPlayerControl.MediaPlayerControlListeneris called when a media play message is received.sendNowplaying(java.util.List<aero.panasonic.inflight.services.pairing.v1.model.SeatMediaPlayerInfo>)sends information, such as content type and media URI, for media that is currently playing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMediaPlayerControl.MediaPlayerControlListenerInvokes a callback when a media play message is received.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendNowplaying(java.util.List<SeatMediaPlayerInfo> playerInfoList)Sends information on the currently playing media to the paired PED (personal electronic device).voidsetMediaPlayerControlListener(MediaPlayerControl.MediaPlayerControlListener listener)Sets callback to be invoked when a message is received to play media.
-
-
-
Method Detail
-
sendNowplaying
public void sendNowplaying(java.util.List<SeatMediaPlayerInfo> playerInfoList)
Sends information on the currently playing media to the paired PED (personal electronic device).
On receiving this message, the PED can update the playing information, such as content type and media URI.
- Parameters:
playerInfoList-SeatMediaPlayerInfoProvides media information, such as content type and media URI.
-
setMediaPlayerControlListener
public void setMediaPlayerControlListener(MediaPlayerControl.MediaPlayerControlListener listener)
Sets callback to be invoked when a message is received to play media.- Parameters:
listener-MediaPlayerControl.MediaPlayerControlListenerCallback invoked when play media message is received.
-
-