QRCode Singleton

QRCode()

Methods

get(code, size) → {String}

Parameters:

NameTypeArgumentDefaultDescription
codeString

Message to contain in the code.

sizeNumberoptional 10

Size of the QRCode image in dots. (1 dot is 37pixels)

Returns:

Link to the QRCode image.

Example

The below example will add 2 streams to the media entry both having a bitrate of 1000

new MAF.media.PlaylistEntry({
   bitrate: 1000,
   streams: [
      { url: 'http://my.url/video1.mp4' },
      { url: 'http://my.url/video2.mp4' }
   ]
});