Upload
joseph-lawson
View
214
Download
0
Embed Size (px)
Citation preview
| Basel
Discovering Windows Azure Mobile Services and Media ServicesKen [email protected]
Agenda
Windows Azure Mobile Services40’
Windows Azure Media Services20’
What is Windows Azure Mobile Services?Framework: create backend servicesBuilt with Node.js, based on Windows Azure Websites
Target group: mobile appsCreate Windows Store, WP, iOS, Android and HTML/JS apps super-fastNeed one common backend to store and exchange data
How you need to think about it?Need backend services for your apps…and your apps onlyNot a replacement for Websites or cloud services which offer higher level of control
Mobile Services App Architecture SDKs
REST API
Node.jsYour Scripts (insert / update / delete / read)
DataPush NotificationsAuth
Other Services
| Basel
DEMO
Working with data within a scriptRequest (parameter of insert/update/del/read .js scripts)Execute the default operation
Query (parameter of read.js script)Contains all information for filtering, paging, sortingCan be edited to add custom query logic
Table/sCRUD operations + query
MSSQLDirect SQL Statements
Script Sample available here: http://www.windowsazure.com/en-us/develop/mobile/ Server script reference: http://msdn.microsoft.com/en-us/library/windowsazure/jj554226.aspxServer Script example how tos: http://msdn.microsoft.com/en-us/library/windowsazure/jj591477.aspx
A couple of preview features
SchedulerExecute scripts on a Schedule (by minutes / hours /months...)Execute scripts on Demand(ex: schedule sending push notifications for a given time of the day)
ScaleScale out instance count / scale up VM size / scale up SQL DB
| Basel
(DEMO)Adding Push Notification using VS2013
Authentication support in Mobile ServicesOut of the box (tutorial available here):Microsoft Account, Facebook, Twitter, Google
Register your app with an identity provider Restrict permissions to authenticated users Add authentication to the app
Customer authenticationJosh Twist: http://www.thejoyofcode.com/Exploring_custom_identity_in_Mobile_Services_Day_12_.aspx
Josh Twist Tip: (caching user’s identity)
| Basel
Azure Media Services
Challenges• Infrastructure costs• Managing costs• Monetizing contents• Digital Rights Management • Security
Multiple formats, multiple bitrates
High Quality videos for any device
Anywhere and Anytime
What Do We Mean by Media Services?Your Choice of Components for Building Custom Media
Workflows in the Cloud(you only pay for what you use)
Encoding Analytics
Windows Azure Media Services
LiveStreaming
FormatConversio
n
Content Protection
On-DemandStreaming
Advertising
Ingestion
Live Streaming: today in private preview (early adopters program)Analytics: will be rolled out as they become available
Using Media Services for ....
Delivering training video to the employees of your company
Streaming video content for your web site
Streaming video on demand premium content
Streaming live video for big events (ex: London Olympics games)
Azure Media Services for developers
Controlling Media ServicesBuilding a custom media app workflow that can automatically upload, encode and deliver videos.
• REST API for all platforms http://msdn.microsoft.com/en-us/library/windowsazure/hh973618.aspx
• .NET SDK http://msdn.microsoft.com/en-us/library/windowsazure/hh973613.aspx
• Java SDK https://github.com/windowsazure/azure-sdk-for-java - Windows/Mac/Linux
Developing Azure Media Services client Building client applications that can consume streaming media from Media Services(Windows 8/WP/iOS/xBox/Flash Player/SL/Android/ Embedded devices – Connected TV, IPTV)
• Client SDK's and player frameworks• Docu: http://msdn.microsoft.com/en-us/library/windowsazure/dn223283.aspx
Windows Azure Media Services MSDN documentationhttp://msdn.microsoft.com/en-us/library/windowsazure/hh973629.aspx
What Do We Mean by Media Services?Your Choice of Components for Building Custom Media
Workflows in the Cloud(you only pay for what you use)
Encoding Analytics
Windows Azure Media Services
LiveStreaming
FormatConversio
n
Content Protection
On-DemandStreaming
Advertising
Ingestion
Live Streaming: today in private preview (early adopters program)Analytics: will be rolled out as they become available
| Basel
DEMO
Pricing and SLAEncoding Service
Free Trial(3mths)
Shared Reserved
Encoding Price
Free(100GB limit)
$1.99 Per GB $1.99 Per GB +
$99 per month/RU
EncodingSLA
NA
Availability = 99.9%• Measured as REST API
availability• No guarantee on wait time
between tasks
Availability = 99.9%• Measured as REST API availability• Media tasks running concurrently
= Number of reserved units
Streaming Service
Free Trial(3mths)
Shared Reserved
Streaming Price
Free(100GB limit)
Standard Egress Rates Standard egress rates +
$199 per month
StreamingSLA
NA Availability = NA• No bandwidth guarantee
Availability = 99.9%• Measured as server availability
based on response time• Peak bandwidth of 200 Mbps per
Reserved Unit allocated for Origin
For more information, please refer to Windows Azure Media Services Pricing Details
New Feature - Dynamic packagingAllows you to re-use your encoded content and bring it to various streaming formats without repackaging the content.
Video sources Multi-bitrates Mp4Origin Server
HLS
Smooth Streaming
Encode Package
Video sources Multi-bitrates Mp4
Origin Server
HLS
Smooth Streaming
Encode
DynamicPackaging
Traditional Encode and Package
Dynamic Packaging
Package
Input format: Mp4 or Smooth Streaming Output format: Smooth Streaming , Http-Live-Streaming v4, MPEG-DASH
You need to have at least 1 reserved streaming unit to enable dynamic packaging!
DASH
DEMO: Channel 9 video
What is MPEG-DASH?Currently there are three major vendor-centric streaming formats (all takes H.264 as input)
Smooth Streaming Http Live Streaming Http Dynamic Streaming
Dynamic Adaptive Streaming over HTTP (DASH) also called MPEG-DASH
MPEG-DASH is the first adaptive bit-rate HTTP-based streaming solution that is an international standard (ISO/IEC 23009-1)
More...
How am I going to get 5 Terabytes of media up to the cloud?http://blog-ndrouin.azurewebsites.net/?p=561
Additional resourceshttp://www.windowsazure.com/en-us/services/media-services/
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a
commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a
commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.