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=10.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,
PlatformNotSupportedException,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
RankException,
ArrayTypeMismatchException,
InvalidOperationException,
InvalidEnumArgumentException,
Win32Exception,
NotSupportedException
public 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,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException,
CultureNotFoundException,
UriFormatException,
OutOfMemoryException,
UnreachableException,
Win32Exception,
SecurityException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMulticastNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionCultureNotFoundExceptionUriFormatExceptionOutOfMemoryExceptionUnreachableExceptionWin32ExceptionSecurityExceptionpublic double getBalance()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public double getBufferingProgress()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public boolean getCanPause()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public MediaClock getClock() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, InvalidOperationException, MulticastNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException
public double getDownloadProgress()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public boolean getHasAudio()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public boolean getHasVideo()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public boolean getIsBuffering()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public boolean getIsMuted()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
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, PlatformNotSupportedException, ArgumentException, InvalidOperationException, MulticastNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException
public int getNaturalVideoHeight()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public int getNaturalVideoWidth()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public TimeSpan getPosition() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, InvalidOperationException, MulticastNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException
public boolean getScrubbingEnabled()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public Uri getSource() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, InvalidOperationException, MulticastNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, ArgumentNullException
public double getSpeedRatio()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public double getVolume()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException
public void Open(Uri source) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, MulticastNotSupportedException, NotSupportedException, ArgumentNullException, CultureNotFoundException, UriFormatException, SecurityException, IOException, InvalidEnumArgumentException, Win32Exception
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMulticastNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionCultureNotFoundExceptionUriFormatExceptionSecurityExceptionIOExceptionInvalidEnumArgumentExceptionWin32Exceptionpublic void Pause()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException
public void Play()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException
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,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException
public void setClock(MediaClock Clock) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, MulticastNotSupportedException, NotSupportedException, ArgumentNullException, CultureNotFoundException, UriFormatException, OutOfMemoryException, UnreachableException, InvalidEnumArgumentException, Win32Exception, SecurityException
java.lang.ThrowablePlatformNotSupportedExceptionArgumentExceptionInvalidOperationExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMulticastNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionCultureNotFoundExceptionUriFormatExceptionOutOfMemoryExceptionUnreachableExceptionInvalidEnumArgumentExceptionWin32ExceptionSecurityExceptionpublic void setIsMuted(boolean IsMuted)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException
public void setJCOInstance(JCObject instance)
setJCOInstance in class Animatablepublic void setPosition(TimeSpan Position) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, MulticastNotSupportedException, NotSupportedException, ArgumentNullException
public void setScrubbingEnabled(boolean ScrubbingEnabled)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException
public void setSpeedRatio(double SpeedRatio)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException
public void setVolume(double Volume)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException
public void Stop()
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentException,
InvalidOperationException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
MulticastNotSupportedException,
NotSupportedException,
ArgumentNullException