Collaborative Illustrator with Android Tablets Communicating through WebRTC

Shougo INOUE  Satoshi FUJITA  

Publication
IEICE TRANSACTIONS on Information and Systems   Vol.E103-D   No.12   pp.2518-2524
Publication Date: 2020/12/01
Publicized: 2020/08/13
Online ISSN: 1745-1361
DOI: 10.1587/transinf.2020PAP0009
Type of Manuscript: Special Section PAPER (Special Section on Parallel, Distributed, and Reconfigurable Computing, and Networking)
Category: Computer System
Keyword: 
collaborative drawing,  WebRTC,  Android,  semantics of two-dimensional data,  

Full Text: PDF(414.2KB)>>
Buy this Article




Summary: 
In this paper, we consider the collaborative editing of two-dimensional (2D) data such as handwritten letters and illustrations. In contrast to the editing of 1D data, which is generally realized by the combination of insertion/deletion of characters, overriding of strokes can have a specific meaning in editing 2D data. In other words, the appearance of the resulting picture depends on the reflection order of strokes to the shared canvas in addition of the absolute coordinate of the strokes. We propose a Peer-to-Peer (P2P) collaborative drawing system consisting of several nodes with replica canvas, in which the consistency among replica canvases is maintained through data channel of WebRTC. The system supports three editing modes concerned with the reflection order of strokes generated by different users. The result of experiments indicates that the proposed system realizes a short latency of around 120 ms, which is a half of a cloud-based system implemented with Firebase Realtime Database. In addition, it realizes a smooth drawing of pictures on remote canvases with a refresh rate of 12 fps.