The Wayback Machine - https://web.archive.org/web/20201130194101/https://github.com/JimSeker/AudioVideo
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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 resource 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 only the Camera2 APIs and targets API 21+. 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. And there is a VideoClass as well. This example is far from perfect, but works to show the separation in the classes.

CameraXdemo is a java version of the new cameraX from the androidX libraries. Note, still alpha in some places. CameraXdemo_kt is a kotlin version of the new CameraX androidX libraries. Note, still alpha in some places.

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_1 Uses the camera2 to record videos and storages in public movie directory on the sdcard. It has bottomNavView so you can switch to a player and see the videos you have recorded this session.

VideoCapture3 shows how to record video with either Camera or Camera2 (API21+). Note that using Camera in 21+ causes odd results like the video maybe upside down.

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. https://developers.google.com/youtube/android/player/

QRdemo shows to to create and scan QR codes. This uses zxing app and some of there code (included in project). A link to where I got the code is https://github.com/zxing/zxing/tree/master/android-integration/src/main/java/com/google/zxing/integration/android

legacy/ are now abandoned examples and are no longer updated.

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

You can’t perform that action at this time.