0

java

mProfile.setVideoQuality(StreamingProfile.VIDEO_QUALITY_HIGH1)
                    .setAudioQuality(StreamingProfile.AUDIO_QUALITY_MEDIUM2)
                    .setEncodingSizeLevel(StreamingProfile.VIDEO_ENCODING_HEIGHT_480)
                    .setEncoderRCMode(StreamingProfile.EncoderRCModes.QUALITY_PRIORITY)
                    .setPublishUrl("rtmp://pili-publish.live.xxx.cn/hxq-dt/test1?e=1497352779&token=YlCP_AxRRebBfrJIpzzNlm_jV0UTBBlaH6dVsL19:JpePyIG2bt7Ti7IGDRUZ6SemJlI=");

publishUrl这样设置有问题吗
打印信息

mmer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_1_apk.apk
06-13 19:31:42.148 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_2_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_2_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.154 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_2_apk.apk
06-13 19:31:42.185 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_3_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_3_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.186 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_3_apk.apk
06-13 19:31:42.225 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_4_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_4_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.226 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_4_apk.apk
06-13 19:31:42.268 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_5_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_5_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.275 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_5_apk.apk
06-13 19:31:42.320 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_6_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_6_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.322 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_6_apk.apk
06-13 19:31:42.359 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_7_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_7_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.373 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_7_apk.apk
06-13 19:31:42.440 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_8_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_8_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.441 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_8_apk.apk
06-13 19:31:42.495 12079-12079/com.summer.demo.summerhelperdemo W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm64 --instruction-set-features=smp,a53 --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=kryo --instruction-set-features=default --dex-file=/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_9_apk.apk --oat-file=/data/dalvik-cache/arm64/data@app@com.summer.demo.summerhelperdemo-2@split_lib_slice_9_apk.apk@classes.dex) because non-0 exit status
06-13 19:31:42.500 12079-12079/com.summer.demo.summerhelperdemo W/art: Fallback to original dex file with interpret-mode for /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_9_apk.apk
06-13 19:31:42.506 12079-12079/com.summer.demo.summerhelperdemo I/InstantRun: starting instant run server: is main process
06-13 19:31:42.673 12079-12079/com.summer.demo.summerhelperdemo W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
06-13 19:31:42.738 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:StreamingEnv:init
06-13 19:31:42.767 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: GlUtil:GL info, version:3, supports rg ext:true
06-13 19:31:42.767 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:StreamingEnv:init success !
06-13 19:31:42.798 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:created, AVCodecType = HW_AUDIO_CODEC
06-13 19:31:42.800 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-System:MediaStreamingManager:{"device_model":"XiaomiMI_5s","os_version":"os version:6.0.1, Android SDK_INT:23, SoC Hardware:qcom","sdk_version":"librtmp-1.0.2;PLDroidCameraStreaming-2.2.0","app_name":"com.summer.demo.summerhelperdemo","app_version":"1.0","gl_version":3}
06-13 19:31:42.801 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:prepare, camSetting = null, microphoneSetting = {"SampleRate":44100,"Channel":16,"BluetoothSCOEnabled":false,"AudioPtsOptimizeEnable":true}, wmSetting = null, profile = {"EncodingSizeLevel":1,"SendTimeout":3,"EncoderRCMode":"QUALITY_PRIORITY","FpsController":true,"AdjustBitrate":false,"AdaptiveBitrate":false,"VideoQuality":20,"AudioQuality":11}, previewAppearance = null
06-13 19:31:42.804 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Streaming:AudioEncoderConfig:sample:44100, bitrate:49152
06-13 19:31:42.806 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Encode:EncodingConfig:setStreamingProfile profile:{"EncodingSizeLevel":1,"SendTimeout":3,"EncoderRCMode":"QUALITY_PRIORITY","FpsController":true,"AdjustBitrate":false,"AdaptiveBitrate":false,"EncodingOrientation":"PORT","VideoQuality":20,"AudioQuality":11},stream:null,mEncodingSizeRatio:RATIO_16_9
06-13 19:31:42.806 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Encode:EncodingConfig:isEncodingLandscape:false
06-13 19:31:42.807 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Encode:EncodingConfig:setStreamingProfile mFormat=RTMP
06-13 19:31:42.822 12079-12079/com.summer.demo.summerhelperdemo E/PLDroidMediaStreaming: PLSONameHelper:Load error:dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.summer.demo.summerhelperdemo-2/base.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_dependencies_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_0_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_1_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_2_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_3_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_4_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_5_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_6_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_7_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_8_apk.apk", zip file "/data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.summer.demo.summerhelperdemo-2/lib/arm64, /data/app/com.summer.demo.summerhelperdemo-2/base.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.summer.demo.summerhelperdemo-2/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libpldroid_streaming_core.so"
06-13 19:31:42.825 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:startMicrophoneRecording isCaptureAudioFrameOnly = true
06-13 19:31:42.825 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Capture:AudioManager:startRecording +
06-13 19:31:42.826 12079-12079/com.summer.demo.summerhelperdemo I/hxq: at MainActivity.java(78) setStream: result:true
06-13 19:31:42.826 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:setStreamingStateListener true
06-13 19:31:42.865 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:StreamingEnv:init
06-13 19:31:42.865 12079-12079/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Interface:StreamingEnv:ignore since had been initialized!
06-13 19:31:42.865 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:created, AVCodecType = HW_AUDIO_CODEC
06-13 19:31:42.867 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-System:MediaStreamingManager:{"device_model":"XiaomiMI_5s","os_version":"os version:6.0.1, Android SDK_INT:23, SoC Hardware:qcom","sdk_version":"librtmp-1.0.2;PLDroidCameraStreaming-2.2.0","app_name":"com.summer.demo.summerhelperdemo","app_version":"1.0","gl_version":3}
06-13 19:31:42.867 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:prepare, camSetting = null, microphoneSetting = {"SampleRate":44100,"Channel":16,"BluetoothSCOEnabled":false,"AudioPtsOptimizeEnable":true}, wmSetting = null, profile = {"EncodingSizeLevel":1,"SendTimeout":3,"EncoderRCMode":"QUALITY_PRIORITY","FpsController":true,"AdjustBitrate":false,"AdaptiveBitrate":false,"VideoQuality":20,"AudioQuality":11}, previewAppearance = null
06-13 19:31:42.867 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Streaming:AudioEncoderConfig:sample:44100, bitrate:49152
06-13 19:31:42.868 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Encode:EncodingConfig:setStreamingProfile profile:{"EncodingSizeLevel":1,"SendTimeout":3,"EncoderRCMode":"QUALITY_PRIORITY","FpsController":true,"AdjustBitrate":false,"AdaptiveBitrate":false,"EncodingOrientation":"PORT","VideoQuality":20,"AudioQuality":11},stream:null,mEncodingSizeRatio:RATIO_16_9
06-13 19:31:42.868 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Encode:EncodingConfig:isEncodingLandscape:false
06-13 19:31:42.868 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Encode:EncodingConfig:setStreamingProfile mFormat=RTMP
06-13 19:31:42.868 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:startMicrophoneRecording isCaptureAudioFrameOnly = true
06-13 19:31:42.868 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Capture:AudioManager:startRecording +
06-13 19:31:42.870 12079-12079/com.summer.demo.summerhelperdemo I/hxq: at MainActivity.java(78) setStream: result:true
06-13 19:31:42.870 12079-12079/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Interface:MediaStreamingManager:setStreamingStateListener true
06-13 19:31:42.881 12079-12221/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Capture:AudioManager:startRecording -
06-13 19:31:42.884 12079-12224/com.summer.demo.summerhelperdemo E/AudioRecord: start() status -38
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Capture:AudioManager:startRecording -
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo I/PLDroidMediaStreaming: Pili-Streaming:MediaStreamingManager:notifyFirstAudioFrame: false
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.885 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0
06-13 19:31:42.886 12079-12224/com.summer.demo.summerhelperdemo W/PLDroidMediaStreaming: Pili-Capture:AudioManager:AudioRecord read audioDataLength: 0

1个回答

0

您好,您url的设置是没有问题的,看您的报错,PLSONameHelper:Load error 应该是SO的文件位置不对,加载失败导致的,您可以参考一下demo的SO文件的放置位置。

撰写答案