In a NativeScript application, I'm trying to apply a real-time effect to an applied video (specifically, grayscale video playback). I am currently playing the video in app using a fork of the nativescript-videoplayer
nativescript plugin. The relevant source code that creates the video view in android is here:
https://github.com/nstudio/nativescript-videoplayer/blob/master/src/videoplayer.android.ts
In essence, I want to modify it to apply an effect / shader, similar to the answer given here:
https://stackoverflow.com/a/31958741/192694
However, I'm not sure where this shader code would hook up to my existing stream of MediaPlayer
creation and setting its SurfaceTexture surface.