26 #ifndef SFEMOVIE_MOVIE_HPP
27 #define SFEMOVIE_MOVIE_HPP
29 #include <SFML/Graphics.hpp>
30 #include <SFML/System.hpp>
31 #include <sfeMovie/Visibility.hpp>
32 #include <sfeMovie/StreamSelection.hpp>
52 class SFE_API
Movie :
public sf::Drawable,
public sf::Transformable
67 bool openFromFile(
const std::string& filename);
73 const Streams& getStreams(MediaType type)
const;
121 void setVolume(
float volume);
127 float getVolume()
const;
133 sf::Time getDuration()
const;
139 sf::Vector2f getSize()
const;
143 void fit(
float x,
float y,
float width,
float height,
bool preserveRatio =
true);
156 void fit(sf::FloatRect frame,
bool preserveRatio =
true);
164 float getFramerate()
const;
170 unsigned int getSampleRate()
const;
176 unsigned int getChannelCount()
const;
182 Status getStatus()
const;
188 sf::Time getPlayingOffset()
const;
196 bool setPlayingOffset(
const sf::Time& targetSeekTime);
208 const sf::Texture& getCurrentImage()
const;
210 void draw(sf::RenderTarget& Target, sf::RenderStates states)
const;
211 std::shared_ptr<MovieImpl> m_impl;