I'm a begginer in visual basic wpf apps, i just want to click on a button and it play the song.
My task is to put some alarm songs on this app just to give it to my mate and he chooses the best alarm song.
You can use System.Windows.Controls.MediaElement to play music files.
http://vbcity.com/blogs/xtab/archive/2009/06/29/how-to-play-sounds-and-music-in-wpf.aspx
Related
I'd like to pin a custom tile to the start menu and launch a website or desktop file when I click on it. There's an app called Better start menu, but it has to keep running and not the best experience.
Can I just place some HTML/XML markup at a specific location and it gets displayed?
i just implemented the PLAY_VIDEO menu item linked to a youtube video and it works.
The only enhancement i want to make to the flow is to remove one tap in order to stream the video.
Now the flow is the following:
1) User taps to prompt the menu for the card. The PLAY menu item appears.
2) The user taps on PLAY, the video start to load
3) The user needs to tap again to start the video.
Is there a way to stream the video right after the tap from point 2?
Kind regards
There is currently no way to setup a menu hierarchy, which I think is what you're getting at.
Plus, having that extra tap would be an inconsistent experience with the way playback behaves on Glass in the native app and other apps being created.
Why do you want to do the extra tap?
I'm building a Google Glass app and notice that New York Times has their little New York Times icon to the right of the "Just Now" time indicator in the lower right of each card. How are they doing this? Is this something I can upload in the API Console, or do I have to manually add this as HTML in each HTML page card? And how do you do it in the Glass browser? I don't see any examples in the templates. Any help is appreciated!
These icons are set up during the launch process for Glassware. Follow the steps on this page to submit your Glassware for launch review.
The little icon in the lower right corner that you see is called the source icon. Source icons are specified when you launch your Glassware and set up higher quota.
I want to create videos of myself doing app demos on my iPod, how do I create a video version of screen shot?
Unfortunately, there is no way too take screen videos. You could just take a screen shot of the screen every time you change the screen, and perhaps edit the photo to show what you changed. Apple should definitely make a way to create screen videos.
There is no way to screenshot a video. But you could always take a picture of the video by pressing the home button and the lock button at the same time. Good luck!
I am working on wondows mango app and I have two XAML pages(say page1 and page2). On page1 I have a playlist and on page2 I have a media element that plays the song selected on page1, now what I want is to keep song playing in background as user switches between pages. I got a few links that keep song playing when app gets in background but not when a page is closed(by clicking back button).
How can I achieve this, all suggestions, pointers are welcome.
Thanks,
Ravi Gupta - :( newbie at windows phone
You'll want to use the BackgroundAudioPlayer for this. MSDN has a complete sample for playing audio in the background. You can download their sample from here. You can add a project to you application to handle processing background audio (if you need the audio to play after the app closes) or you can handle it all within the application itself my subscribing to the PlayStateChanged event. From the event you can set the next track.
You can also use XNA's MediaPlayer() See: https://stackoverflow.com/a/11385865/1510036