Open zia-limemedia opened 6 years ago
@zia-limemedia What does upd mean? I do not really get it
Or you mean you need the latest version of ijkplayer so files. the version 0.8.8?
Hi, thanks for writing back. Url will be like this. Udp://192.168.0.10:1234 its local streamer. Its was working before but with new build it stops working. Last time you recompiled to make it work. Thanks
@zia-limemedia git checkout ijk-default-v0.7.6 Branch ijk-default-v0.7.6 has more support
compile 'com.nineoldandroids:library:2.4.0' compile 'tv.danmaku.ijk.media:ijkplayer-java:0.7.6' compile 'tv.danmaku.ijk.media:ijkplayer-exo:0.8.3'
Same Branch. and its not playing. my exciting player stop playing and i downloaded new code from master branch and its not working as well. I think last time you compiled again and it was working for udp even quality was low but its playing. kindly can you recompile with udp flag and i will update the gradual file. Thanks
@zia-limemedia You can temporarily "git reflog" to the version that you think works well. Because I plan to compile some new versions later. it takes about 2 days because of some things
About udp I haven't tested it, and some people report that ijkplayer doesn't work well.
Thank you . i can wait for two days. My code is already in placed and everything working fine. just need to remove this glitch and app is good to go. meanwhile player is playing the video with jerking sometimes.
@zia-limemedia
Hi,test new branch
Download the good JDK extract to /home/username/Dev/App path (where the user name is dsiner). After decompression, you need to configure environment variables for the JDK, right-click, open the terminal,Type the command on the command line:
sudo gedit ~/.bashrc
Add the following to the bashrc file:
export JAVA_HOME=/home/dsiner/Dev/App/jdk1.8.0_131
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
The downloaded SDK is also extracted to the /home/username/Dev/App path. After decompression, continue to configure the SDK environment variables:
export ANDROID_SDK=/home/dsiner/Dev/App/android-sdk-linux
export PATH=${PATH}:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools
Download the NDK to extract the /home/username/Dev/App path. After decompression, configure the NDK configuration environment variable:
export ANDROID_NDK=/home/dsiner/Dev/App/android-ndk-r13
export PATH=$PATH:ANDROID_NDK
source /etc/profile
Install git and yasm and type in the terminal:
sudo apt-get install git
sudo apt-get install yasm
Clone ijkplayer repertory
cd /home/dsiner/Dev/App
git clone https://github.com/Bilibili/ijkplayer.git
cd /home/dsiner/Dev/App/ijkplayer
git checkout -B k0.7.6
Switch to the config folder and modify the module-lite.sh file
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=rtp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=tcp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=udp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=rtsp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=sdp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=rtp"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-demuxer=udp"
ps: The above configuration is to support rtsp and udp. Where rtp is changed from disable to enable. If version is greater than 0.8.2 and does not have this configuration, you need to add to avoid compiling error:
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-linux-perf"
Then delete the module.sh in the config folder and recreate the link
cd /home/dsiner/Dev/App/ijkplayer/config
rm module.sh
ln -s module-lite module.sh
ps: module-lite.sh(If you prefer less codec/format for smaller binary size (by default)) module-default.sh(If you prefer more codec/format) module-lite-hevc.sh(If you prefer less codec/format for smaller binary size (include hevc function))
cd /home/dsiner/Dev/App/ijkplayer
./init-android-openssl.sh
./init-android.sh
ps: The initialization process seems to be mainly download ffmpeg code, the code package is relatively large.
Complete the compilation
cd /home/dsiner/Dev/App/ijkplayer/android/contrib
./compile-openssl.sh clean
./compile-ffmpeg.sh clean
./compile-openssl.sh all
./compile-ffmpeg.sh all
cd /home/dsiner/Dev/App/ijkplayer/android
./compile-ijk.sh all
The rtsp connection mode is set in the Android project:tcp (Optional)
ijkMediaPlayer.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "rtsp_transport", "tcp");
new version is also not working and now its playing with jerking. :(
@zia-limemedia ,hi
please just tell me yes or no.
@zia-limemedia Can you provide a demo for me to test?
Sorry for late reply. I test the new version and still its not working. i am using the same demo project that you build for v.8. Best Zia
UPD stop working with new version. Can please recompile again. Thanks