Add background audio to my Project Siena App

I want my audio player to play the song even if the application is minimized....
Please Help....
Searched many forums but Didn't find
audtag.setAttribute("msAudioCategory", "BackgroundCapableMedia");
or
<audio id="audtag" autoplay="true" msaudiocategory="BackgroundCapableMedia" src="/sounds/rihana.mp3"></audio>
like stuff......

Hello,
As long as you stay in your app you can do the following in Siena.
Assuming you have your audioplayer on screen1. Set the start parameter of the player to "audiostart" and the loop to "true"
In the onVisible of the screen you can then add the following (you can add that to a button or something else too)
UpdateContext({startaudio:false});UpdateContext({startaudio:true})
That will keep on playing the audio regardless of the fact that you are moving away from the screen.
Just make sure that your parameter autopause is set to False (same with autostart).
Reading your post you want in to play even when moving completely away from the app (e.g. start doing something completely else).
I'm not sure that is possible today with Siena. If that's a function you want to add to the wishlist you can add it to
https://social.technet.microsoft.com/Forums/en-US/2e1f9446-56b2-419a-9c17-7037d2cd6146/from-the-community-overview-of-requested-additional-functionality?forum=projectsiena
Regards
StonyArc
http://www.stonyarc.com http://www.xboxlivenation.com

Similar Messages

  • Surface Pro 3, Project Siena Apps, Need CSS for that form factor ASAP please

    Now that the Surface Pro 3 is out, I really don't like the black bars that appear above and below Project Siena Apps.
    I don't know enough to figure out how *I* can edit the CSS which currently states:
    #publishedCanvas {
        /* TASK: 73670: Add support for different form factors. */
        width: 1366px;
        height: 768px;
        background-color: transparent;
    but I'd like the code I should use (at my own risk, I know) to fix the CSS for all my apps.
    Please, MS folks or anyone?
    -- Barb Bowman

    Now that the Surface Pro 3 is out, I really don't like the black bars that appear above and below Project Siena Apps.
    I don't know enough to figure out how *I* can edit the CSS which currently states:
    #publishedCanvas {
        /* TASK: 73670: Add support for different form factors. */
        width: 1366px;
        height: 768px;
        background-color: transparent;
    but I'd like the code I should use (at my own risk, I know) to fix the CSS for all my apps.
    Please, MS folks or anyone?
    -- Barb Bowman

  • How to incorporate live tiles into a Project Siena app (kinda)

    Hi guys,
    I have been playing around with getting some live tiles into my project siena app (Astronomy Action Centre), and at last I have managed it.
    What I did was as follows
    Publish your app as normal and import it into Visual Studio
    When you have it imported paste this code into the init.js file. I pasted mine into the following location of that file. Near the top of the file (just before the var statements)
    CODE TO PASTE
    var notifications = Windows.UI.Notifications;
                    var recurrence = notifications.PeriodicUpdateRecurrence.hour;
                    var urls = [
                        new Windows.Foundation.Uri("url1"),
                        new Windows.Foundation.Uri("url2"),
                        new Windows.Foundation.Uri("url3"),
                        new Windows.Foundation.Uri("url4"),
                        new Windows.Foundation.Uri("url5")
                    notifications.TileUpdateManager.createTileUpdaterForApplication().enableNotificationQueue(true);
                    notifications.TileUpdateManager.createTileUpdaterForApplication().startPeriodicUpdateBatch(urls, recurrence);
    END OF PASTE
    What you need to do now is replace the url1,url2,url3,url4,url5 with data sources.
    I got mine from http://www.buildmypinnedsite.com/en
    This site creates live tiles for your webpage but we are going to use the datasources for our app.
    Enter the RSS details of the site that you want to have as a live tile into this site.
    Here is the RSS url from my own site
    http://www.viewfromascope.com/feed/
    follow the steps through to the last one and you will get a code like this
    <meta
    name="msapplication-TileColor"
    content="#000000"/>
    <meta
    name="msapplication-notification"
    content="frequency=30;polling-uri=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=1;polling-uri2=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=2;polling-uri3=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=3;polling-uri4=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=4;polling-uri5=http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=5;
    cycle=1"/>
    Now copy the links below in place of the url1,url2,url3,url4,url5 in the code we pasted into visual studio.
    http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=1
    http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=2
    http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=3
    http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=4
    http://notifications.buildmypinnedsite.com/?feed=http://www.viewfromascope.com/feed/&amp;id=5
    Now save and run your app, if you browse to your Start menu and pin your app you should see the live tiles updating.
    the caveat is that you have no control over the layout of the tiles, it seems to work best in wide and square format, the large tile updates but keeps repeating the same news.
    So there it is live tiles on a project siena app.
    if anyone can add to this I would love to hear from you, or if you have any questions please let me know.
    Latest Version of my own Project Siena App with live tiles
    http://apps.microsoft.com/webpdp/app/0c8cff77-1e0f-445b-9628-92fe602d2c98
    Ronan

    If you aren't going to use a live tile on an actual website, you don't have to use buildmypinnedsite dot com.
    Here is a template. If you have multiple REST/RSS sources, you can use different sources for each of the 5 items that are cycled. They can be from different sites. You need to check if images in the feeds are enclosures. If they are, then the feed won't
    work properly. You can use text and image based feeds or text only, just don't use any that have enclosed images. Here is a template you can copy and paste. replace the red text with your own customized information.
    var notifications = Windows.UI.Notifications;
    var recurrence = notifications.PeriodicUpdateRecurrence.HalfHour;
    var urls = [
    new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed1&amp;id=1"),
    new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed2&amp;id=2"),
    new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed3&amp;id=3"),
    new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed4&amp;id=4"),
    new Windows.Foundation.Uri("http://notifications.buildmypinnedsite.com/?feed=http://whateverrssfeed5&amp;id=5")
    notifications.TileUpdateManager.createTileUpdaterForApplication().enableNotificationQueue(true);
    notifications.TileUpdateManager.createTileUpdaterForApplication().startPeriodicUpdateBatch(urls, recurrence);
    -- Barb Bowman

  • My latest Project Siena App is now in the store

    I decided to build yet another Project Siena App the other day when I was semi snowed in.
    My NWS-NOAA Weather Prediction Mini Center Windows 8 app lets you quickly view the National Forecast Chart for three days, shows the Quantitative Precipitation Forecasts for up to 7 days, and view Excessive Rainfall Forecasts. It’s available now in the
    Windows Store (for USA). You can read more about it (and my love for Project Siena) at
    http://digitalmediaphile.com/index.php/2014/02/20/my-weather-prediction-mini-center-app-is-now-available/.
    This very simple app went through store certification in record time yesterday. Made my head spin.
    Submitted at 1:15pm
    Approved at 2:10pm
    Available at 2:45pm
    All times above Eastern.
    Main screen:
    Can't wait to see what the next release of Project Siena brings. Hoping for Portrait view CSS support and Windows 8.1 target support.
    -- Barb Bowman

    On Tue, 6 May 2014 11:05:13 +0000, MonaTech wrote:
    >In terms of styling what I do is
    >
    >1. create an excel file with 1 column titled num1 or something
    >
    >2. Beneath that add sequential numbers 1,2,3,4,5 (the numbers correspond to the number of pages in your gallery), create a table and save the file
    >
    >3. Add that file as a data source.
    >
    >4. Create a custom gallery and make set the items to the table,
    >
    >5. Start adding your elements to the first section of the gallery
    >
    >6. in the visible property add if(thisitem!num1=1,true,false)
    >
    >This will make that element appear on the first section of the gallery, if you put if(thisitem!num1=2,true,false) then it will appear in the second element and so on.
    >
    >It does get a little awkward when you start adding more elements but if you label each element correctly it makes live an awful lot easier.
    >
    >Using this method you can add items of different sizes and shapes to each element of the custom gallery. So you could make something like the bing news app if you like.
    >
    >I hope this helps, if you have any other questions please let me know, also I would love to see your siena forum app, I really like the layouts of your other apps and would be keen to see your app on the forum.
      that's really cool. I like that alot.
     After I saw your post about the app, I stopped playing with mine ;-)  Maybe
    I'll finish it... But since yours works, I didn't see any need <G> as I was not sure how to fix the messy HTML tags in the description. Like I said, MS has an RSS feed that leaves a lot to be desired.
    -- Barb Bowman

  • Project Siena app and analytics system

    Hi,
      how I could implement analytics system in my Projects Siena app?
    Thanks,
    Mantvydas

    Hi Mantvydas,
    Within Siena, there is no native support for instrumenting your app. However, once you publish your app from Siena and
    convert to an *.appx package, that is consumable via Visual Studio, then you could look at leveraging technologies such as
    AppInsights for Visual Studio Online to accomplish this.
    AppInsights gives you full usage analytics, that informs you exactly how your app is being used and provides detailed performance data about your app. For more details about implementing such within your app, you could review
    this comprehensive post from the Windows Apps Team.
    Hope this helps, thanks!

  • My 2 Project Siena Apps listed as New and Rising in Windows Store

    Hmmn, my two latest Project  Siena apps, GOES Satellite Imagery and Doppler Radar Mosaic Imagery are
     listed as new and rising with some heavyweight products like BBC and Weather Channel. I must be hallucinating. I have no idea what being listed with such heavy hitters means, but...
    -- Barb Bowman

    Nice one Barb, congratulations

  • Add project siena app to favorite key on keyboard

    Hello and merry Christmas to everybody
    Have anyone tried to add widows8 app as project sienna into a favourite key on your keyboard?
    Sorry for asking that here but I haven't found better discussion for windows comfort 5000 keyboards or a solution on net

    Hello,
    As long as you stay in your app you can do the following in Siena.
    Assuming you have your audioplayer on screen1. Set the start parameter of the player to "audiostart" and the loop to "true"
    In the onVisible of the screen you can then add the following (you can add that to a button or something else too)
    UpdateContext({startaudio:false});UpdateContext({startaudio:true})
    That will keep on playing the audio regardless of the fact that you are moving away from the screen.
    Just make sure that your parameter autopause is set to False (same with autostart).
    Reading your post you want in to play even when moving completely away from the app (e.g. start doing something completely else).
    I'm not sure that is possible today with Siena. If that's a function you want to add to the wishlist you can add it to
    https://social.technet.microsoft.com/Forums/en-US/2e1f9446-56b2-419a-9c17-7037d2cd6146/from-the-community-overview-of-requested-additional-functionality?forum=projectsiena
    Regards
    StonyArc
    http://www.stonyarc.com http://www.xboxlivenation.com

  • Live Tile - Project Siena App

    I understand that it is not possible to create / configure a live tile within Project Siena.
    But is it possible to add this functionality once the project has been transferred to visual studio.
    I have been looking online and have seen some examples of creating a live tile but I have no idea where the code should go within the project.
    Any help would be most appreciated.
    Ronan

    Hi MonaTech, 
    as you've noticed Live Tiles are not supported in Siena Beta 2. If you want to invest time in experimenting with a homegrown solution in this area, I can provide a hint for a starting point. That said, please be aware that once you start modifying the published
    package you are completely at your own risk and any modifications you do today are not guaranteed to work in the future as the layout of the published package is implementation detail and not an interface.
    You can take a look at js/init.js in the published package. It contains the initialization logic of the published app and you might find it to be a useful starting point.
    Hope this helps!
    Manski

  • Add background audio?

    On the homescreen of my siena app, i'd like audio to start playing in the background once the app is loaded. navigating away from the screen will stop audio; return to the homescreen and audio plays. How do i do that?

    If it is a short audio clip, first set Data>Loop = true
    Then set Data>DefaultPaused to audioPause -- you're essentially setting it to a variable whose value will determine if the audio plays or not.
    On the button you use to Navigate away, set Behavior>OnSelect to UpdateContext({audioPause:true}); Navigate(Screen2,""). Clicking the button sets audioPause to true and that stops the audio.
    Finally, on the button you use to Navigate back to the homescreen, set Behavior>OnSelect to Navigate(Screen1,"",{audioPause:false}). 

  • My first Project Siena APP! - Cooking Utility Belt

    Just started using Project Siena and I built my first app. What a fun experience. There was a bit of a learning curve and some additional documentation would have helped but the forum came through for me.  Here is my app, check it out :)
    Cooking Utility Belt
    Tim

    Doing some more research, I came across this in the free e-book from Microsoft Press, Programming Windows Store Apps with HTML, CSS, and JavaScript (Second Edition):
    For basic licensing and trial enforcement, the good news is that both are effortless: the app doesn’t need to do anything at all! A user cannot acquire your app without going through the Store, and even if he did manage to, he’d have to have a developer
    license to install and run it. Furthermore, because the Store automatically tracks trial periods for apps, Windows will simply not launch an app once the trial is expired. Instead, Windows will redirect the user to the product’s page in the Store where the
    user can purchase a full license.
    What that means to me is that when submitting the app in the store you can select if it's a trial mode or not.
    Although it's not as elegant of a solution with code, at least there isn't a concern of losing functionality when a new version of Siena is released, either!
    Thor

  • Custom CSS in Project Siena App

    Anyone :-)  ,
    I have a very simple app that displays images in a gallery.  All I want to do is edit the code of the app so I can add some CSS rules to the images to allow for pinching and zooming: 
    http://msdn.microsoft.com/en-us/library/ie/hh920761(v=vs.85).aspx
    The TechNet Site for Siena says it’s possible to edit the files: 
    http://technet.microsoft.com/en-us/dn518139  I just can’t seem to find the
    correct file(s) to edit to make it happen. 
    Does anyone know which file(s) this info is stored in and/or the steps needed to accomplish something like this?
    Steps taken to locate the file(s)
    I create the Siena App (placing a huge, red border around my images so I could find them in the code better)
    Saved it
    Published it (resources locally)
    Opened all files in the "PublishedPackage" folder in an attempt to locate my huge red bordered image formatting
    Thanks for any help!!!!
    Thanks, Matt

    Hi Matt,
    You can find the code for the controls inside the ctrllib folder of the published package. For example, the CSS for the gallery can be found in PublishedPackage\%APPNAME%\ctrllib\gallery\css.
    To see the code generated for the expressions associated with visual properties go to PublishedPackage\%APPNAME%\js\init.js
    For example if you add a simple Image gallery and set the image border thickness to 4 you will see the following code in
    init.js
    AppMagic.AuthoringTool.Runtime.getNamedObject("Image1",null).OpenAjax.setPropertyLambdaInternal("BorderThickness",function (bc) { return 4; },bc);
    Hope that helps.
    Olivier

  • Add background audio playing in v.26?

    I think it'll be great if the new folio version could support background audio playing. Since many publications integrate audio in the book, some books are even purely audio books with texts, if the user could turn off the screen while listen to the text, that'll be really cool. So I am suggesting add this function in the update of the folio version. What do you guys think?

    This is one of the most incomprensibile things that happen in DPS.
    This is not a Bug because if it was bug would mean that this options doesn't work properly.
    In this case this options dosen't work at all.
    This options was released in version 23 and now we are at version 25...
    No one at the developer team test it before delivering?
    Is it really possible?
    I can't belive.
    I work every day with DPS, and I was one of the first in Italy, I love this solution but sometimes is very difficult to justify.
    Tomorrow I have to register some video-tutorial on new features in DPS... what should I say?
    Andrea

  • Project Siena app Publish Issue

    Hi all,
    I have just started creating Siena App and created simple translator app, its working fine but when I try to publish it using File-->Publish it shows me a warning prompt saying "Download Update require" when I click on "Download" the
    another windows appears and says "Error while Downloadin".
    Can you please tell me what is the reason behind such an issue. I searched on the net but could not find helpful answer and any post related to its resolution.
    Any help would be highly appreciated.
    Thanks.

    What Thor is suggesting is reasonable but it is odd if there is some restriction. The download update required is going to open web site.
    I would suggest trying this again and if it continues to fail, you might want to capture a Fiddler trace and we can take a look at it.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Harold Kless Microsoft
    Online Community Support

  • Using s SQL server as a data source for Project Siena (An AX SQL database more specificaly)?

    I cant seem to find this information on the internet yet so I figured I would ask my question here.
    I would like to pull data from a Dynamics AX sql database to use in a project siena app. I have heard that this is something that is planned for a future release of Siena but is there any way this can be done currently?
    Thank you

    Hi Philip,
    It's not supported in the current version. The following thread from Vijay outlines some of the features targeted for the next release:
    http://social.technet.microsoft.com/Forums/en-US/405aed19-21b8-4a36-bf45-b1d962567c3b/some-functionality-in-the-next-siena-refresh?forum=projectsiena. As you can see, it will include read/write over web services. So, if your data is exposed using services,
    you should be able to meet your requirements.
    Thanks
    Robin

  • Project Siena can't download?

    Hello everyone,
    When I try to Publish a simple Project Siena app it comes up with a dialogue saying Publish update required, I click download then it brings up an error message saying Download error, There was a problem updating Project Siena. Please try again.
    What should I do? How do I publish my app?
    Any help would be appreciated.
    Thanks, Cooliew

    Chopsrob and ASK47,
    If you're using a work issued laptop it may be a proxy / policy issue?  
    Sounds similar to what this person reported:
    http://social.technet.microsoft.com/Forums/en-US/38bf116e-e548-4ff0-967f-a0a3c756d4fd/project-siena-app-publish-issue?forum=projectsiena
    And a bit more on what Siena is doing can be found here (user experiencing a similar problem):
    http://social.technet.microsoft.com/Forums/en-US/498c6a07-6c9e-4e5b-84f6-95f9e06b0790/siena-installapp-fails-to-download?forum=projectsiena
    Thor

Maybe you are looking for

  • Enable extensions not in Develop drop down list.

    While searching for a solution to get safari 8.0 to run extensions I have come across two problems. First I cannot turn them on. The slider just moves back to 'off' when I slide it to 'on'. Second, I found a website that said I need to enable extensi

  • How do i cancel after the circles of hell go round and round?

    I have been in the circles of hell trying to cancel my subscription which my credit card, i was surprised to learn, had been charged for- only to find it is already cancelled! See below Adobe ExportPDF, Annual Cancelled: Effective February 2, 2016 Re

  • Snow Leopard, World of Warcraft & iTunes Crash

    Was searching through these and other forums, but haven't seen anyone else with this issue. Upgraded to Snow Leopard. WoW runs great. iTunes runs great. Everything seems to run very fast... However, when I have an iTunes video window open while playi

  • Photoshop CS4 Contact Sheet Layouts

    I found the place to start the contact ii sheet in Photoshop CS4 (File > Automate+ menu) but I only see one layout. How do I find and chose differant layouts.

  • Urgent ,,,, Query help

    Hi , Oracle version : 9i Table reference : Hr.Employees Query: Thanks .. Regards Rahul Edited by: Mac_Freak_Rahul on Oct 25, 2010 12:12 PM