Scott's profileInsertableContentSourceBlogLists Tools Help

Blog


    December 22

    LiveNet 0.2 Released: Silverlight Streaming Added

    Luke and I have released Version 0.2 of LiveNet. This release comes with the addition of Silverlight Streaming From Windows Live and allows you to add, delete and get your Silverlight applications that you're hosting with Windows Live.

    As part of the release, I have included a sample application that shows just how easy it is to us SLS with LiveNet, here is a sample of that code:

            LiveMedia m_livemedia;
            MediaFileSet[] sets;
            MediaFile[] files;
    
            private void button1_Click(object sender, EventArgs e)
            {
                listBox1.Items.Clear();
                if (string.IsNullOrEmpty(textBox1.Text) ||
                    string.IsNullOrEmpty(textBox2.Text))
                {
                    MessageBox.Show("Either you have entered no Account ID or Passkey", 
                        "Doh", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
    
                m_livemedia = new LiveMedia(textBox1.Text, textBox2.Text);
                sets = m_livemedia.ListFileSets();
                foreach (MediaFileSet set in sets)
                {
                    listBox1.Items.Add(set.Name);
                }
            }
    
            private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
            {
                listBox2.Items.Clear();
                int i = listBox1.SelectedIndex;
                MediaFileSet set = sets[i];
                files = set.Files;
                foreach (MediaFile file in files)
                {
                    listBox2.Items.Add(file.FileName);
                }
            }
    

    And when run in the sample app, you will end up with the following:

    image

    Which you can preview the selected application. This has been done using a client app, but can just as easily be integration into an ASP.Net project.

    SL

    Comments (5)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    1 day ago
    No namewrote:
    http://www.adapterlist.com/dell/inspiron-1100-series.htm dell inspiron 1100 series battery ,
    http://www.adapterlist.com/dell/inspiron-1150.htm dell inspiron 1150 battery ,
    http://www.adapterlist.com/dell/inspiron-5150.htm dell inspiron 5150 battery ,
    http://www.adapterlist.com/dell/inspiron-5100.htm dell inspiron 5100 battery ,
    http://www.adapterlist.com/dell/inspiron-1000.htm dell inspiron 1000 battery ,
    http://www.adapterlist.com/dell/inspiron-1200.htm dell inspiron 1200 battery ,
    http://www.adapterlist.com/dell/inspiron-2200.htm dell inspiron 2200 battery ,
    http://www.adapterlist.com/dell/e1405.htm dell e1405 battery ,
    http://www.adapterlist.com/dell/inspiron-630m.htm dell inspiron 630m battery ,
    http://www.adapterlist.com/dell/inspiron-640m.htm dell inspiron 640m battery ,
    http://www.adapterlist.com/dell/xps-m140.htm dell xps m140 battery ,
    http://www.adapterlist.com/dell/xps-1330.htm dell xps 1330 battery ,
    http://www.adapterlist.com/dell/xps-m1330.htm dell xps m1330 battery ,
    http://www.adapterlist.com/dell/inspiron-6400.htm dell inspiron 6400 battery ,
    http://www.adapterlist.com/dell/Latitude-131L.htm dell Latitude 131L battery ,
    http://www.adapterlist.com/dell/Vostro-1000.htm dell Vostro 1000 battery ,
    http://www.adapterlist.com/dell/1501.htm dell 1501 battery ,
    http://www.adapterlist.com/dell/e1505.htm dell e1505 battery ,
    http://www.adapterlist.com/dell/kd476.htm dell kd476 battery ,
    http://www.adapterlist.com/dell/gd761.htm dell gd761 battery ,
    http://www.adapterlist.com/dell/inspiron-9100.htm dell inspiron 9100 battery ,
    http://www.adapterlist.com/dell/dell-inspiron-xps.htm dell dell inspiron xps battery ,
    http://www.adapterlist.com/dell/inspiron-2000.htm dell inspiron 2000 battery ,
    http://www.adapterlist.com/dell/inspiron-2100.htm dell inspiron 2100 battery ,
    http://www.adapterlist.com/dell/inspiron-2800.htm dell inspiron 2800 battery ,
    http://www.adapterlist.com/dell/latitude-ls-400.htm dell latitude ls 400 battery ,
    http://www.adapterlist.com/dell/latitude-c400.htm dell latitude c400 battery ,
    http://www.adapterlist.com/dell/4e369.htm dell 4e369 battery ,
    http://www.adapterlist.com/dell/d620.htm dell d620 battery ,
    http://www.adapterlist.com/dell/d630.htm dell d630 battery ,
    http://www.adapterlist.com/dell/latitude-d620.htm dell latitude d620 battery ,
    http://www.adapterlist.com/dell/latitude-d820.htm dell latitude d820 battery ,
    http://www.adapterlist.com/dell/latitude-d830.htm dell latitude d830 battery ,
    http://www.adapterlist.com/dell/latitude-d531.htm dell latitude d531 battery ,
    http://www.adapterlist.com/dell/precision-m65.htm dell precision m65 battery ,
    http://www.adapterlist.com/dell/d820.htm dell d820 battery ,
    http://www.adapterlist.com/dell/inspiron-6000.htm dell inspiron 6000 battery ,
    http://www.adapterlist.com/dell/inspiron-9200.htm dell inspiron 9200 battery ,
    http://www.adapterlist.com/dell/inspiron-9300.htm dell inspiron 9300 battery ,
    http://www.adapterlist.com/dell/inspiron-9400.htm dell inspiron 9400 battery ,
    http://www.adapterlist.com/dell/e1705.htm dell e1705 battery ,
    http://www.adapterlist.com/dell/inspiron-1520.htm dell inspiron 1520 battery ,
    http://www.adapterlist.com/dell/inspiron-1720.htm dell inspiron 1720 battery ,
    http://www.adapterlist.com/dell/vostro-1500.htm dell vostro 1500 battery ,
    May 10
    No namewrote:
    http://www.batteryfast.co.uk/laptop-ac-adapter/ibm/ibm-16V-3.5A-56w-5.5mm-2.5mm.php 02K6553 02K655 ibm 16V 3.5A 56w 5.5mm*2.5mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/ibm/ibm-20V-3.25A-65w-7.9mm-5.5mm-DC-with-pin-inside.php 92P1153 92P1154 ibm 20V 3.25A 65w 7.9mm*5.5mm DC with pin inside adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/ibm/ibm-20V-4.5A-90w-7.9mm-5.5mm-grey-DC-with-pin-inside.php PA-1900-171 ibm 20V 4.5A 90w 7.9mm*5.5mm grey DC with pin inside adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-3.42A-65w-5.5mm-2.5mm-white.php liteon 19V 3.42A 65w 5.5mm*2.5mm white adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-3.16A-60w-5.5mm-2.5mm.php liteon 19V 3.16A 60w 5.5mm*2.5mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-3.95A-75w-5.5mm-2.5mm.php PA-1750-01 liteon 19V 3.95A 75w 5.5mm*2.5mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-4.74A-90w-5.5mm-2.5mm.php PA-1900-15 liteon 19V 4.74A 90w 5.5mm*2.5mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-6.3A-120w-5.5mm-2.5mm.php PA-1121-08 liteon 19V 6.3A 120w 5.5mm*2.5mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-6.3A-120w-4pin-round.php liteon 19V 6.3A 120w 4 pin round adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-20V-6A-120w-5.5mm-2.5mm.php liteon 20V 6A 120w 5.5mm*2.5mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-4.74A-90w-5.5mm-1.7mm.php PA-1900-04 liteon 19V 4.74A 90w 5.5mm*1.7mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-19V-6.32A-120w-4-pin.php liteon 19V 6.32A 120w 4 pin adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/liteon/liteon-20V-6A-120w-4-pin.php liteon 20V 6A 120w 4 pin adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/samsung/samsung-19V-3.16A-60w-5.5mm-3.4mm-pin-inside.php SPA-P30 AD-6019 samsung 19V 3.16A 60w 5.5mm*3.4mm pin inside adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/samsung/samsung-19V-4.74A-90w-5.5mm-3.0mm.php PCGA-AC19V3 samsung 19V 4.74A 90w 5.5mm*3.0mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/sony/sony-19.5V-4.7A-90w-6.5mm-4.4mm.php PCGA-AC19V sony 19.5V 4.7A 90w 6.5mm*4.4mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/sony/sony-16V-4A-65w-6.5mm-4.4mm.php sony 16V 4A 65w 6.5mm*4.4mm adapter PCGA-AC16V4
    http://www.batteryfast.co.uk/laptop-ac-adapter/sony/sony-19.5V-3A-58w-6.5mm-4.4mm.php sony 19.5V 3A 58w 6.5mm*4.4mm adapter PCGA-ACX1 PCGA-AC19V1
    http://www.batteryfast.co.uk/laptop-ac-adapter/sony/sony-19.5V-4.1A-80w-6.5mm-4.4mm.php sony 19.5V 4.1A 80w 6.5mm*4.4mm adapter PCGA-AC19V3
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-15V-3A-45w-6.3mm-3.0mm.php toshiba 15V 3A 45w 6.3mm*3.0mm adapter PA2450U PA3241U-1ACA
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-15V-4A-60w-6.3mm-3.0mm.php toshiba 15V 4A 60w 6.3mm*3.0mm adapter PA3092U-1AC PA2444U
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-15V-5A-75w-6.3mm-3.0mm.php PA3283U-1ACA toshiba 15V 5A 75w 6.3mm*3.0mm adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-15V-6A-90w-6.3mm-3.0mm.php toshiba 15V 6A 90w 6.3mm*3.0mm adapter PA2501U PA2521U PA3201U-1ACA
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-15V-8A-120w-special-4-hole.php toshiba 15V 8A 120w special 4 hole adapter PA3237U-1ACA PA3237U
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-19V-3.42A-65w-5.5mm-2.5mm.php toshiba 19V 3.42A 65w 5.5mm*2.5mm adapter PA3467U-1ACA PA3396U-1ACA
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-19V-3.16A-60w-5.5mm-2.5mm.php toshiba 19V 3.16A 60w 5.5mm*2.5mm adapter PA3097U-1ACA
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-19V-4.74A-90w-5.5mm-2.5mm.php toshiba 19V 4.74A 90w 5.5mm*2.5mm adapter PA-1750-04
    http://www.batteryfast.co.uk/laptop-ac-adapter/toshiba/toshiba-19V-6.3A-120w-6.3mm-3.0mm.php toshiba 19V 6.3A 120w 6.3mm*3.0mm adapter PA3290U-1ACA
    http://www.batteryfast.co.uk/laptop-ac-adapter/universal/universal-12-20V-90W-universal.php universal 12-20V 90W universal adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/universal/universal-12-20V-120W-universal.php universal 12-20V 120W universal adapter laptop
    http://www.batteryfast.co.uk/laptop-ac-adapter/universal/universal-12-20V-70W-universal.php universal 12-20V 70W universal adapter laptop
    May 5
    Scottwrote:
    Thanks Scott, there's more to come as well ;) Plenty of Live APIs left to cover :D
     
    SL
    Dec. 22
    Scott Barneswrote:
    That's pretty damn cool! gonna echo this via my blog as i think it will be helpful.
     
    -
    Scott Barnes
    RIA Evangelist
    Microsoft.
    Dec. 22

    Trackbacks

    The trackback URL for this entry is:
    http://scottisafooldev.spaces.live.com/blog/cns!FE151030F50B5B37!631.trak
    Weblogs that reference this entry
    • None