-
Notifications
You must be signed in to change notification settings - Fork 65
- Connect Android device to PC
- Capture logs: adb logcat -v time > 1.txt
conf.setDecodingType( 0 ); - uncheck “Video decoding acceleration”
conf.setSynchroEnable( 0 ); - uncheck “A/V sync”
conf.setDecoderLatency( 1 ); - check “Low latency video decoder”
conf.setNumberOfCPUCores( 0 ); - not available in UI
conf.setConnectionBufferingType(0); Buffering on start only
conf.setConnectionDetectionTime( 1000 ); - “ProbeTime”
conf.setConnectionBufferingTime( 0 ); - “Buffering on start”, this is not available in UI of Network Player (Low Latency).
Minimal package size is 10 Mbytes for 4 platfroms: armeabi, armeabi-v7a, armeabi-v7a-noneon, x86
There can be various configurations:
- RTSP
Decoders: aac,adpcm_ima_smjpeg,mjpeg,aac_latm,g723_1, mjpegb,adpcm_g722,g729,pcm_alaw,adpcm_g726,h264,pcm_mulaw,adpcm_g726le
Muxers: mov,mp4
Protocols: rtsp,http,srtp,udp,rtp,tcp,sdp
- Audio only
Decoders: All audio decoders
Network protocols: All network protocols
Add following in build.gradle script:
productFlavors {
armv7_armeabi_x86 {
ndk
{ abiFilter "armeabi-v7a" abiFilter "armeabi" abiFilter "x86" }
}
For example video resolution is 1920x1080, View size is 1280x720.
Picture is in the center of the screen, only part of the picture is presented.
setAspectRatioMoveModeX(50); // 50% center of screen
setAspectRatioMoveModeY(50); // 50% center of screen
player.getConfig().setAspectRatioZoomModePercent(100);
Picture is in the center of the screen, ~all picture is presented.
setAspectRatioMoveModeX(50); // 50% center of screen
setAspectRatioMoveModeY(50); // 50% center of screen
player.getConfig().setAspectRatioZoomModePercent(1280*100/1920);
Picture is moved to the left from the center and only part of the picture is presented.
setAspectRatioMoveModeX(50); // 40% Move to Left
setAspectRatioMoveModeY(50); // 50% center of screen
player.getConfig().setAspectRatioZoomModePercent(100);
Picture is moved on top and only part of the picture is presented.
setAspectRatioMoveModeX(50);
setAspectRatioMoveModeY(40);
player.getConfig().setAspectRatioZoomModePercent(100);
player.getConfig().setAspectRatioMode(1);
UpdateView();
player.getConfig().setAspectRatioMoveModeX(50); // 50% center of the screen
player.getConfig().setAspectRatioMoveModeY(50); // 50% center of the screen
player.getConfig().setAspectRatioZoomModePercent(25);// 100% is original size of output video.
player.getConfig().setAspectRatioMode(5); // Zoom and move mode
player. UpdateView();