blueberryCoder / LiveStream

一个实现直播的解决方案,视频采用H264编码、音频采用ACC编码、传输采用Rtmp协议
http://blog.csdn.net/a992036795/article/details/64460049
365 stars 109 forks source link

能开源更新下sdk里c++代码吗 #9

Closed ligoofing closed 1 year ago

ligoofing commented 7 years ago

你好,你开源的c++的代码是不是和提供的sdk里的不一样,gradle配置sdk里可以正常推流到服务器,配置为代码编译,不用jcenter就不能推流到服务器。能开源更新下sdk里c++代码吗

blueberryCoder commented 7 years ago

代码我全部提交了的。

ligoofing commented 7 years ago

但是我使用下面配置 ,不可以推流到服务器(youtube直播)
compile project(':rtmplive') 使用下面配置,可以推流到服务器(youtube直播)
compile 'com.blueberry:rtmplive:0.1.0'

q46321 commented 6 years ago

直接 compile project(':rtmplive') 编译有问题,附上log

In file included from /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:5: /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/rtmp.h:17:10: warning: non-portable path to file '"Rtmp.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]

include "rtmp.h"

       ^~~~~~~~
       "Rtmp.h"

/Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:35:41: error: use of undeclared identifier 'malloc' RTMPPacket packet = (RTMPPacket ) malloc(RTMP_HEAD_SIZE + 1024); ^ /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:84:5: error: use of undeclared identifier 'free' free(packet); ^ /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:97:13: warning: expression result unused [-Wunused-value] len - 3;


  /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:102:41: error: use of undeclared identifier 'malloc'
      RTMPPacket *packet = (RTMPPacket *) malloc(RTMP_HEAD_SIZE + len + 9);
                                          ^
  /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:141:5: error: use of undeclared identifier 'free'
      free(packet);
      ^
  /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:150:29: error: use of undeclared identifier 'malloc'
      packet = (RTMPPacket *) malloc(RTMP_HEAD_SIZE + len + 2);
                              ^
  /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:171:5: error: use of undeclared identifier 'free'
      free(packet);
      ^
  /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:182:33: error: use of undeclared identifier 'malloc'
          packet = (RTMPPacket *) malloc(RTMP_HEAD_SIZE + len + 2);
                                  ^
  /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/Rtmp.cpp:203:9: error: use of undeclared identifier 'free'
          free(packet);
          ^
  2 warnings and 8 errors generated.
  In file included from /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/publish_jni.cpp:3:
  /Users/michael/Android/github/LiveStream-master/AndroidPublisher/rtmplive/src/main/cpp/rtmp.h:17:10: warning: non-portable path to file '"Rtmp.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
  #include "rtmp.h"
           ^~~~~~~~
           "Rtmp.h"
  1 warning generated.
  ninja: build stopped: subcommand failed.

希望得到您的解答,感谢