21
| Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada [email protected]

| Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada [email protected]

Embed Size (px)

Citation preview

Page 1: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

| Basel

Discovering Windows Azure Mobile Services and Media ServicesKen [email protected]

Page 2: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

Agenda

Windows Azure Mobile Services40’

Windows Azure Media Services20’

Page 3: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 4: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

Mobile Services App Architecture SDKs

REST API

Node.jsYour Scripts (insert / update / delete / read)

DataPush NotificationsAuth

Other Services

Page 5: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

| Basel

DEMO

Page 6: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 7: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 8: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

| Basel

(DEMO)Adding Push Notification using VS2013

Page 9: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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)

Page 10: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

| Basel

Azure Media Services

Page 11: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

Challenges• Infrastructure costs• Managing costs• Monetizing contents• Digital Rights Management • Security

Multiple formats, multiple bitrates

High Quality videos for any device

Anywhere and Anytime

Page 12: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 13: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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)

Page 14: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 15: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 16: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

| Basel

DEMO

Page 17: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 18: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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

Page 19: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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)

Page 20: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

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/

Page 21: | Basel Discovering Windows Azure Mobile Services and Media Services Ken Casada kcasada@microsoft.com

© 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.