A talk at the IoT day (9.April 2014) in Stockholm. The talk is about XMPP and how to do second screen with the protocol. Which features and advantages it gives vs. using DIAL, MQTT or other protocols which is used in the IoT industry.
Uni. - developed pidgin VOIP/Video plugin, XMPP for signalling • Member of the XMPP Standard Foundation (XSF) since 2009 - now also on the editorial team • Developed software since 1998 for various companies: telcos, streaming companies etc. • Have my own consulting company (BrainTrust) - Developing software and doing some startups!
source: Tigase server, components, Strophe.js plugins etc. • Various chat applications, for video playback commentator, support tools etc. • XMPP over satellites - standardised maritime satellite project (MSDS) for maritime safety service (advanced group chat) • XMPP in gaming and betting industry • XMPP for TV presence for various telcos and cable operators in scandinavia and Europe (first one in 2008!) I’ve done
device” (or “companion apps” when referring to software applications), is a term that refers to an additional electronic device (e.g. tablet, smartphone) that allows a content consumer to interact with the content they are consuming, such as TV shows, movies, music, or video games. Extra data is displayed on a portable device synchronised with the content being viewed on television. -wikipedia
wireless streaming of audio, video and photos • Troublesome license.. Audio part can be licensed • Screen casting • Discover Airplay devices on same network • Request device control such as trick play (play, pause, ff, rev, stop etc.) • Streams can only be decrypted by using apple keys (no other DRM systems)
Launch - Simple! - Multicast for discover, HTTP/ REST to open and launch apps (urls). • Not “locked” to any device, but can discovered on the same network • Gives you playback of Netflix, Youtube etc. on a simple cheap stick • Supports screen casting from chrome etc.
• Browser to browser support, JS (Chrome only) • Supports Play Ready and Encrypted Media Extensions (DRM) • Uses Smooth Streaming and MPEG-Dash - No HLS? WTF! • Uses Google DNS.. :-( • White listings of AppIds
device than the one you are using as primary screen • Some call it: “Multi screen”, “Companion devices”, “Beaming” • The secondary / companion device: smart phone, tablets and laptops etc • Primary: TV, set-top box, xbox, play station etc. • Second screen for implemented: kiosk systems, remote controlling, multimedia trickplay, “flick-to-screen”.. which I am going to talk about
television content is changing and evolving, and the multitude of devices on which we can view TV is ever growing; with TV everywhere on your tablet, mobile or PC, set top boxes and connected TV’s. How do broadcasters and content providers target audiences appropriately, and where should they be focussing their attentions?” • Usage is different now than before the smart devices, like iPhone, Android and tablets - the want to reach the new audience! ! • second screen for better experience. Some “Smart TVs” and STB are horrible UI and slow on rendering. ! • Make the TV/STB device a stream device, make the UI on second screen
Internet • Secure with authorisation and authentication (because it over the Internet!) • Transport agnostic (diverse devices, software stacks etc) • Do not want to reinvent the wheel!
find each other? • Roles, authorisation and authentication (diff. devices and users) • Single user or multi - let others do remote stuff. • Control over the infrastructure (no dependencies to silos) • Streaming media or signalling? - most want just signalling • A protocol instead of an API
with no login? • provisioning / re-provisioning devices. • Single user / Multiuser • Do you owe all of the device stack???.. login vs. kiosk system (no login, presentation/buying etc) ROLES VS PROVISIONING
display and to transcode it on the second screen device • Cast: to send play and trick play “commands” from the second screen to first screen and let 1’st screen decode etc. • Stream vs. signalling. Content owners have a hard time accepting streaming (airplay mirroring.. transcending on the sending device etc)
a TV or many TVs!.. • Many people in a household! • Some native, some are browser based! (only a small limited numbers are native of STB).. a diversity of clients and hardware. need a protocol! • DRM • Easy to use.. people normally have a phone and have a special application installed where they can watch TV and se VOD (video on demand) - no need for discovery of the app! • Pairing should only be done if another customer wants to take control of your TV experience!
many years! (many implementations, open source / commercial) • Many routing mechanisms • Federated! (setup your own) • Flexible - beyond Second Screen!
Websockets • Diff. backends (many servers support native MySQL, REST or own plugins) for login and authentication • Easy to plugin your own business logic and extensions • Many extensions! - for routing possibilities, and others!
etc. • Also used in gaming (e.g chess, Bingo), synchronisation software, white boarding and collaboration software, taxi hailing etc. • Now used in many other places!
need to be home to use your second-screen) • Can be used locally (link local - bonjour) as well (instead of client/server model) • Versatile protocol - and not just yet another API! • Open and can federate your data. Move it if you like to your own domain and server
or anonymous login (authorisation) • Get resource from server (or given from client) • Send initial presence and capabilities • Get presence from your other clients if any • Get roster • Communicate with communication primitives (persistent connection)
• Many diff. mechanisms that can affect a route • bare JID vs. full JID • [email protected] vs [email protected]/Home • extensions like: Pub/Sub, MUC, etc.
Make an extension! • Define your own <tag> with your own name space. • Embed and use JSON containers or other as payload. easier for browsers to understand
devices like smart TVs and set-top boxes (STB) are browser based. • We have STBs that support HTTP/1.0! • Devices that connect natively TCP (like IOS, Android, Microsoft etc) • Customers can use the website to watch TV/Video as well.. that is also connected (via. websockets) customer scenario
play/stop,ff commands! • Capabilities and service discovery pr. device • Use presence for watching the number of concurrent clients and throttle it (DRM purposes) • Use presence for watching user interaction (channel changes, VOD, follow me etc) • Push notifications via. full JID, bare JID, Pub/Sub (groups) and broadcasts to all
Let your devices talk together in many topologies - one-to-one, many-to-one , many-to-many • Remote recordings on local storage (PVR) • Exchange bandwidth between devices BEYOND SECOND SCREEN
for online devices (second screen as well as TV etc) • Interconnected TV with your IoT home! (GW for MQTT, zigbee etc) • Connect with your alarm, turn off the TV etc. • The living room devices gives away a lot of data for recommendation
diverse devices. No matter transport • Create your own gateways if you want to connect to other APIs or protocols • I’ve created a Pub/Sub to MQTT gateway to connect to MQTT connected devices • WebRTC - federation and discovery • UPnP cloud - uses XMPP standard for interconnecting devices • Usage stats! - delivery of a huge amount of real-time data == BIG DATA!
IoT and internet-wide usage by allowing IP-based devices and servers to discover each other and communicate independent of the network they are connected with.”