libstreaming icon indicating copy to clipboard operation
libstreaming copied to clipboard

Audio Problem

Open VasanthhV opened this issue 8 years ago • 7 comments

While Streaming My video. I can able to View Video Alone .There is No Audio WHat ll be the issue ? and can anybody Suggest me a Solution

VasanthhV avatar Jun 09 '16 07:06 VasanthhV

I am facing the same problem. The video gets recorded properly but there is no sound. Have you found the solution for it ? If yes, then please share.

shelarsuhas avatar Aug 16 '16 13:08 shelarsuhas

Just Change msession.setAudioEncoder(SessionBuilder.None) to msession.setAudioEncoder(SessionBuilder.AUDIO_AAC)

VasanthhV avatar Aug 17 '16 06:08 VasanthhV

mSession = SessionBuilder.getInstance() .setContext(getApplicationContext()) .setAudioEncoder(SessionBuilder.AUDIO_AAC) .setAudioQuality(new AudioQuality(8000,16000)) .setVideoEncoder(SessionBuilder.VIDEO_H264) .setSurfaceView(mSurfaceView) .setPreviewOrientation(0) .setCallback(this) .build();

I still didn't get the audio on this stream

shelarsuhas avatar Aug 17 '16 07:08 shelarsuhas

Check with your manifest file. for permissions

VasanthhV avatar Aug 22 '16 04:08 VasanthhV

what is its sdk version? if it was over than 23, you must request permission

mobiletech2100 avatar Nov 23 '16 19:11 mobiletech2100

Change these audio.setDestinationPorts(5008); in SessionBuilder.java

Ilgizzon avatar Apr 02 '17 13:04 Ilgizzon

Try

mSession.getVideoTrack().setStreamingMethod(MediaStream.MODE_MEDIACODEC_API_2);

It worked for me

umer0586 avatar Nov 07 '18 10:11 umer0586