Home > Suggestions > Media Player need some events for develop

Media Player need some events for develop

Avatar image
Aug 24, 2015
Archive Agent wrote
I thinks maybe Media Player not need play list feature, because programmer can create this by own.
and now the play list not support mvvm(not implement ObservableCollection), if It support, you still need add some event,like:
playNextMedia, play firtMedia....or anything else. so I think, don't add play list feature to Media Player. the programmer can add this by own , and can use mvvm.

but programmer still need some event. for example
event: MediaEnded : if mediaEnded(media play is finish), programmer use this add some code , let it continue(if Is there have other media file), or stop . actually there is have event:OnStop. but you can't know it use stop method. or it already finish play media file, and stop by itself.

and if the media file is from Internet. need some event and property.
Event:BufferingStarted
Event:BufferingEnded
Property:BufferingProgress(double)
Property:IsBuffering(bool)
Propery:DownloadProgress(double)

I'm just refer to MediaPlayer(wpf).

qakmak on April 19, 2013 16:2
Completed
1
Vote
Reply
5 Answers
Aug 24, 2015
Archive Agent agent wrote
qakmak

what do you think?

on April 23, 2013 17:26
Aug 24, 2015
Archive Agent agent wrote
qakmak

I find the way can figure out It stop because play finish or manually stop by use.
add OnStop event. and :
if (e.position == MediaPlayer1.Source_Stream_Size)
//It's play finish and stop. but if the media gonna playing finish ,and user manually stop. maybe there is have some problem.

but I still think, the play list feature implement by programmer is a good choice.

on April 24, 2013 14:56
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

FIrst of all we have OnStop and OnProgress event implemented. Also Playlist implemented too, please check latest version of SDK.

Buffering events not possible in most of cases... Yes, good to see, difficult to made it worked really correctly for most of formats... Working on it, but no planned release date, sorry.

on April 24, 2013 15:00
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, Playlist only for files, not for memory source or DVD

on April 24, 2013 15:00
Aug 24, 2015
Archive Agent agent wrote
qakmak

Thank you for your answer.

on April 24, 2013 16:21