Package system.windows.media
Class MediaPlayer
- java.lang.Object
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class MediaPlayer extends Animatable
The base .NET class managing System.Windows.Media.MediaPlayer, PresentationCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Media.MediaPlayer
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: PresentationCorestatic java.lang.String
className
Qualified class name: System.Windows.Media.MediaPlayerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description MediaPlayer()
MediaPlayer(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBufferingEnded(EventHandler handler)
void
addBufferingStarted(EventHandler handler)
void
addMediaEnded(EventHandler handler)
void
addMediaOpened(EventHandler handler)
static MediaPlayer
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoMediaPlayer
, a cast assert is made to check if types are compatible.void
Close()
double
getBalance()
double
getBufferingProgress()
boolean
getCanPause()
MediaClock
getClock()
double
getDownloadProgress()
boolean
getHasAudio()
boolean
getHasVideo()
boolean
getIsBuffering()
boolean
getIsMuted()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypeDuration
getNaturalDuration()
int
getNaturalVideoHeight()
int
getNaturalVideoWidth()
TimeSpan
getPosition()
boolean
getScrubbingEnabled()
Uri
getSource()
double
getSpeedRatio()
double
getVolume()
void
Open(Uri source)
void
Pause()
void
Play()
void
removeBufferingEnded(EventHandler handler)
void
removeBufferingStarted(EventHandler handler)
void
removeMediaEnded(EventHandler handler)
void
removeMediaOpened(EventHandler handler)
void
setBalance(double Balance)
void
setClock(MediaClock Clock)
void
setIsMuted(boolean IsMuted)
void
setJCOInstance(JCObject instance)
void
setPosition(TimeSpan Position)
void
setScrubbingEnabled(boolean ScrubbingEnabled)
void
setSpeedRatio(double SpeedRatio)
void
setVolume(double Volume)
void
Stop()
-
Methods inherited from class system.windows.media.animation.Animatable
ApplyAnimationClock, ApplyAnimationClock, BeginAnimation, BeginAnimation, CloneNewAnimatable, GetAnimationBaseValue, getHasAnimatedProperties, ShouldSerializeStoredWeakReference
-
Methods inherited from class system.windows.Freezable
addChanged, Clone, CloneCurrentValue, Freeze, GetAsFrozen, getCanFreeze, GetCurrentValueAsFrozen, getIsFrozen, removeChanged
-
Methods inherited from class system.windows.DependencyObject
ClearValue, ClearValue, CoerceValue, getDependencyObjectType, getIsSealed, GetLocalValueEnumerator, GetValue, InvalidateProperty, ReadLocalValue, SetCurrentValue, SetValue, SetValue
-
Methods inherited from class system.windows.threading.DispatcherObject
CheckAccess, getDispatcher, VerifyAccess
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: PresentationCore, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: PresentationCore- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Media.MediaPlayer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MediaPlayer
public MediaPlayer(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
MediaPlayer
public MediaPlayer() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classAnimatable
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classAnimatable
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classAnimatable
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classAnimatable
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classAnimatable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classAnimatable
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static MediaPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoMediaPlayer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
MediaPlayer
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException, OutOfMemoryException, UnreachableException, Win32Exception, SecurityException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
ArgumentNullException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
MulticastNotSupportedException
NotSupportedException
OutOfMemoryException
UnreachableException
Win32Exception
SecurityException
-
Open
public void Open(Uri source) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException, CultureNotFoundException, SecurityException, IOException, InvalidEnumArgumentException, Win32Exception, UriFormatException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
ArgumentNullException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
MulticastNotSupportedException
NotSupportedException
CultureNotFoundException
SecurityException
IOException
InvalidEnumArgumentException
Win32Exception
UriFormatException
-
Pause
public void Pause() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
Play
public void Play() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
getCanPause
public boolean getCanPause() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getHasAudio
public boolean getHasAudio() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getHasVideo
public boolean getHasVideo() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getIsBuffering
public boolean getIsBuffering() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getIsMuted
public boolean getIsMuted() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
setIsMuted
public void setIsMuted(boolean IsMuted) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
getScrubbingEnabled
public boolean getScrubbingEnabled() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
setScrubbingEnabled
public void setScrubbingEnabled(boolean ScrubbingEnabled) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
getBalance
public double getBalance() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
setBalance
public void setBalance(double Balance) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
getBufferingProgress
public double getBufferingProgress() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getDownloadProgress
public double getDownloadProgress() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getSpeedRatio
public double getSpeedRatio() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
setSpeedRatio
public void setSpeedRatio(double SpeedRatio) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
getVolume
public double getVolume() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
setVolume
public void setVolume(double Volume) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
getNaturalVideoHeight
public int getNaturalVideoHeight() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getNaturalVideoWidth
public int getNaturalVideoWidth() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getPosition
public TimeSpan getPosition() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
setPosition
public void setPosition(TimeSpan Position) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException
-
getSource
public Uri getSource() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getNaturalDuration
public Duration getNaturalDuration() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
getClock
public MediaClock getClock() throws java.lang.Throwable, ArgumentException, InvalidOperationException, MulticastNotSupportedException, PlatformNotSupportedException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException
-
setClock
public void setClock(MediaClock Clock) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, MulticastNotSupportedException, NotSupportedException, OutOfMemoryException, CultureNotFoundException, UriFormatException, InvalidEnumArgumentException, Win32Exception, SecurityException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
ArgumentNullException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
MulticastNotSupportedException
NotSupportedException
OutOfMemoryException
CultureNotFoundException
UriFormatException
InvalidEnumArgumentException
Win32Exception
SecurityException
-
addBufferingEnded
public void addBufferingEnded(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeBufferingEnded
public void removeBufferingEnded(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addBufferingStarted
public void addBufferingStarted(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeBufferingStarted
public void removeBufferingStarted(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addMediaEnded
public void addMediaEnded(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeMediaEnded
public void removeMediaEnded(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addMediaOpened
public void addMediaOpened(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeMediaOpened
public void removeMediaOpened(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-