W3C home > Mailing lists > Public > public-secondscreen@w3.org > April 2015

Use URL data: scheme in presentationUrl

From: Bassbouss, Louay <louay.bassbouss@fokus.fraunhofer.de>
Date: Fri, 10 Apr 2015 08:25:09 +0000
To: "public-secondscreen@w3.org" <public-secondscreen@w3.org>
Message-ID: <3958197A5E3C084AB60E2718FE0723D489ABE59A@FEYNMAN.fokus.fraunhofer.de>
Hi,

What do you thing about using "data:"  scheme in presentationUrls e.g. "data:text/html;charset=utf8;base64,<base64 encoded inline html content goes here>"? Example:

var presentationUrl  =
"data:text/html;charset=utf8;base64,PGh0bWw+DQo8aGVhZD48dGl0bGU+VGVzdDwvdGl0bGU+PC9oZWFkPg0KPGJvZHk+DQo8aDE+UHJlc2VudGF0aW9uIEFQSSB3aXRoIGRhdGE6IHNjaGVtZTwvaDE+DQo8L2JvZHk+DQo8L2h0bWw+";
var session = navigator.presentation.startSession(presentationUrl );

The following screenshot shows the output If you open the presentationUrl in browser (tested in chrome);

[cid:image002.png@01D07378.519BA910]

Best regards,
Louay



image002.png
(image/png attachment: image002.png)

Received on Friday, 10 April 2015 08:25:54 UTC

This archive was generated by hypermail 2.3.1 : Friday, 10 April 2015 08:25:55 UTC