예제 #1
0
 public PersistentBeamPlaylist(PimpSession session, PimpWebSocket webSocket, BeamPlayer player)
     : base(session, webSocket, player)
 {
     fileName                = session.Username + ".json";
     webSocket.Welcomed     += webSocket_Welcomed;
     webSocket.Disconnected += PlayerDisconnected;
 }
예제 #2
0
        public override async Task Upload(MusicItem song, string resource, PimpSession destSession)
        {
            var lib = await FindLibrary(song.Path);

            if (lib != null)
            {
                await lib.Upload(song, resource, destSession);
            }
        }
예제 #3
0
        public BeamPlayer(PimpSession session, PimpWebSocket webSocket, CoverService coverService)
            : base(session, webSocket)
        {
            IsSkipAndSeekSupported = false;

            Volume = 100;
            IsMute = false;

            webSocket.Welcomed     += webSocket_Welcomed;
            webSocket.Disconnected += webSocket_Disconnected;

            TrackChanged += BeamPlayer_TrackChanged;
        }
예제 #4
0
 public override Task Upload(MusicItem song, string resource, PimpSession destSession)
 {
     return(destSession.Upload(song, resource));
 }
예제 #5
0
 public override Task Upload(MusicItem song, string resource, PimpSession destSession)
 {
     MessagingService.Instance.Send("Sorry, MusicBeaming is not supported with Subsonic as music source. The music source must be a MusicPimp server or your local device.");
     return(AsyncTasks.Noop());
 }
예제 #6
0
 public BasePlayer NewBeamPlayer(PimpSession session, PimpWebSocket socket)
 {
     return(impl.NewBeamPlayer(session, socket));
 }
예제 #7
0
 public abstract Task Upload(MusicItem song, string resource, PimpSession destSession);
예제 #8
0
 public PhoneBeamPlayer(PimpSession session, PimpWebSocket webSocket)
     : base(session, webSocket, PhoneCoverService.Instance)
 {
     BeamPlaylist = new PhoneBeamPlaylist(session, webSocket, this);
     Init();
 }
예제 #9
0
 public PimpPlayer(PimpSession s, Func <MusicEndpoint> musicSource, PimpWebSocket webSocket)
     : this(s, webSocket, new PimpPlaylist(s, musicSource, webSocket))
 {
 }
예제 #10
0
 public StoreBeamPlaylist(PimpSession session, PimpWebSocket webSocket, BeamPlayer player)
     : base(session, webSocket, player)
 {
     roaming = new RoamingSettings();
 }
예제 #11
0
 public BeamPlaylist(PimpSession session, PimpWebSocket webSocket, BeamPlayer player)
     : base(webSocket)
 {
     this.session = session;
     this.player  = player;
 }
예제 #12
0
 public PhoneBeamPlaylist(PimpSession session, PimpWebSocket webSocket, BeamPlayer player)
     : base(session, webSocket, player)
 {
 }