Reputation: 393
I have read this documentation about MediaPlayerElement
and it says MediaPlayerElement
contains properties of MediaPlayer
class. But I couldn't figure out how can I use MediaPlayer
's events on MediaPlayerElement
.
Upvotes: 1
Views: 265
Reputation: 39102
As the documentation states:
The majority of the media functionality is located on the underlying
MediaPlayer
class, which you can access through theMediaPlayerElement.MediaPlayer
property
So to use and set any events of MediaPlayer
, you just use the MediaPlayer
property of the MediaPlayerElement
.
Upvotes: 1