Giter Site home page Giter Site logo

player-raspberrypi's Introduction

player-raspberrypi

Introduction

player-raspberrypi is a set of components; the Installer, Rise Player and Rise Cache. Together, these components are used to show digital signage on a public display.

The Installer is responsible for downloading and installing Rise Player, Rise Cache and Chrome onto the target machine.

Rise Player is responsible for launching Viewer in Chrome, to display HTML content from Rise Vision. In addition, Player will run a local server on port 9449 that is used for communication with Viewer.

Rise Cache will run a local server on port 9494 and serves as a proxy for downloading and serving videos requested by the Video Widget running in Viewer.

Rise Player and Rise Cache works in conjunction with Rise Vision, the digital signage management application that runs on Google Cloud.

At this time Chrome is the only browser that this project and Rise Vision supports.

Built With

Development

Local Development Environment Setup and Installation

Installer

For Raspbian, the installer is a shell script. To edit, open rvplayer-installerraspbian.sh file with any text editor.

Rise Player and Rise Cache

To build Java projects, you will need Eclipse on your machine. In Eclipse create a new workspace. Import the RiseCache from /rise-cache and RisePlayer from /player into Eclipse.

  1. Select File menu
  2. Select Import
  3. Under General, select "Existing Projects into Workspace"
  4. Select the root directory for whichever project you want to import.

To Debug Player project in Eclipse

  1. Right click on player project in project Explorer
  2. Select Debug as
  3. Select Java Application
  4. Select Main - com.risevision.riseplayer
  5. Select OK

To Debug Rise Cache project in Eclipse

  1. Right click on rise-cache project in project Explorer
  2. Select Debug as
  3. Select Java Application
  4. Select Main - com.risevision.risecache
  5. Select OK

When you are ready, build and export the projects as .jar files. From Eclipse,

  1. Right Click on project in project Explorer
  2. Click Export
  3. From the Java option, select "Runnable Jar File"
  4. Select correct Launch Configuration created during debug steps above
  5. Under export destination, Export
  • RisePlayer as RisePlayer.jar
  • RiseCache as RiseCache.jar

Run Local

Installer

In Raspbian, run the command "sudo ~./rvplayer-installerraspbian.sh" in terminal window.

When launched, Installer connects to the Rise Vision Server and request Component version numbers. If a Component is missing or version number is different, the Component is downloaded.

For testing, it's recommended to set the version of your Component to be equal to the version number on the Server to prevent your Component from being updated from the server. Copy the new updated component in the application folder manually and launch the installer.

The URL's below can be used to confirm current versions of each component.

Rise Player and Rise Cache

Rise Player and Rise Cache are both .jar's and can be ran by right clicking on the file and running with Java Runtime.

Rise Vision Player requires a Display ID or Claim ID to connect the Display to the Rise Vision Platform.

  1. From the Rise Vision Platform click on Displays
  2. Select Add Display and give it a name.
  3. Click save.
  4. Copy the Display ID and enter it in the Rise Vision Player on startup.

The Display ID can also be changed in the the "RiseDisplayNetworkII.ini" within the application folder.

Dependencies

All dependencies like Chromium and Java are downloaded and installed by the installer.

Submitting Issues

If you encounter problems or find defects we really want to hear about them. If you could take the time to add them as issues to this Repository it would be most appreciated. When reporting issues please use the following format where applicable:

Reproduction Steps

  1. did this
  2. then that
  3. followed by this (screenshots / video captures always help)

Expected Results

What you expected to happen.

Actual Results

What actually happened. (screenshots / video captures always help)

Contributing

All contributions are greatly appreciated and welcome! If you would first like to sound out your contribution ideas please post your thoughts to our community, otherwise submit a pull request and we will do our best to incorporate it

Resources

If you have any questions or problems please don't hesitate to join our lively and responsive community at http://community.risevision.com.

If you are looking for user documentation on Rise Vision please see http://www.risevision.com/help/users/

If you would like more information on developing applications for Rise Vision please visit http://www.risevision.com/help/developers/.

Facilitator

Alan Clayton

player-raspberrypi's People

Contributors

mfarooq2000 avatar alanclayton avatar

Stargazers

Bryance avatar Tom Ardern avatar  avatar leo yu avatar Michael Oshogbunu avatar Kilian Knoerzer avatar  avatar y0sh1 avatar

Watchers

Nick Van Weerdenburg avatar James Cloos avatar Tyler Johnson avatar Rodrigo Serviuc Pavezi avatar Adi Turiya avatar  avatar Byron Darlison avatar Andrew Alanis avatar  avatar Robb Price avatar Brian Loosbrock avatar  avatar  avatar  avatar  avatar Justin Smith avatar AlexK avatar Ryan Cahoy avatar  avatar Blake Freeman avatar Kai Kuhlmann avatar  avatar  avatar

Forkers

enviable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.