Add media and player state support
[vlc.git] / bindings / cil / src / player.cs
index 2e3d54b..431b9de 100644 (file)
@@ -363,6 +363,19 @@ namespace VideoLAN.LibVLC
             }
         }
 
+        /**
+         * Current state of the player.
+         */
+        public State State
+        {
+            get
+            {
+                State ret = LibVLC.PlayerGetState (Handle, ex);
+                Raise ();
+                return ret;
+            }
+        }
+
         /**
          * Frame rate in unit/seconds.
          */