// // VROVideoTexture.h // ViroRenderer // // Created by Raj Advani on 1/7/16. // Copyright © 2016 Viro Media. All rights reserved. // #ifndef VROVideoSurface_h #define VROVideoSurface_h #include "VROSurface.h" #include "VROVideoDelegateInternal.h" #include class VRORenderContext; class VRODriver; class VROMaterial; class VROSurface; class VROVideoTexture; class VROFrameSynchronizer; class VROVideoSurface : public VROSurface { public: static std::shared_ptr createVideoSurface(float width, float height, std::string url, std::shared_ptr frameSynchronizer, std::shared_ptr texture, std::shared_ptr driver); void pause(); void play(); bool isPaused(); void setMuted(bool muted); void setVolume(float volume); void setLoop(bool loop); void seekToTime(float seconds); void setDelegate(std::shared_ptr delegate); ~VROVideoSurface(); private: VROVideoSurface(float width, float height, std::shared_ptr texture); std::shared_ptr _texture; }; #endif /* VROVideoSurface_h */