The aim of this project is to provide a prototype of a full process of Media Synchronization between an HbbTv 2.0.1 device with an Android application using DVB-CSS. This project is based on the application of [Franhoufer FOKUS] (https://github.com/fraunhoferfokus/cordova-plugin-hbbtv-helloapp).
-
Clone the repository.
-
Serve the HbbTv folder from a webserver (Choose you favorite)
-
Modify the conf.brodband.json file with the URL of the videos for TV and Companion App ((!)They should be Mpeg-DASH streams). This configuration file will be used for Vod<->Vod synchronization.
{
"broadcast": false,
"videoTVBroadband":"### PUT HERE URL OF THE VIDEO THAT WILL BE PLAYED ON TV ###",
"videoCSBroadband":"### PUT HERE URL OF THE VIDEO THAT WILL BE PLAYED ON CS ###"
}
- Modify the conf.broadcast.json file with the URL of the video for Companion App ((!) Be sure that Broadcast has TEMI timelines). This config file will be used for Broadcast<->Vod synchronization.
{
"broadcast": true,
"videoCSBroadband":"### PUT HERE URL OF THE VIDEO THAT WILL BE PLAYED ON CS ###"
}
-
Serve both config files from a webserver
-
Open
Mobil/App/CS-App/index.html
and modify the following variables.
jwplayer.key = "### PUT HERE YOUR JWPLAYER KEY ###";
window.CONFIG_LOCATION_URL = {
BROADBAND: "### PUT HERE THE LOCATION OF YOUR CONFIG FILE FOR BROADBAND ###",
BROADCAST: "### PUT HERE THE LOCATION OF YOUR CONFIG FILE FOR BROADCAST ###"
};
window.HBBTV_LOCATION_URL = "### PUT HERE YOUR HBBTV APP LOCATION URL ###";
-
Open
Mobil/App/CS-App
on terminal. -
Make sure you have Apache Cordova installed or execute npm install -g cordova
-
Add Android platform, type
cordova platform add android
. -
Plug an Android device and execute
cordova run android
.
Once the app is installed on the Android device, you should follow the next steps:
-
Press
Discover Terminals
and wait few seconds. -
All HbbTv devices on the same network should be listed.
-
Press
Launch
on the desired device. -
Once the TV app is running press
Connect
to start the media synchronization.