com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager.<init>()方法的一些代码示例,展示了YoutubeAudioSourceManager.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoutubeAudioSourceManager.<init>()方法的具体详情如下:
包路径:com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioSourceManager
类名称:YoutubeAudioSourceManager
方法名:<init>

YoutubeAudioSourceManager.<init>介绍

[英]Create an instance with default settings.
[中]使用默认设置创建一个实例。

代码示例

代码示例来源:origin: FlareBot/FlareBot

@Override
  public AudioSourceManager newSourceManagerInstance() throws Exception {
    YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager();
    manager.setPlaylistPageCount(100);
    return manager;
  }
}

代码示例来源:origin: FlareBot/FlareBot

@Override
  public AudioSourceManager newSourceManagerInstance() throws Exception {
    YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager();
    manager.setPlaylistPageCount(100);
    return manager;
  }
}

代码示例来源:origin: FlareBot/FlareBot

@Override
  public AudioSourceManager newSourceManagerInstance() throws Exception {
    YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager();
    manager.setPlaylistPageCount(100);
    return manager;
  }
}

代码示例来源:origin: FlareBot/FlareBot

@Override
  public AudioSourceManager newSourceManagerInstance() throws Exception {
    YoutubeAudioSourceManager manager = new YoutubeAudioSourceManager();
    manager.setPlaylistPageCount(100);
    return manager;
  }
}

代码示例来源:origin: sedmelluq/lavaplayer

/**
 * Registers all built-in remote audio sources to the specified player manager. Local file audio source must be
 * registered separately.
 *
 * @param playerManager Player manager to register the source managers to
 * @param containerRegistry Media container registry to be used by any probing sources.
 */
public static void registerRemoteSources(AudioPlayerManager playerManager, MediaContainerRegistry containerRegistry) {
 playerManager.registerSourceManager(new YoutubeAudioSourceManager(true));
 playerManager.registerSourceManager(new SoundCloudAudioSourceManager());
 playerManager.registerSourceManager(new BandcampAudioSourceManager());
 playerManager.registerSourceManager(new VimeoAudioSourceManager());
 playerManager.registerSourceManager(new TwitchStreamAudioSourceManager());
 playerManager.registerSourceManager(new BeamAudioSourceManager());
 playerManager.registerSourceManager(new HttpAudioSourceManager());
}

代码示例来源:origin: avaire/avaire

public AudioPlayerManager registerSourceManagers(AudioPlayerManager manager) {
  manager.registerSourceManager(new PlaylistImportSourceManager());
  YoutubeAudioSourceManager youtubeAudioSourceManager = new YoutubeAudioSourceManager();
  youtubeAudioSourceManager.configureRequests(config -> RequestConfig.copy(config)
    .setCookieSpec(CookieSpecs.IGNORE_COOKIES)
    .build());
  manager.registerSourceManager(youtubeAudioSourceManager);
  manager.registerSourceManager(new SoundCloudAudioSourceManager());
  manager.registerSourceManager(new TwitchStreamAudioSourceManager());
  manager.registerSourceManager(new BandcampAudioSourceManager());
  manager.registerSourceManager(new VimeoAudioSourceManager());
  manager.registerSourceManager(new BeamAudioSourceManager());
  manager.registerSourceManager(new LocalAudioSourceManager());
  manager.registerSourceManager(new HttpAudioSourceManager());
  return manager;
}

代码示例来源:origin: dabbotorg/java-music-bot

YoutubeAudioSourceManager youtubeAudioSourceManager = new YoutubeAudioSourceManager();
if (bot.getConfigs().config.patreon) {
  youtubeAudioSourceManager.setPlaylistPageCount(25);

相关文章