@ -1,3 +1,7 @@
|
|||||||
|
### Version 1.0.41 Tag: v1.0.41 (2020-06-28)
|
||||||
|
* Floating window player controls fix (@dhk2)
|
||||||
|
* Updated app icons
|
||||||
|
|
||||||
### Version 1.0.40 Tag: v1.0.40 (2020-06-27)
|
### Version 1.0.40 Tag: v1.0.40 (2020-06-27)
|
||||||
* exoplayer update (@lishoujun)
|
* exoplayer update (@lishoujun)
|
||||||
* Floating window support (@dhk2)
|
* Floating window support (@dhk2)
|
||||||
|
@ -6,8 +6,8 @@ android {
|
|||||||
applicationId "net.schueller.peertube"
|
applicationId "net.schueller.peertube"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 1040
|
versionCode 1041
|
||||||
versionName "1.0.40"
|
versionName "1.0.41"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
ext {
|
ext {
|
||||||
libVersions = [
|
libVersions = [
|
||||||
|
BIN
app/src/main/ic_launcher-playstore.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
@ -353,10 +353,16 @@ public class VideoPlayActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void onPictureInPictureModeChanged (boolean isInPictureInPictureMode, Configuration newConfig) {
|
public void onPictureInPictureModeChanged (boolean isInPictureInPictureMode, Configuration newConfig) {
|
||||||
|
FragmentManager fragmentManager = getSupportFragmentManager();
|
||||||
|
VideoPlayerFragment videoPlayerFragment = (VideoPlayerFragment) fragmentManager.findFragmentById(R.id.video_player_fragment);
|
||||||
|
|
||||||
if (isInPictureInPictureMode) {
|
if (isInPictureInPictureMode) {
|
||||||
Log.v(TAG,"switched to pip ");
|
Log.v(TAG,"switched to pip ");
|
||||||
|
videoPlayerFragment.useController(false);
|
||||||
} else {
|
} else {
|
||||||
Log.v(TAG,"switched to normal");
|
Log.v(TAG,"switched to normal");
|
||||||
|
videoPlayerFragment.useController(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -199,7 +199,11 @@ public class VideoPlayerFragment extends Fragment implements VideoRendererEventL
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
public void useController(boolean value){
|
||||||
|
if (mBound){
|
||||||
|
simpleExoPlayerView.setUseController(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
private void playVideo(Video video) {
|
private void playVideo(Video video) {
|
||||||
|
|
||||||
Context context = getContext();
|
Context context = getContext();
|
||||||
|
@ -130,9 +130,13 @@ public class VideoPlayerService extends Service {
|
|||||||
playerNotificationManager.setPlayer(null);
|
playerNotificationManager.setPlayer(null);
|
||||||
}
|
}
|
||||||
//Was seeing an error when exiting the program about about not unregistering the receiver.
|
//Was seeing an error when exiting the program about about not unregistering the receiver.
|
||||||
|
try {
|
||||||
if (null!=myNoisyAudioStreamReceiver) {
|
if (null!=myNoisyAudioStreamReceiver) {
|
||||||
this.unregisterReceiver(myNoisyAudioStreamReceiver);
|
this.unregisterReceiver(myNoisyAudioStreamReceiver);
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
Log.e("VideoPlayerService", "attempted to unregister a nonregistered service");
|
||||||
|
}
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
player.release();
|
player.release();
|
||||||
player = null;
|
player = null;
|
||||||
|
@ -1,17 +1,13 @@
|
|||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:width="108dp"
|
android:width="108dp"
|
||||||
android:height="108dp"
|
android:height="108dp"
|
||||||
android:viewportWidth="292.8169"
|
android:viewportWidth="108"
|
||||||
android:viewportHeight="278.87323">
|
android:viewportHeight="108">
|
||||||
<group android:translateX="54.96479"
|
<group android:scaleX="0.4294737"
|
||||||
android:translateY="45.161972">
|
android:scaleY="0.4294737"
|
||||||
<path
|
android:translateX="13.048421"
|
||||||
android:pathData="M40.049,33.472H143.216c4.123,0 7.442,3.319 7.442,7.442v98.075c0,4.123 -3.319,7.442 -7.442,7.442H40.049c-4.123,0 -7.442,-3.319 -7.442,-7.442v-98.075c0,-4.123 3.319,-7.442 7.442,-7.442z"
|
android:translateY="15.615789">
|
||||||
android:strokeAlpha="1"
|
|
||||||
android:strokeWidth="3"
|
|
||||||
android:fillColor="#1E88E5"
|
|
||||||
android:fillAlpha="1"
|
|
||||||
android:strokeColor="#211f20"/>
|
|
||||||
<path
|
<path
|
||||||
android:pathData="M66.23,115.617V72.97h-15.231v-8.683h40.791v8.683H76.594v42.647z"
|
android:pathData="M66.23,115.617V72.97h-15.231v-8.683h40.791v8.683H76.594v42.647z"
|
||||||
android:strokeAlpha="1"
|
android:strokeAlpha="1"
|
||||||
|
@ -3,13 +3,6 @@
|
|||||||
android:height="297dp"
|
android:height="297dp"
|
||||||
android:viewportWidth="210"
|
android:viewportWidth="210"
|
||||||
android:viewportHeight="297">
|
android:viewportHeight="297">
|
||||||
<path
|
|
||||||
android:pathData="M40.049,33.472H143.216c4.123,0 7.442,3.319 7.442,7.442v98.075c0,4.123 -3.319,7.442 -7.442,7.442H40.049c-4.123,0 -7.442,-3.319 -7.442,-7.442v-98.075c0,-4.123 3.319,-7.442 7.442,-7.442z"
|
|
||||||
android:strokeAlpha="1"
|
|
||||||
android:strokeWidth="3"
|
|
||||||
android:fillColor="#1E88E5"
|
|
||||||
android:fillAlpha="1"
|
|
||||||
android:strokeColor="#211f20"/>
|
|
||||||
<path
|
<path
|
||||||
android:pathData="M66.23,115.617V72.97h-15.231v-8.683h40.791v8.683H76.594v42.647z"
|
android:pathData="M66.23,115.617V72.97h-15.231v-8.683h40.791v8.683H76.594v42.647z"
|
||||||
android:strokeAlpha="1"
|
android:strokeAlpha="1"
|
||||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1002 B After Width: | Height: | Size: 860 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 9.7 KiB |
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="ic_launcher_background">#FFFFFF</color>
|
<color name="ic_launcher_background">#1E88E5</color>
|
||||||
</resources>
|
</resources>
|