请选择 进入手机版 | 继续访问电脑版
查看: 861|回复: 1

iOS直播播放器初始化失败

[复制链接]

7

主题

11

帖子

55

积分

爬云者

Rank: 2

积分
55
发表于 2018-7-31 18:06:53 | 显示全部楼层 |阅读模式
if (!_player) {

        NSError *error;
        _player = [[NELivePlayerController alloc] initWithContentURL:[NSURL URLWithString:rtmpUrl] error:&error];
        if (error) {
            NSLog(@"播放器初始化失败,ERROR:%@", error.localizedDescription);
            return;
        }

    }
    [_player setBufferStrategy:NELPLowDelay];
    [_player setPlaybackTimeout:10 * 1000];
    [_player setVolume:1.0];
    [_player setPauseInBackground:NO];

    [_player prepareToPlay];

控制台日志只有以下的内容,最后都是打印的定位地址,请问这是哪里有问题?
[INFO]  [NELivePlayerController][line 188] -[NELivePlayerController initWithContentURL:error:] [User Call]: aUrl:[rtmp://v7d369f20.live.126.net/live/860f307872b34e6c805f2f3f3dc26bc5]
2018-07-31 17:59:09.052559+0800 xiaotiantian[624:216292] rtmp
[INFO]  [NELivePlayerController][line 305] -[NELivePlayerController initWithContentURL:needConfigAudioSession:withOptions:error:] [15bd7dec0] SDK版本:[v1.8.0-ios]
[INFO]  [NELivePlayerController][line 306] -[NELivePlayerController initWithContentURL:needConfigAudioSession:withOptions:error:] [15bd7dec0] 机器型号:[iPhone 6s (A1633/A1688/A1691/A1700)]
[INFO]  [NELivePlayerController][line 307] -[NELivePlayerController initWithContentURL:needConfigAudioSession:withOptions:error:] [15bd7dec0] 系统版本:[11.4]
[INFO]  [NELivePlayerController][line 308] -[NELivePlayerController initWithContentURL:needConfigAudioSession:withOptions:error:] [15bd7dec0] 设备ID:[C8AC6945-3B7A-4EDF-B22A-D745017BEA98]
[INFO]  [NELivePlayerController][line 310] -[NELivePlayerController initWithContentURL:needConfigAudioSession:withOptions:error:] [15bd7dec0] 支持H265: [Y]
[INFO]  [NELivePlayerCore][line 1240] void media_player_log_callback(int, char *, char *) [ijk] nelp_create()

[INFO]  [NELivePlayerCore][line 1240] void media_player_log_callback(int, char *, char *) [ijk] ffp create, av_version_info: 65a4150

[INFO]  [NELivePlayerCore][line 1240] void media_player_log_callback(int, char *, char *) [ijk] nelp_set_log_level(4)

[INFO]  [NELivePlayerNGBUrl][line 77] -[NELivePlayerNGBUrl requestGslbConfigWithUrl:complete:]_block_invoke --- 缓存中获取结果
[INFO]  [NELivePlayerController][line 1418] -[NELivePlayerController doStartGslb:]_block_invoke 获取的 gslb info:[{
    pullUrls =     (
                {
            cdnType = CNC;
            priority = "1.5";
            resolved = 1;
            url = "rtmp://115.231.22.23/live/860f307872b34e6c805f2f3f3dc26bc5?wsiphost=ipdb&wsHost=v7d369f20.live.126.net";
        },
                {
            cdnType = dnion;
            priority = 1;
            resolved = 1;
            url = "rtmp://115.231.128.205/vdl7d369f20.live.126.net/live/860f307872b34e6c805f2f3f3dc26bc5";
        }
    );
    pushType = 1;
    requestId = "b4154eee-94a6-11e8-9956-fa163eb012d2";
    sdkParasRet =     {
        code = 200;
        ret =         {
            inBlackList = "0(NSNull)";
            rules = "0(NSNull)";
        };
    };
    time = 1533030434342;
}]
[INFO][IJKSDLGLView][line 170] -[IJKSDLGLView setupGL] OK setup GL
[INFO][NELivePlayerCore][line 1240] void media_player_log_callback(int, char *, char *) [ijk] nelp_set_release_callback(0x103ebad00)
[INFO][NELivePlayerCore][line 1240] void media_player_log_callback(int, char *, char *) [ijk] nelp_set_format_callback()=void
[INFO]NELivePlayerController][line 400] -[NELivePlayerController initWithContentURL:needConfigAudioSession:withOptions:error:] [15bd7dec0] begin create: 31004847, end create: 31004855 mCreatePlayerDuration = 8
[INFO] [NMCLocationManager][line 76] -[NMCLocationManager needUseLocation] [NMCLocationManager authorizationStatus] = 4
2018-07-31 17:59:09.449041+0800 xiaotiantian[624:199962] XTTGroupChatController come
[INFO][NELPSystemAction][line 334] -[NELPSystemAction locationResult:] [5835841216][Player sdk] 经纬度:[120.347847:30.322769], [中国], [浙江][杭州][江干区]街道

回复

使用道具 举报

6

主题

123

帖子

598

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
598
发表于 2018-8-1 15:06:05 | 显示全部楼层
日志没有体现出error的信息。

标题:iOS播放器提示初始化失败,怎么处理
链接:http://faq.netease.im/#KB0224
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表