public class MediaPlayer extends Animatable
.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
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: PresentationCore
|
static java.lang.String |
className
Qualified class name: System.Windows.Media.MediaPlayer
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
MediaPlayer() |
MediaPlayer(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and 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 the
IJCOBridgeReflected instance into MediaPlayer, 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 name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
Duration |
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() |
ApplyAnimationClock, ApplyAnimationClock, BeginAnimation, BeginAnimation, CloneNewAnimatable, GetAnimationBaseValue, getHasAnimatedProperties, ShouldSerializeStoredWeakReferenceaddChanged, Clone, CloneCurrentValue, Freeze, GetAsFrozen, getCanFreeze, GetCurrentValueAsFrozen, getIsFrozen, removeChangedClearValue, ClearValue, CoerceValue, getDependencyObjectType, getIsSealed, GetLocalValueEnumerator, GetValue, InvalidateProperty, ReadLocalValue, SetCurrentValue, SetValue, SetValueCheckAccess, getDispatcher, VerifyAccesspublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public MediaPlayer()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidEnumArgumentException,
Win32Exception,
InvalidOperationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidEnumArgumentExceptionWin32ExceptionInvalidOperationExceptionpublic MediaPlayer(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic void addBufferingEnded(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addBufferingStarted(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addMediaEnded(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void addMediaOpened(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic static MediaPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into MediaPlayer, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedMediaPlayer instancejava.lang.Throwable - in case of error during cast operationpublic void Close()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
UriFormatException,
OutOfMemoryException,
Win32Exception
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionUriFormatExceptionOutOfMemoryExceptionWin32Exceptionpublic double getBalance()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public double getBufferingProgress()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public boolean getCanPause()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public MediaClock getClock() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
public double getDownloadProgress()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public boolean getHasAudio()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public boolean getHasVideo()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public boolean getIsBuffering()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public boolean getIsMuted()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class AnimatableString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class AnimatableString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class AnimatableObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class AnimatableString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class AnimatableJCType representing the CLR Type of the instantiated Classpublic Duration getNaturalDuration() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
public int getNaturalVideoHeight()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public int getNaturalVideoWidth()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public TimeSpan getPosition() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
public boolean getScrubbingEnabled()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public Uri getSource() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
public double getSpeedRatio()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public double getVolume()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void Open(Uri source) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, InvalidDeploymentException, MemberAccessException, InvalidEnumArgumentException, Win32Exception
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionInvalidDeploymentExceptionMemberAccessExceptionInvalidEnumArgumentExceptionWin32Exceptionpublic void Pause()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void Play()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void removeBufferingEnded(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeBufferingStarted(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeMediaEnded(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void removeMediaOpened(EventHandler handler) throws java.lang.Throwable
java.lang.Throwablepublic void setBalance(double Balance)
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void setClock(MediaClock Clock) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, NotImplementedException, UriFormatException, OutOfMemoryException, InvalidEnumArgumentException, Win32Exception
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionNotImplementedExceptionUriFormatExceptionOutOfMemoryExceptionInvalidEnumArgumentExceptionWin32Exceptionpublic void setIsMuted(boolean IsMuted)
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void setJCOInstance(JCObject instance)
setJCOInstance in class Animatablepublic void setPosition(TimeSpan Position) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
public void setScrubbingEnabled(boolean ScrubbingEnabled)
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void setSpeedRatio(double SpeedRatio)
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void setVolume(double Volume)
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException
public void Stop()
throws java.lang.Throwable,
ArgumentNullException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentException,
SecurityException,
UnauthorizedAccessException,
IOException,
MulticastNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException