c# - Sound interaction between two applications -



c# - Sound interaction between two applications -

i have built windows phone application video player show logo animation @ startup. if launch external application (like spotify) background sound (for illustration song) , switch application, song stopped (probably because of logo animation) though logo animation doesn't have audio.

i used mediaelement logo animation :

<mediaelement autoplay="false" name="media" source="assets/video.mp4"/>

in code behind utilize media.play(); start logo animation.

is there way avoid stopping sound of other applications?

from msdn:

when mediaelement command plays sound or video content, background sounds or media playing halted. app launches playback experience when user taps control. 1 mediaelement command can operate @ time.

what means you need redesign logo run via xaml animations or other means besides mediaelement if want background sound function properly. depending on animation coming from, might simple or might outside scope. you'll have determine if benefits of background sound (pandora, spotify, podcasts, etc) outweighs work required.

that beingness said, i've used big number (probably 20% in testing) of apps cancel background sound every time come in them, , it's extremely frustrating. think users prefer fixed application background sound not interrupted.

c# xaml audio windows-phone-8

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -