상속: TrackMediaList
예제 #1
0
        public void updatePlayStateOnTrackItem(String _listId, TrackPlayState _playState, Int32 _itemIndex = -1)
        {
            ZoneTrackMediaList mediaList = (ZoneTrackMediaList)this.getList(_listId);

            if (mediaList == null)
            {
                return;
            }

            mediaList.updatePlayStateOnTrackItem(_playState, _itemIndex);
        }
예제 #2
0
        protected override UPNPMediaList createListObject(String _listId)
        {
            ZoneTrackMediaList mediaList = new ZoneTrackMediaList(_listId);
            Zone zone;

            mediaList.zoneUDN = _listId;
            zone             = Global.getZoneManager().getZone(mediaList.zoneUDN);
            zone.trackListId = mediaList.zoneUDN;
            zone.trackListCreated();
            return(mediaList);
        }
예제 #3
0
        public override void retrieveListFromAvTransportUri(String _listId, String _avTransportUri, String _avTransportUriMetaData)
        {
            base.retrieveListFromAvTransportUri(_listId, _avTransportUri, _avTransportUriMetaData);
            ZoneTrackMediaList mediaList        = (ZoneTrackMediaList)lists[_listId];
            String             currentPlayingId = this.getParameterFromAvTransportUri(_avTransportUri, "fii");

            if (!String.IsNullOrWhiteSpace(currentPlayingId))
            {
                mediaList.currentTrackIndexPlaying = Convert.ToInt32(currentPlayingId);
            }
            mediaList.containerInfoMetaData = _avTransportUriMetaData;
            mediaList.setListItemSelectedForPlaying();
        }
예제 #4
0
 protected override UPNPMediaList createListObject(String _listId)
 {
     ZoneTrackMediaList mediaList =  new ZoneTrackMediaList(_listId);
     Zone zone;
     mediaList.zoneUDN = _listId;
     zone = Global.getZoneManager().getZone(mediaList.zoneUDN);
     zone.trackListId = mediaList.zoneUDN;
     zone.trackListCreated();
     return mediaList;
 }
예제 #5
0
        public ZoneTrackMediaList getListForZone(String _zoneUdn)
        {
            ZoneTrackMediaList mediaList = (ZoneTrackMediaList)this.getList(_zoneUdn);

            return(mediaList);
        }