Пример #1
0
        private int Server_SetAVTransportURI(Platinum.Action action)
        {
            var uri  = action.GetArgumentValue("CurrentURI");
            var meta = action.GetArgumentValue("CurrentURIMetadata");

            avt.FindStateVariable("TransportState").ValueString = "STOPPED";

            avt.FindStateVariable("NumberOfTracks").ValueString = "";
            //avt.FindStateVariable("CurrentMediaDuration");
            avt.FindStateVariable("AVTransportURI").ValueString         = uri;
            avt.FindStateVariable("AVTransportURIMetadata").ValueString = meta;
            return(0);
        }
Пример #2
0
 private int Server_Stop(Platinum.Action action)
 {
     avt.FindStateVariable("TransportState").ValueString = "STOPPED";
     return(0);
 }
Пример #3
0
 private int Server_Seek(Platinum.Action action)
 {
     return(0);
 }
Пример #4
0
 private int Server_Play(Platinum.Action action)
 {
     avt.FindStateVariable("TransportState").ValueString = "PLAYING";
     return(0);
 }