-
Login to Datazoom here: https://app.datazoom.io
-
Add a Collector as indicated here: How to add a Collector
-
Copy the
Config
that was created at the end of the process
Click the icon indicated below to copy the Configuration Key
You will see this message:
4. Replace the <configuration id from Datazoom>
with the Key you copied above.
5. Replace the <url given by Datazoom>
with <https://platform.datazoom.io/beacon/v1/>
Adding dependencies to your project
Roku Plugin for Eclipse IDE
For roku plugin installation and usage in Eclipse IDE
https://sdkdocs.roku.com/display/sdkdoc/Roku+Plugin+for+Eclipse+IDE
Installation Instructions
Clone the repository
git clone https://gitlab.com/datazoom/roku/roku-collector-libraries-release.git
Extract the components folder from cloned repository(Latest version)
Copy the components folder in your channel project.
Note: We assume that:
- The developer had already created a roku project(in Eclipse IDE).
- The project does not have components folder. If there is already a components folder, then copy the content of the components directory(DzLib folder) into your project's components directory
eg: /<your project>/components/DzLib - This project contains the base and native-collector library(inside DzLib folder).
Configuring collector library in channel
Copy the following in MainScene.brs(in components folder) or in the brs file you intend to configure the collector library.
In Sub/function init(), add the following
m.player = m.top.findNode("<Player ID>") m.DzLib = m.top.findNode("DzLib") DzCollector()
Also add the following function
Sub DzCollector() m.DzLib.libConfiguration = { player : m.player, configURL : "<url given by Datazoom>", configId: "<configuration id from Datazoom>" } m.DzLib.initiateCollector = true End Sub
DzCollector() will call the above function when initialized.
Note:
Change the configURL, configId and <Player ID> as per the requirement.
Copy the following inside <children> in MainScene.xml or in the xml file you intend to configure the collector library.
<DzLib id="DzLib" />
Example:-
<children> <DzLib id="DzLib" /> <Video id="<Player ID>" /> </children>
Note:
Change <Player ID> as per the requirement.
Instructions to create a compiled zip file
- Your-Project(Right click) > Export > BrightScript > BrightScript Deployment >[Change File name/path, if needed (.zip)] > Finish
- Open browser and go to Roku's local network IP address.(eg: 192.168.0.9). Provide username and password of developer mode.
- Click upload and select the newly created zip file. Click install.
- The channel will automatically start playing. This channel can also be played by-> go to roku menu, select the roku developer channel and play.
- To view the data points generated by Roku, go to Linux terminal and type
telnet <Roku's Local IP> 8085
eg: - telnet 192.168.0.9 8085
Reference: https://sdkdocs.roku.com/display/sdkdoc/Debugging+Your+Application
Comments
0 comments
Article is closed for comments.