public async Task <bool> PlayMusic0(string key, string fileName, string musicKey = null, double volume = 1, bool isRepeat = false, string musicAddress = null) { var musicPathBase = CommonConfigHelper.MusicBasePath; musicPathBase = @"C:\Program Files\StartGateServer\TLAuto.Machine\" + key + @"\MachinePlugins\Music"; return(await SendWcfCommandPluginsHelper.InvokerMusic(key + (musicKey.IsNullOrEmpty() ? "" : musicKey), Path.Combine(musicPathBase, fileName), volume, isRepeat, musicAddress ?? MusicItems[0].ServiceAddress)); }
public async Task <bool> PauseMusic0(string key, string musicKey = null, string musicAddress = null) { return(await SendWcfCommandPluginsHelper.InvokerPauseMusic(key + (musicKey.IsNullOrEmpty() ? "" : musicKey), musicAddress ?? MusicItems[0].ServiceAddress)); }
public async Task PlayTextMusicFromFirstItem(string text) { await SendWcfCommandPluginsHelper.InvokerTextToMusic(text, MusicItems[0].ServiceAddress); OnNotification(new NotificationEventArgs(text)); }