¡@

Home 

2014/10/16 ¤W¤È 08:21:25

android Programming Glossary: pfd

Create and Share a File from Internal Storage

http://stackoverflow.com/questions/12170386/create-and-share-a-file-from-internal-storage

.getCacheDir uri.getLastPathSegment ParcelFileDescriptor pfd ParcelFileDescriptor.open new File fileLocation ParcelFileDescriptor.MODE_READ_ONLY.. fileLocation ParcelFileDescriptor.MODE_READ_ONLY return pfd android android contentprovider android file share improve..

Live-stream video from one android phone to another over WiFi

http://stackoverflow.com/questions/14401340/live-stream-video-from-one-android-phone-to-another-over-wifi

server this is your network socket ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket socket mCamera getCameraInstance.. mediaRecorder.setOutputFile pfd.getFileDescriptor mMediaRecorder.setPreviewDisplay mPreview.getHolder.. socket connected to the server ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket socket mMediaPlayer new MediaPlayer..

Stream live video from phone to phone using socket fd

http://stackoverflow.com/questions/6116880/stream-live-video-from-phone-to-phone-using-socket-fd

@Override public void run try ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket clientSocket pfd.getFileDescriptor.. pfd ParcelFileDescriptor.fromSocket clientSocket pfd.getFileDescriptor .sync mp.setDataSource pfd.getFileDescriptor.. pfd.getFileDescriptor .sync mp.setDataSource pfd.getFileDescriptor pfd.close mp.setDisplay holder mp.prepareAsync..

android stream audio to server

http://stackoverflow.com/questions/8576427/android-stream-audio-to-server

catch IOException e e.printStackTrace ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket socket recorder new MediaRecorder.. MediaRecorder.AudioEncoder.AMR_NB recorder.setOutputFile pfd.getFileDescriptor try recorder.prepare catch IllegalStateException..

Error opening android camera for streaming video

http://stackoverflow.com/questions/9098216/error-opening-android-camera-for-streaming-video

CamcorderProfile.get CamcorderProfile.QUALITY_HIGH pfd ParcelFileDescriptor.fromSocket socket recorder.setOutputFile.. socket recorder.setOutputFile pfd.getFileDescriptor recorder.setPreviewDisplay cameraPreview.getHolder..

Create and Share a File from Internal Storage

http://stackoverflow.com/questions/12170386/create-and-share-a-file-from-internal-storage

throws FileNotFoundException String fileLocation getContext .getCacheDir uri.getLastPathSegment ParcelFileDescriptor pfd ParcelFileDescriptor.open new File fileLocation ParcelFileDescriptor.MODE_READ_ONLY return pfd android android contentprovider.. ParcelFileDescriptor pfd ParcelFileDescriptor.open new File fileLocation ParcelFileDescriptor.MODE_READ_ONLY return pfd android android contentprovider android file share improve this question It is possible to expose a file stored in..

Live-stream video from one android phone to another over WiFi

http://stackoverflow.com/questions/14401340/live-stream-video-from-one-android-phone-to-another-over-wifi

MediaPlayer for client player app . Quick sample code for the server this is your network socket ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket socket mCamera getCameraInstance mMediaRecorder new MediaRecorder mCamera.unlock mMediaRecorder.setCamera.. mMediaRecorder.setVideoEncoder MediaRecorder.VideoEncoder.DEFAULT mediaRecorder.setOutputFile pfd.getFileDescriptor mMediaRecorder.setPreviewDisplay mPreview.getHolder .getSurface mMediaRecorder.prepare mMediaRecorder.start.. side it is a bit tricky you could try this this is your network socket connected to the server ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket socket mMediaPlayer new MediaPlayer mMediaPlayer.setDataSource pfd.getFileDescriptor mMediaPlayer.prepare..

Stream live video from phone to phone using socket fd

http://stackoverflow.com/questions/6116880/stream-live-video-from-phone-to-phone-using-socket-fd

Connected to server handler.post new Runnable @Override public void run try ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket clientSocket pfd.getFileDescriptor .sync mp.setDataSource pfd.getFileDescriptor pfd.close.. new Runnable @Override public void run try ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket clientSocket pfd.getFileDescriptor .sync mp.setDataSource pfd.getFileDescriptor pfd.close mp.setDisplay holder mp.prepareAsync mp.start.. ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket clientSocket pfd.getFileDescriptor .sync mp.setDataSource pfd.getFileDescriptor pfd.close mp.setDisplay holder mp.prepareAsync mp.start catch IOException e TODO Auto generated..

android stream audio to server

http://stackoverflow.com/questions/8576427/android-stream-audio-to-server

port catch UnknownHostException e e.printStackTrace catch IOException e e.printStackTrace ParcelFileDescriptor pfd ParcelFileDescriptor.fromSocket socket recorder new MediaRecorder recorder.setAudioSource MediaRecorder.AudioSource.MIC.. MediaRecorder.OutputFormat.THREE_GPP recorder.setAudioEncoder MediaRecorder.AudioEncoder.AMR_NB recorder.setOutputFile pfd.getFileDescriptor try recorder.prepare catch IllegalStateException e e.printStackTrace catch IOException e e.printStackTrace..

Error opening android camera for streaming video

http://stackoverflow.com/questions/9098216/error-opening-android-camera-for-streaming-video

MediaRecorder.VideoSource.CAMERA recorder.setProfile CamcorderProfile.get CamcorderProfile.QUALITY_HIGH pfd ParcelFileDescriptor.fromSocket socket recorder.setOutputFile pfd.getFileDescriptor recorder.setPreviewDisplay cameraPreview.getHolder.. CamcorderProfile.get CamcorderProfile.QUALITY_HIGH pfd ParcelFileDescriptor.fromSocket socket recorder.setOutputFile pfd.getFileDescriptor recorder.setPreviewDisplay cameraPreview.getHolder .getSurface try recorder.prepare recorder.start..