Comments (3)
但是我使用下面配置 ,不可以推流到服务器(youtube直播)
compile project(':rtmplive')
使用下面配置,可以推流到服务器(youtube直播)
compile 'com.blueberry:rtmplive:0.1.0'
from livestream.
代码我全部提交了的。
from livestream.
直接 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.
希望得到您的解答,感谢
from livestream.
Related Issues (20)
- 请问jcenter和开源代码不一样吗,我使用有不同的结果 HOT 1
- width应该如何设置 HOT 3
- publisher在小米2S上闪退在华为P8上只能推送一帧 HOT 1
- 问一下,第二次再推流的时候就没反应了 HOT 1
- 推流的地址设置后不能更换,不支持设置只推音频或视频 HOT 4
- 大哥,这个怎么导入到AS里面去运行啊 HOT 4
- 大神您好,能提供编译成librtmp.so 的源码麽?还有polarssl怎么加载的?谢谢
- 播放端看到的视频默认是横屏的,不能自动更改
- H264格式视频流推流 HOT 1
- 点击开始之后 点击结束就会报错
- com.blueberry.player E/IJKMEDIA: Connection to tcp://192.168.11.146:5555 failed: Connection refused
- 大神 帮忙看下 是什么问题引起的 非常感谢
- 推流不成功,没有提示,不知道怎么改
- 大神请问有遇到播放延迟10+秒的问题吗?我用nginx搭建的服务器
- 有没有64位的so库 HOT 2
- 编译报错
- CMake Error: Could not create named generator Android Gradle - Ninja HOT 1
- so库找不到问题 HOT 1
- rtmp文件夹里面的【rtmp/lib/armeabi/librtmp.so】是否可以编译成x86等其他格式so HOT 2
- 适配高通COLOR_FormatYUV420SemiPlanar,NV21转NV12后,画面黑白,有绿影 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livestream.