Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/183.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
azure Live事件,无IP或IPRange定义-android_Android_Azure_Live Streaming_Azure Media Services - Fatal编程技术网

azure Live事件,无IP或IPRange定义-android

azure Live事件,无IP或IPRange定义-android,android,azure,live-streaming,azure-media-services,Android,Azure,Live Streaming,Azure Media Services,我正在构建向服务器开放实时流的应用程序(云中的Azure媒体服务) 我使用了合适的SDK。 我正在跟踪链接 我需要知道是否有必要像示例中那样为liveEvent提供IP地址或IP范围 IPRange allAllowIPRange = new IPRange().withName("AllowAll").withAddress("0.0.0.0").withSubnetPrefixLength(0); List<IPRange> listIPR

我正在构建向服务器开放实时流的应用程序(云中的Azure媒体服务)
我使用了合适的SDK。 我正在跟踪链接
我需要知道是否有必要像示例中那样为liveEvent提供IP地址或IP范围

IPRange allAllowIPRange = new IPRange().withName("AllowAll").withAddress("0.0.0.0").withSubnetPrefixLength(0);
List<IPRange> listIPRanges = new ArrayList<>();
listIPRanges.add(allAllowIPRange);

// Create the LiveEvent input IP access control.
LiveEventInputAccessControl liveEventInputAccess = new LiveEventInputAccessControl();
liveEventInputAccess.withIp(new IPAccessControl().withAllow(listIPRanges));



   //live event instance 
   LiveEvent liveEvent = manager.liveEvents().define(liveEventName)
                        .withExistingMediaservice(config.getResourceGroup(), config.getAccountName())
                        .withAutoStart(true)
                        .withInput(new 
LiveEventInput().withStreamingProtocol(LiveEventInputProtocol.RTMP).withAccessControl(**liveEventInputAccess**))
                        .create();
IPRange allAllowIPRange=new IPRange()。带名称(“AllowAll”)。带地址(“0.0.0.0”)。带子网前缀长度(0);
List listIPRanges=新的ArrayList();
添加(allAllowIPRange);
//创建LiveEvent输入IP访问控制。
LiveEventInputAccessControl liveEventInputAccess=新的LiveEventInputAccessControl();
liveEventInputAccess.withIp(新的IPAccessControl().withAllow(listIPRanges));
//实时事件实例
LiveEvent LiveEvent=manager.liveEvents().define(liveEventName)
.withExistingMediaservice(config.getResourceGroup(),config.getAccountName())
.withAutoStart(真)
.withInput(新)
LiveEventInput()。具有流协议(LiveEventInputProtocol.RTMP)。具有访问控制(**liveEventInputAccess**))
.create();
问题:是否需要在
liveEvent
实例中定义和设置
liveEventInputAccess
实例

如果有必要,那么我如何在没有固定Ip地址的情况下做到这一点?随机

根据,我认为如果你不知道固定ip,你不需要设置ip限制

当您知道需要限制的IP范围时,也可以将其添加到门户中

根据,我认为如果你不知道固定ip,你不需要设置ip限制

当您知道需要限制的IP范围时,也可以将其添加到门户中


您的问题解决了吗?可以创建没有IP或IP范围的live event,因为我赋予客户端打开live event的能力,所以我只使用sdk,不直接在portalI中设置属性。我知道,我只告诉您何时使用限制IP。因为我没有代码。你的问题已经解决了吗?可以创建没有IP或IP范围的live event,因为我给了客户端打开live event的能力,所以我只使用sdk,不直接在portalI中设置属性。我知道,我只是告诉你何时使用限制IP。因为我没有代码。