Category Archives: media

video playback under lock

I have an app that plays audio and video.  Audio runs fine under locked screen, but video stops when running under lock.  It is exact same code and both are using MediaElement. This is by design.  Video is not allowed … Continue reading

Share
Posted in media, wp7 | Tagged , | Leave a comment

detect if phone is connected to zune

Since having a phone tethered to Zune locks the MediaLibrary, I would like to detect in my app when Zune is connected. Is there an API? There is no API designed for this specific purpose.  Checking for NetworkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet … Continue reading

Share
Posted in media, wp7 | Tagged | 2 Comments

Seeking in MediaPlayer

I am using MediaPlayer, how can I seek to a specific position. MediaPlayer can not seek. Use MediaElement (if your application is Silverlight).

Share
Posted in media, wp7 | Leave a comment

playing asx on the phone

I am trying to play an asx playlist on the phone.  I can play the videos individually, but not the asx. The phone pipeline doesn’t support .asx playlists, even though the content in the list may be supported.A work around … Continue reading

Share
Posted in media, wp7 | Tagged | Leave a comment

playing youtube video in my app

How can I play youtube videos in my app? Use the WebBrowserTask and open the target URL in the browser; if the youtube app is installed, it will play, if not installed, it will prompt the user to install and … Continue reading

Share
Posted in media, wp7 | Leave a comment

Saving audio and video to libraries

I see that I can save images to the photos hub.  How can I save audio to the music hub? Unfortunately you can’t. You can enumerate audio in the music hub, but the song collection is read-only.

Share
Posted in media, wp7 | Leave a comment

Image decoding in background thread

I am loading a lot (lot) of images, and want to do the decoding on a background thread, I tried BitmapImage but it did not work. In the current release you can’t do this using BitmapImage. You can try decoding … Continue reading

Share
Posted in media, wp7 | Tagged | 1 Comment