Skip to content

Commit

Permalink
Initial commit of sample app code to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
robgabbard-wowza committed May 20, 2016
1 parent cbdc19c commit 6753466
Show file tree
Hide file tree
Showing 150 changed files with 3,601 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Wowza GoCoder SDK for Android Sample App
This repository contains an sample application that demonstrates the capabilities of the [Wowza GoCoder™ SDK for Android](https://www.wowza.com/products/gocoder).

## Development Requirements

- Android SDK 4.4.2 or later
- Android Studio 1.2.0 or later

## Sample App Activities
When you first run the sample app it displays a list of activities that demonstrate the features of the GoCoder SDK.

![Sample App Activities](activities.png)

|Title|Activity Class|Description|
|-|-|-|
|**Stream live video and audio**|`CameraActivity.java`|This activity demonstrates the primary camera, audio, and live streaming capabilities of the GoCoder SDK.|
|**Stream an MP4 file**|`MP4BroadcastActivity.java`|This activity demonstrates how to broadcast the frames from a local MP4 file using the WZBroadcast and WZBroadcastComponent (and related) classes/interfaces, which provide lower-level access to the various components involved in a Wowza broadcast.|
|**Capture an MP4 file**|`MP4CaptureActivity.java`|This activity saves the video from the camera to an MP4 file on the device's local storage as it is being streamed.|

## More resources
- [Wowza GoCoder Software Development Kit](https://www.wowza.com/products/gocoder/sdk)
- [Wowza GoCoder SDK Developer Documentation](https://www.wowza.com/resources/gocodersdk/docs/1.0/)

Wowza Media Systems™ provides developers with a platform to create streaming applications and solutions. See [Wowza Developer Tools](https://www.wowza.com/resources/developers) to learn more about our APIs and SDK.

## Contact
[Wowza Media Systems, LLC](https://www.wowza.com/contact)

## License
This code is distributed under the [BSD 3-Clause License](https://github.com/WowzaMediaSystems/gocoder-sdk-samples-ios/blob/master/LICENSE.txt).
Binary file added activities.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
libs/com.wowza.gocoder.sdk.aar
29 changes: 29 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId 'com.wowza.gocoder.sdk.sampleapp'
minSdkVersion 19
targetSdkVersion 23
versionCode 3
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.wowza.gocoder.sdk.android:com.wowza.gocoder.sdk:1.0@aar'

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
}
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/rob/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
62 changes: 62 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wowza.gocoder.sdk.sampleapp">

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

<uses-feature android:name="android.hardware.camera.any" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.camera.flash" android:required="false" />
<uses-feature android:name="android.hardware.microphone" android:required="false" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name_short"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<activity android:name=".MainActivity"
android:logo="@drawable/ic_wowza"
android:label="@string/app_name_short">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".CameraActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="fullSensor"
android:logo="@drawable/ic_wowza"
android:label="@string/camera_example_title">
</activity>

<activity android:name=".mp4.MP4BroadcastActivity"
android:label="@string/mp4_broadcast_title"/>

<activity android:name=".mp4.MP4CaptureActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="fullSensor"
android:label="@string/mp4_capture_title"/>

<activity android:name=".opengles.SurfaceTextureActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="landscape"
android:label="@string/surface_view_title"/>

<activity android:name=".config.ConfigPrefsActivity"
android:icon="@drawable/ic_gear"
android:label="@string/configuration_settings_title" />

</application>

</manifest>
Loading

0 comments on commit 6753466

Please sign in to comment.