Hi, I'm trying to use swift sdk, but I had a problem with working with a VideoPlayer.
I use:
public func setRenderTexture(_ texture: OpaquePointer) -> Void
But i cant convert textureId to OpaquePointer. The video plays, I hear its sound. But in place of the marker I see a black rectangle.
please see my code
withUnsafeMutablePointer(to: &textureId) { pointer in
videoPlayer?.setRenderTexture(OpaquePointer(pointer))
}
I tried to use the video player on objective c, and there everything worked perfectly. It not work work on swift. Do you have a ready implementation for the swift for an example? How to set GLuint textureId as OpaquePointer in setRenderTexture?
Thank you.