libstreaming
libstreaming copied to clipboard
Audio Problem
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
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.
Just Change msession.setAudioEncoder(SessionBuilder.None) to msession.setAudioEncoder(SessionBuilder.AUDIO_AAC)
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
Check with your manifest file. for permissions
what is its sdk version? if it was over than 23, you must request permission
Change these audio.setDestinationPorts(5008); in SessionBuilder.java
Try
mSession.getVideoTrack().setStreamingMethod(MediaStream.MODE_MEDIACODEC_API_2);
It worked for me