INDExOS / media-for-mobile

Media for Mobile
Other
456 stars 176 forks source link

CameraStreamerActivity returns unsupported operation exception after start streaming #43

Open Meamo opened 8 years ago

Meamo commented 8 years ago

Hello there, I realize that the samples didn't include the camerastreameractivity. However, all its files are already present. So I just added the activity to the app and added the internet permission in the mainfest- which was absent. Now when I start streaming I get unsupported operation exception.

Here is the log: 07-06 14:21:53.168 29575-29575/org.m4m.samples I/ACodec: [] Now uninitialized 07-06 14:21:53.168 29575-30653/org.m4m.samples I/OMXClient: Using client-side OMX mux. 07-06 14:21:53.178 29575-30653/org.m4m.samples I/ACodec: [OMX.Intel.VideoEncoder.AVC] Now Loaded 07-06 14:21:53.178 29575-29575/org.m4m.samples I/ACodec: [] Now uninitialized 07-06 14:21:53.188 29575-30656/org.m4m.samples I/OMXClient: Using client-side OMX mux. 07-06 14:21:53.198 29575-30656/org.m4m.samples I/ACodec: [OMX.SEC.aac.enc] Now Loaded 07-06 14:21:53.218 29575-29575/org.m4m.samples D/CameraStreamerActivity: Camera ERROR: nulljava.lang.UnsupportedOperationException

The camera error is caught by a try catch block that I have implemented.

I get the same problem on 3 different devices.