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=4.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.StringassemblyFullNameFully assembly qualified name: PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: PresentationCorestatic java.lang.StringclassNameQualified class name: System.Windows.Media.MediaPlayerstatic JCTypeclassTypeThe 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 voidaddBufferingEnded(EventHandler handler)voidaddBufferingStarted(EventHandler handler)voidaddMediaEnded(EventHandler handler)voidaddMediaOpened(EventHandler handler)static MediaPlayercast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoMediaPlayer, a cast assert is made to check if types are compatible.voidClose()doublegetBalance()doublegetBufferingProgress()booleangetCanPause()MediaClockgetClock()doublegetDownloadProgress()booleangetHasAudio()booleangetHasVideo()booleangetIsBuffering()booleangetIsMuted()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypeDurationgetNaturalDuration()intgetNaturalVideoHeight()intgetNaturalVideoWidth()TimeSpangetPosition()booleangetScrubbingEnabled()UrigetSource()doublegetSpeedRatio()doublegetVolume()voidOpen(Uri source)voidPause()voidPlay()voidremoveBufferingEnded(EventHandler handler)voidremoveBufferingStarted(EventHandler handler)voidremoveMediaEnded(EventHandler handler)voidremoveMediaOpened(EventHandler handler)voidsetBalance(double Balance)voidsetClock(MediaClock Clock)voidsetIsMuted(boolean IsMuted)voidsetJCOInstance(JCObject instance)voidsetPosition(TimeSpan Position)voidsetScrubbingEnabled(boolean ScrubbingEnabled)voidsetSpeedRatio(double SpeedRatio)voidsetVolume(double Volume)voidStop()-
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=4.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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
MediaPlayer
public MediaPlayer() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidEnumArgumentExceptionWin32ExceptionInvalidOperationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classAnimatable- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classAnimatable- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classAnimatable- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classAnimatable- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classAnimatable
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classAnimatable- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static MediaPlayer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoMediaPlayer, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
MediaPlayerinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Close
public void Close() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, UriFormatException, OutOfMemoryException, Win32Exception- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionUriFormatExceptionOutOfMemoryExceptionWin32Exception
-
Open
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
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionInvalidDeploymentExceptionMemberAccessExceptionInvalidEnumArgumentExceptionWin32Exception
-
Pause
public void Pause() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
Play
public void Play() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
Stop
public void Stop() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getCanPause
public boolean getCanPause() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getHasAudio
public boolean getHasAudio() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getHasVideo
public boolean getHasVideo() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getIsBuffering
public boolean getIsBuffering() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getIsMuted
public boolean getIsMuted() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
setIsMuted
public void setIsMuted(boolean IsMuted) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getScrubbingEnabled
public boolean getScrubbingEnabled() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
setScrubbingEnabled
public void setScrubbingEnabled(boolean ScrubbingEnabled) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getBalance
public double getBalance() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
setBalance
public void setBalance(double Balance) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getBufferingProgress
public double getBufferingProgress() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getDownloadProgress
public double getDownloadProgress() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getSpeedRatio
public double getSpeedRatio() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
setSpeedRatio
public void setSpeedRatio(double SpeedRatio) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getVolume
public double getVolume() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
setVolume
public void setVolume(double Volume) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getNaturalVideoHeight
public int getNaturalVideoHeight() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getNaturalVideoWidth
public int getNaturalVideoWidth() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getPosition
public TimeSpan getPosition() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
setPosition
public void setPosition(TimeSpan Position) throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getSource
public Uri getSource() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getNaturalDuration
public Duration getNaturalDuration() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
getClock
public MediaClock getClock() throws java.lang.Throwable, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentException, SecurityException, UnauthorizedAccessException, IOException, MulticastNotSupportedException, ArgumentOutOfRangeException, NotSupportedException
-
setClock
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
- Throws:
java.lang.ThrowableArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionMulticastNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionNotImplementedExceptionUriFormatExceptionOutOfMemoryExceptionInvalidEnumArgumentExceptionWin32Exception
-
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
-
-