The presentation describes the potentiality of cross device functions to develop smart TV viewers' experience. It focuses on Android TV, which has taken the initiative in cross device APIs already.
スマートテレビアプリケーションの開発 7 • HTML Living Standard / HTML5 ベースのアプリケーションエンジン ◦ IPTV 関連のさまざま標準規格から参照される HTML の標準仕様 • Android ◦ モバイル端末で実績がある GUI ベース OS スマートテレビのプラットフォームは大きく分けて 2 つ
Google Nearby API 55 • デバイス検出を複数の手段で実施 ◦ Wi-Fi / Wi-Fi Direct / Classic Bluetooth / Bluetooth Low Energy ◦ どの手段を使うかは実装者は気にする必要がない • 検出後、複数のデバイスに対して短いメッセージを配信 • Nearby Messages API が有効になったプロジェクトの API key が必要 ◦ Google Developers Console から取得 Nearby Messages API
message = Message("Hello".toByteArray(Charset.forName("UTF-8"))) … val messageListener = object : MessageListener() { override fun onFound(message: Message) { // Do something with the message on found } override fun onLost(message: Message) { // Do something with the message on lost } } … // メッセージの公開 Nearby.getMessagesClient(activity).publish(message, options) … // リスナーの登録 Nearby.getMessagesClient(activity).subscribe(messageListener, options) Nearby Messages API