]> git.sesse.net Git - vlc/blobdiff - bindings/libvlcpp/src/video.hpp
libvlcpp: add a function to handle video.
[vlc] / bindings / libvlcpp / src / video.hpp
index fb7310313f83d095ee0de4937fdf4011cd00bfe4..72f403265d0db8ae0dd695c742533a6c89d4aafe 100644 (file)
@@ -36,15 +36,6 @@ namespace libvlc
 class Video
 {
 public:
-    /**
-     * Constructor
-     * @param player: the player handling the video
-     */
-    Video( libvlc_media_player_t *player );
-
-    /** Destructor */
-    ~Video();
-
     /**
      * Get the height of the video
      * @return the height of the video
@@ -163,6 +154,24 @@ public:
 private:
     /** The media player instance of libvlc */
     libvlc_media_player_t *m_player;
+
+    /**
+     * The constructor is private so only the MediaPlayer can create an
+     * instance of this class
+     */
+    Video();
+
+    /** Destructor only used by the MediaPlayer associated with this class */
+    ~Video();
+
+    /**
+     * Set the media player. This function can only be used by the MediaPlayer class
+     * @param player: the media player
+     */
+    void setMediaPlayer( libvlc_media_player_t *player);
+
+    /** Friend class */
+    friend class MediaPlayer;
 };
 
 };