Skip to content

nixz/AudioVideo

 
 

Repository files navigation

Android Audio and video Examples

eclipse/ has the examples in eclipse project format, no longer updated. Otherwise the examples are for android studio.

AudioPlay demos how to play a resouce audio file and an audio file from any other location (ie filesystem, internet, etc)

AudioRecordTest will record via the mic and then you can play it back.

CameraPreview uses Api21 and only the Camera2 APIs. The code is broken up into a Preview class that just shows the camera preview in a surfaceview. A capturePic class (that required the preview class) to take a picture. At at some point a CaptureVid that will capture video (not even started).

PicCapture1 shows how to write code to take a picture with either camera and camera2 apis.

PicCapture2 hides most of the camera code in a cameraXpreview. It has code for both camera and camera2 apis.

PicCapture3 shows examples of how to take a picture with the intent.

VideoCapture1 Uses an intent to record a video via the native recorder and then plays it in the app.

VideoCapture2 shows how to record video using the media recorder (and older camera APIs) and plays it back. Doesn't work well on API 21+ video maybe upside down. (no permission checking for API23+ either)

VideoCapture3 shows how to record video several videos in a row. works ok on API 21, but 23+ video is upsidedown (no permission checking for API23+ either)

VideoPlayA shows and to play a video with a video view.

YouTubeDemo Shows how to use the youtube API and key. This demo is still a work in progress.

These are example code for University of Wyoming, Cosc 4730 Mobile Programming course. All examples are for Android.

About

Audio and Video examples for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%