1 / 28

Introduction to Xbox SmartGlass

Introduction to Xbox SmartGlass. Neil Black Principal Program Manager 2-028. Agenda. Industry trends SmartGlass overview Demo. Industry trends. Multi-screen entertainment. 33 %.

livi
Download Presentation

Introduction to Xbox SmartGlass

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to Xbox SmartGlass Neil Black Principal Program Manager 2-028

  2. Agenda • Industry trends • SmartGlass overview • Demo

  3. Industry trends

  4. Multi-screen entertainment 33% Companion apps enhance the TV viewing or gaming experience on the main television screen by providing interactive features, multiplayer & remote play, social integrations, editorial content, and additional information via a smartphone or tablet Multi-screened while gaming1 1 IEB Research and Business Intelligence Survey of ~1,500 US respondents, March 2012

  5. Second screen experiences Gaming companions pair with either a specific game or console Social companions are primarily media and centered on sharing Network companions are specific to a show and offer deep content extras Event companions pair with an event and offer behind-the-scenes & streaming Controller companions pair with a service provider and offer full media control

  6. Xbox is transforming entertainment LED FROM THE LIVING ROOM POWERED BY THE CLOUD ACROSS MULTIPLE SCREENS BEST ON MICROSOFT DEVICES

  7. SmartGlass overview

  8. What is Xbox SmartGlass? 3RD PARTY ENHANCEMENTS PLATFORM v BUILT IN ENHANCEMENTS MEDIA CONTROL & DISCOVERY CORE SERVICES

  9. Available on the device you already own

  10. Best on Microsoft devices

  11. Home

  12. Input

  13. Search

  14. Engagement

  15. Habitual use VIDEO GAMES MUSIC APPS

  16. 2012 SmartGlassportfolio

  17. Xbox SmartGlass platform architecture Xbox Title Device Xbox SmartGlass ADK Hosted SmartGlass control Local Subnet XDK libraries 3rdparty web service Hosted experience Xbclibrary Title messages Title messages XAM Control messages Transport library XamLrclibrary WiFi/3G/4G Control & Title messages Control & Title messages SmartGlassservice

  18. HTML5/JavaScript applications that extend the functionality/interactivity of console titles Apps run in an embedded browser within the Xbox SmartGlass application Advantages of the Hosted SmartGlassexperience model Discoverability Consumers do not need to “find” and download applications one-at-a-time Applications automatically appear when the corresponding console title is being played Web development model Use of HTML5/JavaScript allows for cross-platform applications without having to write a separate, native app for each platform End-users get access to applications regardless of their device SmartGlass experiences

  19. Xbox SmartGlass SDK • SmartGlass XDK libraries • Initialize/shutdown functions • Send/receive messages, functions and events • Client changed event • JSON parser/writer • Xbox SmartGlassplatform SDK • API reference documentation • Code samples • Development tools • SmartGlass JavaScript APIs • Application-level APIs • Send/receive message functions and events • Connect/disconnect functions • Client changed event • Title and media state events • Service proxy function • Device capabilities • Accelerometer • Gyroscope • Haptic • Information • Input • Touch

  20. Poker • Demo

  21. Initialize Xbox SmartGlass and process messages // Initialize Xbox SmartGlass if( FAILED( XbcInitialize(XbcReceiveCallback, NULL) ) ) return; InitTime(); g_pPokerGame->ShuffleCards(); for(;;) // loop forever { // What time is it? UpdateTime(); // Check for messages XbcDoWork(); // Update the world UpdateTexCoords(); // Render the scene Render(); }

  22. Handle client connect event //-------------------------------------------------------------------------------------- // Name: XbcReceiveCallback // Desc: Callback function for Xbc events, such as client connect/disconnect and // title messaging. When we call XbcDoWork, if messages have come in, they will // use this callback for our app to receive them //-------------------------------------------------------------------------------------- VOID XbcReceiveCallback( HRESULT hr, PXBC_EVENT_PARAMS pParams, VOID* pvState ) { switch ( pParams->Type ) { case XBC_EVENT_CLIENT_CONNECTED: { // Add the player to the game and post the message to the screen PokerPlayer* pPlayer = newPokerPlayer( pParams->nClientId ); INT iPlayerIndex = -1; if ( SUCCEEDED( g_pPokerGame->AddPlayer(pPlayer, &iPlayerIndex))) { RtlZeroMemory( g_wstrMessage, sizeof( g_wstrMessage ) ); std::wstringstreamwss; // Convert the number from 0-based to 1-based for readability wss << "Player " << (iPlayerIndex + 1) << " connected!"; wcsncpy_s(g_wstrMessage, wss.str().c_str(), 20); } } break; . . .

  23. Process messages caseJson_FieldName: RtlZeroMemory(&buffer, sizeof(buffer)); XJSONGetTokenValue( hReader, buffer, ARRAYSIZE( buffer ) ); buffer[nTokenLength] = L'\0'; switch( tokenType ) { caseJson_String: if ( next == ACTION ) { next = NONE; if (wcsncmp( (constwchar_t *)buffer, L"fold", 4 ) == 0 ) { g_pPokerGame->PlayerFold( pParams->nClientId ); } elseif ( wcsncmp( (constwchar_t *)buffer, L"join", 4) == 0 ) { g_pPokerGame->PlayerJoin( pParams->nClientId ); } elseif ( wcsncmp( (constwchar_t *)buffer, L"start", 5 ) == 0 ) { g_pPokerGame->StartGame(); } elseif ( wcsncmp( (constwchar_t *)buffer, L"getstate", 8) == 0 ) { if ( g_pPokerGame->IsGameStarted() ) { g_pPokerGame->SendPlayerState( pParams->nClientId ); } } } break;

  24. Setup the SmartGlass experience Xbc.on("loaded", function (loadedData) { Xbc.Messaging.sendMessage({ action: Poker.Action.GETSTATE }); $("#join_button").click(function () { Xbc.Messaging.sendMessage({ action: Poker.Action.JOIN }); }); $("#start_button").click(function () { Xbc.Messaging.sendMessage({ action: Poker.Action.START }); }); $("#chip_count").text(money); $("#call_check_button").click(function () { if ($("#call_check_button").text() === "Check") { performCheck(); } else { performCall(); } }); $("#fold_button").click(function () { // Submit a fold performFold(); }); $("#bet_button").click(function () { performBet(); }); });

  25. Implement check via Table-Knock Xbc.on("accelerometer", function (value) { // We're assuming that an acceleration vector length greater than KNOCK_ACCEL_CUTOFF // Is a "table-knock" check // Calculate acceleration vector length varxVal = parseInt(value.x, 10); varyVal = parseInt(value.y, 10); varzVal = parseInt(value.z, 10); varvecLength = Math.sqrt(xVal * xVal + yVal * yVal + zVal * zVal); if (vecLength > KNOCK_ACCEL_CUTOFF) { performCheck(); } });

  26. Related Sessions • 10/30 5:45 p.m.92/Trident-Thunder – Building Cross-device Xbox Games • 10/30 4:00 p.m.92/Odyssey – Xbox Live on Windows 8 Deep Dive

  27. Resources • Xbox SmartGlass SDK

More Related