当前位置: 首页>>代码示例>>Java>>正文


Java StartFlags类代码示例

本文整理汇总了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;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:26,代码来源:IngestServerTester.java

示例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;
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:25,代码来源:IngestServerTester.java

示例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;
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:40,代码来源:BroadcastController.java

示例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;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:43,代码来源:BroadcastController.java


注:本文中的tv.twitch.broadcast.StartFlags类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。