fyhertz / libstreaming-examples

Some examples of how to use libstreaming
283 stars 231 forks source link

V/MediaCodecInputStream﹕ No buffer available... with Glass and MODE_MEDIACODEC_API_2 #23

Closed Ali1 closed 9 years ago

Ali1 commented 9 years ago

Good evening. Anyone have any idea why I'm getting the error V/MediaCodecInputStream﹕ No buffer available... in logcat on my Glass app? Thanks

    mSession = SessionBuilder.getInstance()
            .setContext(getApplicationContext())
            .setAudioEncoder(SessionBuilder.AUDIO_AAC)
            .setAudioQuality(new AudioQuality(8000,16000))
            .setVideoEncoder(SessionBuilder.VIDEO_H264)
         //   .setVideoQuality(new VideoQuality(320, 240, 15, 500000)) //only need if you want to change the resolution from default
            .setSurfaceView(mSurfaceView).setPreviewOrientation(0)
            .setCallback(this).build();

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