Window Phone 8 - Default Media player file url scheme - windows-phone-7

Is it possible to open the default Media Player in Windows Phone 8, from a browser's url, using some kind of scheme?
I would also like to know If there are other ways to open the media player from the browser.
Thanks!

There's nothing documented on MSDN as a registered URI scheme for the launching default media player.
As per this MSDN page about file type associations if you try and link to a .MP3 or .AAC file or other audio or video file it will launch the media player and play the file you point to.
Also it states:
Sometimes Internet Explorer overrides file associations: it launches the built-in media player to handle all music and video file types. Specifically, any file that has an audio/ or video/ content type. For example, your app can handle a (non-reserved) music and video file when it is launched from an email attachment. But if the same file is launched from Internet Explorer, the built-in media player will handle the file.

Related

Save pictures to custom folder in media library

WhatsApp now saves pictures to a custom folder named "WhatsApp" in the media library.
Is WhatsApp using a undocumented API or is this possible for every developer?
Right now I am only aware of the possibility to save pictures to the "Camera Roll" or to the "Saved Pictures".
It appears WhatsApp has special permission to do that as no current APIs for Windows Phone 8 (with GDR3) allow you to specify a folder name.
The hope is that Windows Phone 8.1 will introduce new APIs for both saving pictures and video.

How to download and save audio and video in wp7 mediaLiabrary?

Can you please tell me how to save or store sample audio and vidio into mediaLibrary.From my application if i long press on a picture i get a save picture option that saves the picture under saved pictures category in MediaLibrary. Similarly how do i save a mp3 and mp4 file.
I am able to downloadcontent and play the audio on emulator directly but not able to save any mp3 file from the web onto the MediaLibrary. Is there any other way to add songs to MediaLibrary?
Please Help me.
Thanks
The Windows Phone 7 API does not allow saving audio and video to the Media library, only on the isolated storage of the application itself.
This is in contrast to Pictures, which like you said you can save to the Media library.

WP7 how to use MediaPlayerLauncher with song in library

This article says that
MediaPlayerLauncher launches the Media Player application and plays
the specified media file. Media files are stored in isolated storage
or in the application's installation directory.
However, I want to select songs from a certain album from library (using MediaLibrary) and launch the default Media player to play it. How to do this ?
Basically you can't do that with the current API.
The MediaPlayerLauncher takes a parameter of type
MediaLocationType,
and from the documentation we can see that there's no option to access the media library
Use MediaLocationType.Data for media files that are stored in isolated storage. Use MediaLocationType.Install for media files that are part of the application project. They are bundled into the .xap file and stored in the installation directory of the application.
I've created a UserVoice request for this feature. Hopefully we'll get it with the next update if enough people vote for it.

wp7 player freezes if html5 <video> and isolated storage

I have video file located in my application isolated storage and would like to play it from html using video tag. Video player runs and then hangs on "loading..". Can someone manage to get video played using html5 video tag and isolated storage?
My observations and tests (HTC HD7, Mango Beta 2 - 7.10.7712.60).
I can play this video file using MediaElement or MediaPlayerLauncher. So the file is correct.
If I publish this file in internet and change reference to absolute (src="http://absoluteUri.mp4") video file is opened correctly. So it seems there is a problem with relative path and isolated storage.
If i specify incorrect relative path I see another message so relative path in my experiments is correct.
audio html5 tag works with isolated storage files very well; video - doesn't (freezes) but works correct if I reference to audio file in internet
For "/folder/video.mp4" and "\folder\video.mp4" device opens different playback screens, but both freeze with 'loading' and 'opening' messages.
There is MediaPlayerLauncher C# class that works with "folder/video.mp4" name (doesn't freeze)and does not work with leading slash in path - "/folder/video.mp4" - throws file not found; contrariwise tag can't find file w/o leading slash, even in root folder.
Playback screens triggered by MediaPlayerLauncher and html tag look identical but in first case it works and in second it freezes.
EDIT:
Application overview: the app is general Windows Phone Silverlight app with embedded WebBrowser control where html is hosted. Why I need this? - I'm working on cross-mobile platform where application is defined as html + js.
Erick Fleck covers this pretty good at the MSDN forums in this blog post - http://social.msdn.microsoft.com/forums/en-us/wpdevelop/thread/190abd75-3b45-4454-96ab-c32fb19c4664 . Looks like it comes down to 'where you store your content', so the other apps would have to adapt their structure if you want it to be truly xplat. Or you could do some 'adaptive urls'.

QuickTime video codec configuration

So I'm porting an app from Windows to Mac, and part of the app deals with creating movie files. On Windows, there's a group of functions like ICOpen and ICConfigure, which signify to the video compression driver to open up a configuration box for the selected codec. Is there anything like that for QuickTime on Mac?
You will need to use straight Quicktime-C calls for this, but the function you want is called MovieExportDoUserDialog.
See the QTMovieExportSettings article on CocoaDev for the full details.

Resources