Files
deighton-ar/mobile/ios/ViroKit.framework/Headers/VROVideoSurface.h
2018-03-27 17:46:15 -07:00

54 lines
1.4 KiB
C++

//
// 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 <memory>
class VRORenderContext;
class VRODriver;
class VROMaterial;
class VROSurface;
class VROVideoTexture;
class VROFrameSynchronizer;
class VROVideoSurface : public VROSurface {
public:
static std::shared_ptr<VROVideoSurface> createVideoSurface(float width, float height,
std::string url,
std::shared_ptr<VROFrameSynchronizer> frameSynchronizer,
std::shared_ptr<VROVideoTexture> texture,
std::shared_ptr<VRODriver> 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<VROVideoDelegateInternal> delegate);
~VROVideoSurface();
private:
VROVideoSurface(float width, float height,
std::shared_ptr<VROVideoTexture> texture);
std::shared_ptr<VROVideoTexture> _texture;
};
#endif /* VROVideoSurface_h */