The winRT MediaElement integrates very nicely with the windows8 volume controls play and pause buttons.
I will like to display artist information also, I have the info how to I set it on the MediaElement?
Thank you,
MediaElement is used to play audio or video. If you want to display anything else - you need to use some other controls overlaid on top of the MediaElement.
You can set the artist name, track name & album artwork using the MediaControl class:
http://msdn.microsoft.com/en-gb/library/windows/apps/windows.media.mediacontrol
Related
I'm creating a mini game. It has music background and gun sound. But I can not play them at the same time.
How can I do it ???
You can't - as MSDN says:
When a MediaElement control plays audio or video content, any background sounds or media already playing are halted. The app launches the playback experience when the user taps the control. Only one MediaElement control can operate at a time.
Instead you can try to use SoundEffect from XNA to play your gun sound.
I am Developing Windows Phone Application. I am playing a song from YouTube on first page. I want to ask that when when we pause a song on page and then if we move to another page then the song should resume from point where i pause it on before page. How can we do this?
Use this link to play song using bacground audio player in windows phone, it could help you
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978%28v=vs.105%29.aspx
I stuck in a big problem I am playing audio in background using BackgroundAudioPlayer working fine while I am playing another audio file using MediaElement on foreground the background sound is stopped.I want to play both sound simultaneously background and foreground please let me how it will be done.
MediaElement and BackgroundAudioPlayer are exclusive - you can only use one of these at a time.
You are able to play additional sounds using the XNA SoundEffect APIs however. For example of these APIs see this blog entry.
i work on as3 mobile project , iam using starling as Framework , how i can added a video on starling using stage video , not video player .
stage video option is a lot better for performance .
any one to advice me.
answer :
add your stage video class inside starling display object as overlay :
Starling.current.nativeOverlay.addChild(stageVideoPlayer)
Hi sameer I couldn't understand you need to add a device's camera recording a video or need to add any video file on stage using starling? Give detailed explanation.
I want to use the Charmless youtube player in my application and I want to remove youtube logo from the Player. How can i achieve this thing? My application is developed using AS3.
Simply add ?modestbranding=1 to the end of your URL.
See more here.
modestbranding (supported players: AS3, HTML5)
This parameter lets you use a YouTube player that does not show a YouTube logo.
Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar.
Note that a small YouTube text label will still display in the upper-right corner of a paused
video when the user's mouse pointer hovers over the player.
try this API player code.
http://www.youtube.com/apiplayer?version=3&modestbranding=1&showinfo=1
Chromeless player, the modestbranding has no effect unless "showinfo=1" is must for API player.
I tried to remove youtube logo by many ways. But I didn't get success to remove it from the youtube player.
Finally I check the youtube player functionality and behavior. When video is attached to the player then it will be displayed in center. if player container height is bigger then video height so both (top and bottom) side Black strip will be appeared. Just we have to hide the Black Strip from the user display area using masking concept. (In Flash we can apply the mask to container and same thing will be done using the DOM model in Javascript.)
In directly it will be removed as per end user perspective not actually. so Indirect way youtube logo is removed from the player.
you can try GKPlugin this plugin using JWPlayer 5.x at:
https://drive.google.com/folderview?id=0B0OhZLpuvlSRTDZLMXowQWNMZTA#list