From 44e5376ce3ea3bb407862d697c9f336a07be44d5 Mon Sep 17 00:00:00 2001
From: EGEMEN <47759937+AsynctaskCoffee@users.noreply.github.com>
Date: Wed, 2 Dec 2020 18:44:04 +0300
Subject: [PATCH 1/6] :rocket:
---
README.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 2b1fa9c..db80ac7 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# VideoLayout :chicken:
-[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea90e5f54edc468eb5e6246f9fc806ed)](https://app.codacy.com/app/AsynctaskCoffee/VideoLayout?utm_source=github.com&utm_medium=referral&utm_content=AsynctaskCoffee/VideoLayout&utm_campaign=Badge_Grade_Dashboard) [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![version](https://img.shields.io/badge/version-1.2-blue) [![Gitter](https://badges.gitter.im/VideoLayout/community.svg)](https://gitter.im/VideoLayout/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea90e5f54edc468eb5e6246f9fc806ed)](https://app.codacy.com/app/AsynctaskCoffee/VideoLayout?utm_source=github.com&utm_medium=referral&utm_content=AsynctaskCoffee/VideoLayout&utm_campaign=Badge_Grade_Dashboard) [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![version](https://img.shields.io/badge/version-1.3-blue) [![Gitter](https://badges.gitter.im/VideoLayout/community.svg)](https://gitter.im/VideoLayout/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
![Preview](/previews/git.gif)
@@ -57,7 +57,7 @@ The normal videoview on Android is very costly in terms of performance. Also, du
```groovy
dependencies {
- implementation 'com.github.AsynctaskCoffee:VideoLayout:1.2'
+ implementation 'com.github.AsynctaskCoffee:VideoLayout:1.3'
}
```
@@ -80,7 +80,7 @@ The normal videoview on Android is very costly in terms of performance. Also, du
com.github.AsynctaskCoffee
VideoLayout
- 1.2
+ 1.3
```
@@ -90,6 +90,8 @@ The normal videoview on Android is very costly in terms of performance. Also, du
> 21.09.2020 - Sound support and new preview design implementation added
+> 02.12.2020 - Fix
+
## License
```
From df92832fbb6ca967acac39109cb75292ecb606a4 Mon Sep 17 00:00:00 2001
From: EGEMEN <47759937+AsynctaskCoffee@users.noreply.github.com>
Date: Thu, 3 Dec 2020 14:33:33 +0300
Subject: [PATCH 2/6] :cn:
---
README.cn.md | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 111 insertions(+)
create mode 100644 README.cn.md
diff --git a/README.cn.md b/README.cn.md
new file mode 100644
index 0000000..6099269
--- /dev/null
+++ b/README.cn.md
@@ -0,0 +1,111 @@
+# VideoLayout :chicken:
+
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea90e5f54edc468eb5e6246f9fc806ed)](https://app.codacy.com/app/AsynctaskCoffee/VideoLayout?utm_source=github.com&utm_medium=referral&utm_content=AsynctaskCoffee/VideoLayout&utm_campaign=Badge_Grade_Dashboard) [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![version](https://img.shields.io/badge/version-1.3-blue) [![Gitter](https://badges.gitter.im/VideoLayout/community.svg)](https://gitter.im/VideoLayout/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
+
+![Preview](/previews/git.gif)
+
+> 更时尚的背景设计
+
+> 性能友好且可扩展
+
+## 为什么这个项目存在
+就性能而言,Android上的普通-videoview-成本很高。 另外,由于视频分辨率和apk大小,大多数开发人员都不希望在项目中包含视频。 有了这个库,开发人员将拥有几行代码的性能友好的视频背景。
+
+## 功能与用法
+
+### 易于实施
+
+```java
+ frameLayout = findViewById(R.id.frameLayout)
+ videoLayout = VideoLayout(this)
+ videoLayout.setGravity(VideoLayout.VGravity.centerCrop)
+ videoLayout.setIsLoop(true)
+ videoLayout.setSound(true)
+ videoLayout.setPathOrUrl("loginvideotype3.mp4") // 可以是任何视频网址
+ frameLayout.addView(videoLayout)
+```
+
+```xml
+
+```
+
+###### 您应该将mp4文件放入资产文件夹,如果使用URL,则应在AndroidManifest中声明互联网权限
+
+```xml
+
+```
+
+## 图书馆实施
+
+###### 将其添加到存储库末尾的root build.gradle中
+
+```groovy
+ repositories {
+ maven { url 'https://jitpack.io' }
+ }
+```
+
+###### 添加依赖项
+
+```groovy
+ dependencies {
+ implementation 'com.github.AsynctaskCoffee:VideoLayout:1.3'
+ }
+```
+
+## 实施Maven
+
+###### 将JitPack存储库添加到您的构建文件中
+
+```groovy
+
+
+ jitpack.io
+ https://jitpack.io
+
+
+```
+
+###### 添加依赖项
+
+```groovy
+
+ com.github.AsynctaskCoffee
+ VideoLayout
+ 1.3
+
+```
+
+### 更新
+
+> 14.07.2020 - AndroidX迁移和代码重构
+
+> 21.09.2020 - 声音支持和新的预览设计实现已添加
+
+> 02.12.2020 - 修正
+
+## 执照
+
+```
+ Copyright 2020 Egemen ÖZOGUL
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+```
From f4b9e3daf9eb17e5b7e87ee64b1afbb35591f436 Mon Sep 17 00:00:00 2001
From: EGEMEN <47759937+AsynctaskCoffee@users.noreply.github.com>
Date: Thu, 3 Dec 2020 15:17:46 +0300
Subject: [PATCH 3/6] :kr:
---
README.kr.md | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 110 insertions(+)
create mode 100644 README.kr.md
diff --git a/README.kr.md b/README.kr.md
new file mode 100644
index 0000000..3f7880f
--- /dev/null
+++ b/README.kr.md
@@ -0,0 +1,110 @@
+# VideoLayout :chicken:
+
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea90e5f54edc468eb5e6246f9fc806ed)](https://app.codacy.com/app/AsynctaskCoffee/VideoLayout?utm_source=github.com&utm_medium=referral&utm_content=AsynctaskCoffee/VideoLayout&utm_campaign=Badge_Grade_Dashboard) [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![version](https://img.shields.io/badge/version-1.3-blue) [![Gitter](https://badges.gitter.im/VideoLayout/community.svg)](https://gitter.im/VideoLayout/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
+
+![Preview](/previews/git.gif)
+
+> 더욱 세련된 배경 디자인
+
+> 성능 친화적이고 확장 가능
+
+## 이 프로젝트가 존재하는 이유
+Android의 일반적인 videoview는 성능 측면에서 매우 비쌉니다. 또한 비디오 해상도 비율과 APK 크기로 인해 대부분의 개발자는 프로젝트에 비디오를 포함하고 싶지 않습니다. 이 라이브러리를 통해 개발자는 몇 줄의 코드로 성능 친화적 인 비디오 배경을 갖게됩니다.
+## 특징 및 사용법
+
+### 간편한 구현
+
+```java
+ frameLayout = findViewById(R.id.frameLayout)
+ videoLayout = VideoLayout(this)
+ videoLayout.setGravity(VideoLayout.VGravity.centerCrop)
+ videoLayout.setIsLoop(true)
+ videoLayout.setSound(true)
+ videoLayout.setPathOrUrl("loginvideotype3.mp4") // 모든 동영상 URL이 될 수 있습니다.
+ frameLayout.addView(videoLayout)
+```
+
+```xml
+
+```
+
+###### mp4 파일을 assets 폴더에 넣어야하며, URL을 사용하는 경우 인터넷 권한을 선언해야합니다.
+
+```xml
+
+```
+
+## 구현 Gradle
+
+###### 저장소 끝의 루트 build.gradle에 추가하십시오.
+
+```groovy
+ repositories {
+ maven { url 'https://jitpack.io' }
+ }
+```
+
+###### 종속성 추가
+
+```groovy
+ dependencies {
+ implementation 'com.github.AsynctaskCoffee:VideoLayout:1.3'
+ }
+```
+
+## 구현 Maven
+
+###### 빌드 파일에 JitPack 저장소 추가
+
+```groovy
+
+
+ jitpack.io
+ https://jitpack.io
+
+
+```
+
+###### 종속성 추가
+
+```groovy
+
+ com.github.AsynctaskCoffee
+ VideoLayout
+ 1.3
+
+```
+
+### 업데이트
+
+> 14.07.2020 - AndroidX 마이그레이션 및 코드 리팩터링
+
+> 21.09.2020 - 사운드 지원 및 새로운 미리보기 디자인 구현 추가
+
+> 02.12.2020 - 수정
+
+## 특허
+
+```
+ Copyright 2020 Egemen ÖZOGUL
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+```
From 1c2b1108ff7628d0d095193bbc907deda250aa8c Mon Sep 17 00:00:00 2001
From: EGEMEN <47759937+AsynctaskCoffee@users.noreply.github.com>
Date: Thu, 3 Dec 2020 15:30:05 +0300
Subject: [PATCH 4/6] :tr:
---
README.tr.md | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
create mode 100644 README.tr.md
diff --git a/README.tr.md b/README.tr.md
new file mode 100644
index 0000000..c8476c6
--- /dev/null
+++ b/README.tr.md
@@ -0,0 +1,109 @@
+# VideoLayout :chicken:
+
+[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea90e5f54edc468eb5e6246f9fc806ed)](https://app.codacy.com/app/AsynctaskCoffee/VideoLayout?utm_source=github.com&utm_medium=referral&utm_content=AsynctaskCoffee/VideoLayout&utm_campaign=Badge_Grade_Dashboard) [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![version](https://img.shields.io/badge/version-1.3-blue) [![Gitter](https://badges.gitter.im/VideoLayout/community.svg)](https://gitter.im/VideoLayout/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
+
+![Preview](/previews/git.gif)
+
+> Şık arka plan tasarımları
+
+> Performans dostu ve ölçeklenebilir
+
+## Bu proje neden var ?
+Android'deki normal VideoView, performans açısından çok maliyetlidir. Ayrıca, video çözünürlük oranı ve apk boyutu nedeniyle, çoğu geliştirici projeye harici olarak video eklemek istemiyor. Bu kütüphane ile uygulama geliştiriciler, birkaç satır kod içeren performans dostu bir video arka planına sahip olacaklar.
+## Özellikler ve Kullanım
+### Uygulamalarınıza kolaylıkla ekleyebilirsiniz
+
+```java
+ frameLayout = findViewById(R.id.frameLayout)
+ videoLayout = VideoLayout(this)
+ videoLayout.setGravity(VideoLayout.VGravity.centerCrop)
+ videoLayout.setIsLoop(true)
+ videoLayout.setSound(true)
+ videoLayout.setPathOrUrl("loginvideotype3.mp4") // could be any video url
+ frameLayout.addView(videoLayout)
+```
+
+```xml
+
+```
+
+###### Mp4 dosyalarınızı assets klasörüne koymalısınız, URL kullanıyorsanız manifest içerisinde INTERNET iznini tanımlamayı unutmayın.
+
+```xml
+
+```
+
+## Gradle tanımlanması
+
+###### root->gradle->repository katmanına eklemeniz gerekenler
+
+```groovy
+ repositories {
+ maven { url 'https://jitpack.io' }
+ }
+```
+
+###### app->gradle->dependencies katmanına eklemeniz gerekenler
+
+```groovy
+ dependencies {
+ implementation 'com.github.AsynctaskCoffee:VideoLayout:1.3'
+ }
+```
+
+## Maven tanımlanması
+
+###### JitPack repository tanımlamasını build dosyanıza ekleyin
+
+```groovy
+
+
+ jitpack.io
+ https://jitpack.io
+
+
+```
+
+###### VideoLayout dependency kimliklerini tanımlayın
+
+```groovy
+
+ com.github.AsynctaskCoffee
+ VideoLayout
+ 1.3
+
+```
+
+### Güncellemeler
+
+> 14.07.2020 - AndroidX'e geçiş ve kodsal düzenlemeler
+
+> 21.09.2020 - Ses desteği ve demo uygulamasının görsel değişiklikleri
+
+> 02.12.2020 - Fix
+
+## Lisans
+
+```
+ Copyright 2020 Egemen ÖZOGUL
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+```
From fcc111e54ae68b48a93f270d3e148488eb287361 Mon Sep 17 00:00:00 2001
From: EGEMEN <47759937+AsynctaskCoffee@users.noreply.github.com>
Date: Thu, 3 Dec 2020 15:47:27 +0300
Subject: [PATCH 5/6] :gb:
---
README.md | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index db80ac7..b086df1 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,13 @@
-# VideoLayout :chicken:
+# VideoLayout :chicken:
+
+
+
+| [:cn: 中文](https://github.com/AsynctaskCoffee/VideoLayout/blob/master/README.cn.md) | [:kr: 한국어](https://github.com/AsynctaskCoffee/VideoLayout/blob/master/README.kr.md) | [:gb: English](https://github.com/AsynctaskCoffee/VideoLayout/blob/master/README.md) | [:tr: Türkçe](https://github.com/AsynctaskCoffee/VideoLayout/blob/master/README.tr.md) |
+|-------------------------------------------------------------------------------------:|----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea90e5f54edc468eb5e6246f9fc806ed)](https://app.codacy.com/app/AsynctaskCoffee/VideoLayout?utm_source=github.com&utm_medium=referral&utm_content=AsynctaskCoffee/VideoLayout&utm_campaign=Badge_Grade_Dashboard) [![License](https://img.shields.io/badge/License-Apache%202.0-yellowgreen.svg)](https://opensource.org/licenses/Apache-2.0) ![version](https://img.shields.io/badge/version-1.3-blue) [![Gitter](https://badges.gitter.im/VideoLayout/community.svg)](https://gitter.im/VideoLayout/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
+
![Preview](/previews/git.gif)
> More stylish background designs
From 1cf496d0ed55afc1ff4ea684069e99bd3c73ac0d Mon Sep 17 00:00:00 2001
From: EGEMEN <47759937+AsynctaskCoffee@users.noreply.github.com>
Date: Thu, 3 Dec 2020 16:46:37 +0300
Subject: [PATCH 6/6] :gb:
---
README.md | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/README.md b/README.md
index b086df1..bedfe66 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,25 @@ The normal videoview on Android is very costly in terms of performance. Also, du
app:loop="true"/>
```
+###### Recommended :collision:
+
+```kotlin
+ override fun onDestroy() {
+ super.onDestroy()
+ videoLayout.onDestroyVideoLayout()
+ }
+
+ override fun onPause() {
+ super.onPause()
+ videoLayout.onPauseVideoLayout()
+ }
+
+ override fun onResume() {
+ super.onResume()
+ videoLayout.onResumeVideoLayout()
+ }
+```
+
###### You should put your mp4 files into assets folder, If you use URL you should declare
```xml