Class OffscreenPlayerThread

    • Constructor Detail

      • OffscreenPlayerThread

        public OffscreenPlayerThread​(@NonNull
                                     android.content.Context context,
                                     @NonNull
                                     OffscreenEffectPlayerConfig config,
                                     @NonNull
                                     java.lang.String key)
      • OffscreenPlayerThread

        public OffscreenPlayerThread​(@NonNull
                                     android.content.Context context,
                                     @NonNull
                                     com.banuba.sdk.effect_player.EffectPlayer player,
                                     @NonNull
                                     android.util.Size size,
                                     @NonNull
                                     OffscreenSimpleConfig config)
    • Method Detail

      • handleLoadEffect

        public void handleLoadEffect​(@NonNull
                                     java.lang.String effectName)
      • handleLoadEffect

        public void handleLoadEffect​(@NonNull
                                     java.lang.String effectName,
                                     boolean async)
      • handleImageProcess

        public void handleImageProcess​(@NonNull
                                       android.media.Image image,
                                       @NonNull
                                       ImageOrientation imageOrientation,
                                       @NonNull
                                       OEPImageFormat outputImageFormat,
                                       long timestamp)
      • handleFullImageData

        public void handleFullImageData​(@NonNull
                                        com.banuba.sdk.types.FullImageData data,
                                        @Nullable
                                        ReleaseCallback callback,
                                        @NonNull
                                        OEPImageFormat outputImageFormat,
                                        long timestamp)
      • handleUnloadEffect

        public void handleUnloadEffect()
      • handleCallJsMethod

        public void handleCallJsMethod​(@NonNull
                                       java.lang.String method,
                                       @NonNull
                                       java.lang.String parameter)
      • handleEvalJs

        public void handleEvalJs​(@NonNull
                                 java.lang.String script,
                                 @Nullable
                                 com.banuba.sdk.effect_player.JsCallback resultCallback)
      • handleSetListener

        public void handleSetListener​(@Nullable
                                      ImageProcessedListener listener,
                                      @Nullable
                                      android.os.Handler handler)
      • handleSetSurface

        public void handleSetSurface​(@Nullable
                                     android.graphics.SurfaceTexture surfaceTexture)
      • handlePlaybackPlay

        public void handlePlaybackPlay()
      • handlePlaybackPause

        public void handlePlaybackPause()
      • handlePlaybackStop

        public void handlePlaybackStop()
      • enableAudio

        public void enableAudio​(boolean enable)