kranky geeklondon build an app

26
How to build a webRTC app Tim Panton, Westhawk Ltd - @steely_glint

Upload: tim-panton

Post on 16-Jul-2015

728 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Kranky geeklondon build an app

How to build a webRTC

app

Tim Panton, Westhawk Ltd - @steely_glint

Page 2: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Adding webRTC to an app

Clone an app

Add some webrtc

Profit

Page 3: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Modemjs - 1200 baud modem

Page 4: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Code walk through

WebAudio

Respoke API

WebRTC

Familiar interface

Page 5: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Massive FAIL - Why?

Tech cool

But pointless

No user benefits

Only delights the geekiest of nerds (me)

Better ways to do the same thing

telnet anyone?

Page 6: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Stop!

THIS IS WHAT

WEB/APP FOLKS

SEE WHEN THEY

HEAR YOU TALKING

ABOUT WEBRTC !

POINTLESS

RECREATION OF

OLD DEAD TECH.

STOP IT NOW!

Page 7: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Communications has changed.

Page 8: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Communications has changed.

Page 9: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Kranky Geek 1

Talk on webRTC

Live code web app

For HTML5 audience

at Google SF

Page 10: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

What to do?

Stayed with a friend

Has 3 pet birds

Social animals

Visible and audible

Gets bored when left alone

Page 11: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Perfect Joke web app

Bird UX

Simple

Cheap

No self view, no controls

YoPet.us

Did talk/demo

Seedfunding (joke)

… but actually

Page 12: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

It might be a product

Market research

10million pet Parrots in the USA

Would anyone buy it?

Vox Pops.

showed market and price point

Page 13: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Think about delighting the users

Owner

Pet

2 Different needs in 1 app

This isn’t unusual, the phone just

makes us think it is.

Page 14: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

The Owner wants

To use it anywhere in the world

To use their laptop

Easy

Secure

Good video/audio

To be in control

Page 15: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

The Pet wants

Not to log in

Not to have a password

Not to have to answer a call

Not to get prank calls

Cheap device

Multi day battery life

Page 16: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

How to turn it into a product?

Cheap android tablet on cage

Owner uses browser on laptop

Built HTML5 prototype in chrome

Test on other animals

Some ignore, some don’t.

Page 17: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

An aside about federation

Federation has killed email

Federation has killed landlines

Federation is killing SMS

What’s app doesn’t federate

Open federation brings spam.

Leverage shared context instead.

Page 18: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Security

Essential -

(webcam hacks)

Old (18c military)

password - Nope.

Need new

thinking

Ownership/pairin

g

Duckling

Proximity creates

lifelong pairing

Page 19: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Demo QR pairing

See video on https://yopet.us

Page 20: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

But the Pet needs a mobile app

Notifications

Sleep/Wake

Screen power up

Tablets are more robust

Page 21: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

For MVP use Android webView

Lollipop web view has webRTC

support

Chrome updates out of sync

Breaks sometimes

Adequate to get pet/owner feedback

Page 22: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Code review

Permissions

Manifest

Inject Javascript

Remote debug

Page 23: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Security side benefit

No user data held

All on device

Lightweight server

Don’t have to trust the middleman

Patent filed

Signalling agnostic

Other applications….

Page 24: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Other apps

Granny Call?

Security cams?

Drones?

TVs?

Other ‘passive’ endpoints (IoT?)

Works with 2bn webRTC endpoints

Page 25: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

Summary

Stop re-building 100 year old tech

Think about user benefits

Delight people

Or make their days easier at least

“Dad, making phone calls is horrible.”

“Yeah, but receiving them is worse.”

Page 26: Kranky geeklondon build an app

@steely_glint - westhawk Ltd - www.westhawk.co.uk

T.S Eliot - Journey of the Magi

This: were we led all that way for

Birth or Death? There was a Birth, certainly

We had evidence and no doubt. I had seen

birth and death,

But had thought they were different; this Birth

was

Hard and bitter agony for us, like Death, our

death.

We returned to our places, these Kingdoms,

But no longer at ease here, in the old

dispensation,

With an alien people clutching their gods.

I should be glad of another death.