Branch | Status |
---|---|
develop |
|
master |
Codebase for the Lush Player app, allowing fans to browse and play Lush TV and radio media from its various channels, and to playback live Lush TV.
You will need to supply a Brightcove account ID and policy key via a gradle.properties
file.
This file must exist in at least one of these places:
-
Your home directory at
~/.gradle/gradle.properties
-
In the root of the project at
/gradle.properties
If the file doesn't exist, create it. I personally recommend the home directory, but that is due to my own personal setup.
Please remember that properties in gradle.properties
in the root of the project takes priority over those set in the home directory
Your gradle.properties
file should look like this:
# Other settings...
# Brightcove
BRIGHTCOVE_ACCOUNT_ID=123456789
BRIGHTCOVE_POLICY_KEY=hEl1OW0rld!
Please note that the values for account id and policy key are dummy values to give you an idea of how it should be used
If you wish to add live videos, you should follow the process outlined in this documentation.
When the user requests to view a url that starts with http://player.lush.com/tv/
or http://player.lush.com/radio/
(or its HTTPS variants), the app is registered to handle these links. It will launch the detail page with the relevant video based on the alias in the url.
An example of this would be:
http://player.lush.com/tv/conversation-john-robb-alexander-hacke-and-danielle-de-picciotto
To test this functionality you can use the following adb command:
adb shell am start -W -a android.intent.action.VIEW -d "http://player.lush.com/tv/conversation-john-robb-alexander-hacke-and-danielle-de-picciotto" com.cube.lush.player