kakone / VLC.MediaElement

MediaElement clone powered by VLC
GNU Lesser General Public License v2.1
68 stars 33 forks source link

Is there a plan to upgrade from MediaElement to MediaPlayerElement? #41

Closed TaoziDB closed 7 years ago

TaoziDB commented 7 years ago

As title, or a way to work with MediaPlayerElement, thanks.

kakone commented 7 years ago

There is no underlying System.Windows.Controls.MediaElement in the VLC.MediaElement control. I only cloned the look of the MediaElement. So, there is no way to work with MediaPlayerElement. What would be the interest ?

TaoziDB commented 7 years ago

Mainly because MediaPlayerElement is much easier to do background media playback, especially background audio playback on XBox.

Also, MediaPlayerElement is newer and recommended going forward.

kakone commented 7 years ago

As I don't use MediaElement actually, I can update the class to look like the MediaPlayerElement but it won't change anything in our case. The VLC.MediaElement control looks like to the MediaElement but the underying MediaPlayer is VLC.

touseefbsb commented 7 years ago

@kakone the reason MediaPlayerElement is better than MediaElement are several. some of major advantages are following.

  1. we wont need to write any code for system media transport controls as that is built in with MediaPlayerElement.
  2. MediaPlayerElement can be subject to any XAML surface which opens multiple new scenarios to create apps.
  3. MPE can have multiple instances running at the same time.

are you saying you are only using style and not the functionality of the MediaElement? if that is the case then you are probably right in this case upgrading to MediaPlayerElement wont be much beneficial.

kakone commented 7 years ago

Yes, I'm using only the style of the MediaElement. All the rendering stuff is done by VLC.

touseefbsb commented 7 years ago

oh alright then