-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
163 changed files
with
9,061 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
/*/build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio | ||
*.iml | ||
.idea | ||
|
||
# Ndk | ||
obj | ||
|
||
# OSX files | ||
.DS_Store | ||
|
||
reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 28 | ||
|
||
defaultConfig { | ||
applicationId "com.qiniu.droid.rtc.player.demo" | ||
minSdkVersion 18 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
dependencies { | ||
if (buildWithLibrary) { | ||
implementation project(':library') | ||
} else { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
} | ||
|
||
implementation files('libs/pldroid-media-streaming-3.0.1.jar') | ||
implementation 'com.squareup.okhttp3:okhttp:3.9.1' | ||
implementation 'com.qiniu:happy-dns:0.2.17' | ||
implementation 'de.greenrobot:eventbus:2.4.0' | ||
|
||
implementation 'com.jakewharton:butterknife:8.8.1' | ||
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' | ||
|
||
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | ||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
} | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# 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 *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
25 changes: 25 additions & 0 deletions
25
...emo/app/src/androidTest/java/com/qiniu/droid/rtc/player/demo/ExampleInstrumentedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.qiniu.droid.rtc.player.demo; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); | ||
assertEquals("com.qiniu.droid.rtc.player.demo", appContext.getPackageName()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.qiniu.droid.rtplayer.demo"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.FLASHLIGHT" /> | ||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
|
||
<application | ||
android:name=".StreamingApplication" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:networkSecurityConfig="@xml/network_config" | ||
android:theme="@style/AppTheme"> | ||
|
||
<meta-data | ||
android:name="com.bugsnag.android.API_KEY" | ||
android:value="735641c8e9f7f4044d81517cf7b41421"/> | ||
|
||
<activity android:name=".activity.WelcomeActivity" | ||
android:theme="@style/AppThemeFullscreen" | ||
android:screenOrientation="portrait"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".activity.MainActivity" | ||
android:screenOrientation="portrait" /> | ||
<activity android:name=".activity.SettingActivity" | ||
android:screenOrientation="portrait" /> | ||
<activity android:name=".activity.AddressConfigActivity" | ||
android:screenOrientation="portrait" /> | ||
<activity android:name=".activity.StreamingActivity" | ||
android:theme="@style/AppThemeFullscreen" | ||
android:screenOrientation="portrait" | ||
android:launchMode="singleTop" /> | ||
<activity android:name=".activity.PlayingActivity" | ||
android:theme="@style/AppThemeFullscreen" | ||
android:screenOrientation="portrait" | ||
android:launchMode="singleTop" /> | ||
<service android:name=".service.DownloadService" | ||
android:exported="false"/> | ||
<provider | ||
android:authorities="${applicationId}.update.provider" | ||
android:name=".utils.UpdateApkFileProvider" | ||
android:exported="false" | ||
android:grantUriPermissions="true"> | ||
<meta-data | ||
android:name="android.support.FILE_PROVIDER_PATHS" | ||
android:resource="@xml/update_apk_paths" /> | ||
</provider> | ||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<!-- Add your HTML Here --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>用户声明</title> | ||
</head> | ||
<body> | ||
<h2 style="font-family:sans-serif;"> | ||
用户协议 | ||
</h2> | ||
<p style="font-family:sans-serif;font-size:16px;"> | ||
<span style="font-size:14px;">尊敬的用户,请您仔细阅读以下条款,如果您对本协议的条款存在异议,您可以选择不使用牛直播。使用则表示您同意本协议下的全部条款</span>。 | ||
</p> | ||
<h3 style="font-family:sans-serif;"> | ||
遵守法律及法律效力 | ||
</h3> | ||
<p style="font-family:sans-serif;font-size:16px;"> | ||
<span style="font-size:14px;">会员同意遵守《中华人民共和国保密法》、《计算机信息系统国际联网保密管理规定》、《中华人民共和国计算机信息系统安全保护条例》、《计算机信息网络国际联网安全保护管理办法》、《中华人民共和国计算机信息网络国际联网管理暂行规定》及其实施办法等相关法律法规的任何及所有的规定,并对会员以任何方式使用服务的任何行为及其结果承担全部责任。</span> | ||
</p> | ||
<h3 style="font-family:sans-serif;"> | ||
用户说明 | ||
</h3> | ||
<p style="font-family:sans-serif;font-size:16px;"> | ||
<span style="font-size:14px;">用户不得利用本服务制作、上载、复制、发布、传播如下法律、法规和政策禁止的内容:</span> | ||
</p> | ||
<ol class="custom_num list-paddingleft-1" style="font-family:sans-serif;font-size:16px;"> | ||
<li class="list-num-1-1 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;">反对宪法所确定的基本原则的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-2 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;">危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-3 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;"> 损害国家荣誉和利益的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-4 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;"> 煽动民族仇恨、民族歧视,破坏民族团结的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-5 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;"> 破坏国家宗教政策,宣扬邪教和封建迷信的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-6 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;"> 散布谣言,扰乱社会秩序,破坏社会稳定的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-7 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;"> 散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-8 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;"> 侮辱或者诽谤他人,侵害他人合法权益的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-9 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;">不遵守法律法规底线、社会主义制度底线、国家利益底线、公民合法权益底线、社会公共秩序底线、道德风尚底线和信息真实性底线的“七条底线”要求的;</span> | ||
</p> | ||
</li> | ||
<li class="list-num-1-10 list-num-paddingleft-1"> | ||
<p> | ||
<span style="font-size:14px;">含有法律、行政法规禁止的其他内容的信息。</span> | ||
</p> | ||
</li> | ||
</ol> | ||
<p style="font-family:sans-serif;font-size:16px;"> | ||
<span style="font-size:14px;">如果用户出现以上情况中的一种或几种,将承担关闭全部权限,禁止使用的后果。</span> | ||
</p> | ||
|
||
</body> | ||
|
||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions
16
QNRTPlayerDemo/app/src/main/java/com/qiniu/droid/rtplayer/demo/StreamingApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.qiniu.droid.rtplayer.demo; | ||
|
||
import android.app.Application; | ||
|
||
import com.qiniu.pili.droid.streaming.StreamingEnv; | ||
|
||
public class StreamingApplication extends Application { | ||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
/** | ||
* init must be called before any other func | ||
*/ | ||
StreamingEnv.init(getApplicationContext()); | ||
} | ||
} |
Oops, something went wrong.