本文整理汇总了Java中tv.twitch.broadcast.StartFlags类的典型用法代码示例。如果您正苦于以下问题:Java StartFlags类的具体用法?Java StartFlags怎么用?Java StartFlags使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
StartFlags类属于tv.twitch.broadcast包,在下文中一共展示了StartFlags类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_153036_a
import tv.twitch.broadcast.StartFlags; //导入依赖的package包/类
protected boolean func_153036_a(IngestServer p_153036_1_)
{
this.field_153056_n = true;
this.field_153050_h = 0L;
this.field_153051_i = RTMPState.Idle;
this.field_153059_q = p_153036_1_;
this.field_176008_y = true;
this.func_153034_a(IngestServerTester.IngestTestState.ConnectingToServer);
ErrorCode errorcode = this.field_153045_c.start(this.field_153052_j, this.audioParameters, p_153036_1_, StartFlags.TTV_Start_BandwidthTest, true);
if (ErrorCode.failed(errorcode))
{
this.field_176008_y = false;
this.field_153056_n = false;
this.func_153034_a(IngestServerTester.IngestTestState.DoneTestingServer);
return false;
}
else
{
this.field_153064_v = this.field_153050_h;
p_153036_1_.bitrateKbps = 0.0F;
this.field_153063_u = 0;
return true;
}
}
示例2: func_153036_a
import tv.twitch.broadcast.StartFlags; //导入依赖的package包/类
protected boolean func_153036_a(IngestServer p_153036_1_)
{
this.field_153056_n = true;
this.field_153050_h = 0L;
this.field_153051_i = RTMPState.Idle;
this.field_153059_q = p_153036_1_;
this.func_153034_a(IngestServerTester.IngestTestState.ConnectingToServer);
this.field_153067_y = true;
ErrorCode errorcode = this.field_153045_c.start(this.field_153052_j, this.field_153053_k, p_153036_1_, StartFlags.TTV_Start_BandwidthTest, true);
if (ErrorCode.failed(errorcode))
{
this.field_153056_n = false;
this.func_153034_a(IngestServerTester.IngestTestState.DoneTestingServer);
return false;
}
else
{
this.field_153064_v = this.field_153050_h;
p_153036_1_.bitrateKbps = 0.0F;
this.field_153063_u = 0;
return true;
}
}
示例3: func_152836_a
import tv.twitch.broadcast.StartFlags; //导入依赖的package包/类
public boolean func_152836_a(VideoParams p_152836_1_)
{
if (p_152836_1_ != null && this.func_152857_n())
{
this.field_152881_q = p_152836_1_.clone();
this.field_152882_r = new AudioParams();
this.field_152882_r.audioEnabled = this.field_152871_g && this.func_152848_y();
if (!this.func_152823_L())
{
this.field_152881_q = null;
this.field_152882_r = null;
return false;
}
else
{
ErrorCode errorcode = this.field_152873_i.start(p_152836_1_, this.field_152882_r, this.field_152884_t, StartFlags.None, true);
if (ErrorCode.failed(errorcode))
{
this.func_152831_M();
String s = ErrorCode.getString(errorcode);
this.func_152820_d(String.format("Error while starting to broadcast: %s", new Object[] {s}));
this.field_152881_q = null;
this.field_152882_r = null;
return false;
}
else
{
this.func_152827_a(BroadcastController.BroadcastState.Starting);
return true;
}
}
}
else
{
return false;
}
}
示例4: func_152836_a
import tv.twitch.broadcast.StartFlags; //导入依赖的package包/类
public boolean func_152836_a(VideoParams p_152836_1_)
{
if (p_152836_1_ != null && this.isReadyToBroadcast())
{
this.videoParamaters = p_152836_1_.clone();
this.audioParamaters = new AudioParams();
this.audioParamaters.audioEnabled = this.field_152871_g && this.func_152848_y();
this.audioParamaters.enableMicCapture = this.audioParamaters.audioEnabled;
this.audioParamaters.enablePlaybackCapture = this.audioParamaters.audioEnabled;
this.audioParamaters.enablePassthroughAudio = false;
if (!this.func_152823_L())
{
this.videoParamaters = null;
this.audioParamaters = null;
return false;
}
else
{
ErrorCode errorcode = this.field_152873_i.start(p_152836_1_, this.audioParamaters, this.field_152884_t, StartFlags.None, true);
if (ErrorCode.failed(errorcode))
{
this.func_152831_M();
String s = ErrorCode.getString(errorcode);
this.func_152820_d(String.format("Error while starting to broadcast: %s", new Object[] {s}));
this.videoParamaters = null;
this.audioParamaters = null;
return false;
}
else
{
this.func_152827_a(BroadcastController.BroadcastState.Starting);
return true;
}
}
}
else
{
return false;
}
}