Launching Win 10 Movie & TV app (Films & TV in UK?) - vb6

I've been launching good, old Windows Media Player (wmplayer.exe) from my trusty VB6 app for many years using code such as:
stPlayer = "C:\Program Files\Windows Media Player\wmplayer.exe"
stMyVideo = "D:\temp\myvideo.mp4"
stCommandLine = stPlayer & " " & stMyVideo
inShellID = Shell(stCommandLine, vbNormalFocus)
but in recent times have found a few issues with wmplayer and would like to switch to using a more recent, reliable app such as the Windows Movie & TV app (this may be called the Film & TV app in the UK?) that seems to play my MP4 files with no issues at all.
However, I don't really get this newfangled Windows app stuff apart from to know that they're not traditional .exe files that I know how to call from a command line. Or are they?
Is anyone able to help me with how I can get VB6 to open my MP4 video using Movie & TV app?
Thanks,

Related

powershell script to play a music folder on windows startup

How to use powershell to autoplay a folder of mp3 files using Windows Media Player on Windows 7 startup. I figure that there are two aspects: 1) the script must run automatically when Windows starts up 2) the script must call Media Player to open the folder and play the files therein
Perhaps you could make a playlist from that folder in Windows Media Player.
Then you could call windows media player with a commandline switch, which tells it to open and play a certain playlist. You can find some information on commandline switches for WMP here:
[http://www.tech-recipes.com/rx/1389/windows-media-player-wmp-11-command-line-options/]
When that is done, you would create a scheduled job, to fire your WMP script every time you log on.
Information for that part can be found here:
[https://technet.microsoft.com/en-us/library/cc748993(v=ws.11).aspx]

Add songs/photos/videos to Windows Phone 8 Emulator

How can I add media files to library folders of WP emulator so that I can list them in my program?
The Windows Phone 8.1 SDK allows you to use a folder on your dev machine to simulate an SD card for the emulator. If you put a bunch of media files in that folder before "inserting" it into the emulator, they will get picked up and added to the appropriate libraries.
Note that it can take a few seconds for media indexer to wake up and go through the content but you can easily check on its progress in the appropriate built-in app (eg. Music or Photos).
You can find this feature in the emulator's Additional Tools window:
you need to use SaveSong from MediaLibrary
have a look at this
One of the new features of the Windows Phone 8 SDK is the ability to save(add) songs to the phone's MediaLibrary.
Try this out for Songs.
for photos
Try this

Microsoft Player Framework not playing local files

I am developing a windows 8 app in winjs and one of its features is to be able to play local video files. So far I am using:
Windows.System.Launcher.launchFileAsync
Which works fine but obviously suspends the app and opens the video with their default video program. I would rather keep the user in the app so I tried to implement it using the Microsoft Player Framework(http://playerframework.codeplex.com/). I know the framework is referenced correctly etc because it can play video files both in the 'app data' directory and online.
However when I try to play files within a folder that the user has picked (with the folder picker) or the videos library that the app has declared access to, the video fails to play. The app can however change the name, create new files in the directory and delete files so I struggle to see a permissions problem.
To get the path of the file I am using getFileAsync( and using the path property and simply using that to set the src property of the MediaPlayer control.
Do any windows 8 app gurus have any suggestions as to why it is not working?
Thanks in advance
p.s. let me know if any further info is required

get current playing song list windows phone 7

I want to display the list of songs in current playing lists, If users play music in my app, I could know what playlist is playing but if they were playing in zune app then switch to my app, my song list will be empty, even though the playlists is still running.
For example: if users's playing a playlists in windows phone 7 by Zune app, then they navigate to my App, how do I get that current play lists?
The current Windows Phone 7 APIs only integrate with phone media via the MediaPlayerLauncher, which allows you to launch media from your application.
The Mango (7.1) APIs allow you to integrate with the media + video hub, however, the APIs are still pretty simple. You can determine the currently playing media via MediaHistory.NowPlaying.
MediaHistory.NowPlaying is of Type MediaHistoryItem which has the Properties Title and ImageStream. You could add the Title and Image to your collection.
You can use MediaPlayer.Queue property of static class MediaPlayer from Microsoft.Xna.Framework library

WP7 emulator won't play mp4

I was wondering if the format is really supported. I am developing a simple WP7 application which contains a MediaElement such as the one shown bellow:
For the sake of testing, I subscribed for the MediaFailed event and it fires always.
If I try to open the file in the browser, it opens successfully. If I put the same MediaElement in a regular SL application - it runs. If I give some .wmv file to the MediaElement in the WP7 app - it runs. (http://files.ch9.ms/ch9/5baa/ea2aeba2-9dcc-4565-942a-9e6101655baa/DevKid_ch9.wmv).
Got any ideas?
One thing to watch is that video won't play if you're connected using USB to the Zune software.
I just tried your video using this IronRuby script - it plays fine.
For more help, you can check out the Channel9 application on codeplex - that works well.
Windows Phone 7 supports the MP4 container, but only supports a certain set of codecs. I believe this list is a pretty accurate list of what's supported.
It seems that you can't play mp4 files when Zune is running. However, you can still debug your application by connecting to your phone using WPConnect.exe which by default is installed to C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Tools\WPConnect. You'll need to close Zune before running WPConnect, but after you have run it, you should be able to F5 in Visual Studio and the the debugger running your code on the phone.
One other thing to keep in mind is that Windows Phone 7 requires the file (or URL) extension to match with the codec, so for mp4 files you need to have file name ending with .mp4, otherwise it won't play.

Resources