diff --git a/app/src/main/java/com/haishinkit/studio/MainActivity.kt b/app/src/main/java/com/haishinkit/studio/MainActivity.kt index aff654887..f86913d85 100644 --- a/app/src/main/java/com/haishinkit/studio/MainActivity.kt +++ b/app/src/main/java/com/haishinkit/studio/MainActivity.kt @@ -6,8 +6,6 @@ import android.view.MenuItem import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import com.google.android.material.bottomnavigation.BottomNavigationView -import com.haishinkit.graphics.PixelTransformFactory -import com.haishinkit.vulkan.VkPixelTransform class MainActivity : AppCompatActivity(), BottomNavigationView.OnNavigationItemSelectedListener { private var fragment: Fragment? = null diff --git a/app/src/main/java/com/haishinkit/studio/MediaProjectionService.kt b/app/src/main/java/com/haishinkit/studio/MediaProjectionService.kt index 95b46b282..b3bfcb10c 100644 --- a/app/src/main/java/com/haishinkit/studio/MediaProjectionService.kt +++ b/app/src/main/java/com/haishinkit/studio/MediaProjectionService.kt @@ -7,7 +7,12 @@ import android.app.Service import android.content.Intent import android.content.pm.ServiceInfo import android.media.projection.MediaProjectionManager -import android.os.* +import android.os.Build +import android.os.Handler +import android.os.IBinder +import android.os.Looper +import android.os.Message +import android.os.Messenger import android.util.DisplayMetrics import android.util.Log import androidx.annotation.RequiresApi @@ -16,7 +21,6 @@ import com.haishinkit.event.Event import com.haishinkit.event.EventUtils import com.haishinkit.event.IEventListener import com.haishinkit.graphics.filter.BicubicVideoEffect -import com.haishinkit.graphics.filter.DefaultVideoEffect import com.haishinkit.graphics.filter.VideoEffect import com.haishinkit.media.AudioRecordSource import com.haishinkit.media.MediaProjectionSource diff --git a/app/src/main/java/com/haishinkit/studio/MediaProjectionTabFragment.kt b/app/src/main/java/com/haishinkit/studio/MediaProjectionTabFragment.kt index 2f620d215..c6137a365 100644 --- a/app/src/main/java/com/haishinkit/studio/MediaProjectionTabFragment.kt +++ b/app/src/main/java/com/haishinkit/studio/MediaProjectionTabFragment.kt @@ -8,7 +8,11 @@ import android.content.Context import android.content.Intent import android.content.ServiceConnection import android.media.projection.MediaProjectionManager -import android.os.* +import android.os.Build +import android.os.Bundle +import android.os.IBinder +import android.os.Message +import android.os.Messenger import android.util.Log import android.view.LayoutInflater import android.view.View @@ -19,11 +23,8 @@ import androidx.fragment.app.Fragment import com.haishinkit.graphics.filter.BicubicVideoEffect import com.haishinkit.graphics.filter.BilinearVideoEffect import com.haishinkit.graphics.filter.DefaultVideoEffect -import com.haishinkit.graphics.filter.MonochromeVideoEffect -import com.haishinkit.net.NetStream import com.haishinkit.rtmp.RtmpConnection import com.haishinkit.rtmp.RtmpStream -import java.nio.ByteBuffer class MediaProjectionTabFragment : Fragment(), ServiceConnection { private var messenger: Messenger? = null @@ -46,13 +47,31 @@ class MediaProjectionTabFragment : Fragment(), ServiceConnection { val filter = v.findViewById