Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

MediaPlayer Playlist

$
0
0

Hi,

I have an older VB 2010 project, a sort of media manger what imports and renames my pictures and videos into structured file folders and allows to play a slide show and videos.

This was working for years, but now in Windows 10 preview the Media Player does no execute the entire playlist, means it plays the first video and then stops. I can push the play button and it plays the next video, but not automatically.

Actually I have rewritten the application in Visual Studio 2015 RC with VB express 2015 (Net framework 4.5.2) using the WMPLib and encounter the same problem.

Perhaps I need to abandonee the playlist and play each video separately by open and close the player.

Any other suggestions is welcome and appreciated.

PrivateSubcreatePlaylist(ByValselfile()AsString) \\\(selFile() = selected videos as string array)

DimplayAsWMPLib.IWMPPlaylist= AxMP.newPlaylist("PL","")

Try

ForEachitemInselfile

IfFile.Exists(item)Then

play.insertItem((i), AxMP.newMedia(item))

EndIf

Next

IfMy.Settings.setStartShow = TrueThen

AxMP.currentPlaylist = play

AxMP.Ctlcontrols.play()

EndIf

CatchexAsIOException

MsgBox(ex.Message)

EndTry

EndSub


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>