Skip to content

Instantly share code, notes, and snippets.

@pajatopmr
pajatopmr / BrightcoveMediaControllerHideButton.java
Created April 5, 2015 06:15
Shows how to hide a button, the captions button.
/**
* This app illustrates the basic behavior of the Android default media controller.
*
* @author Paul Michael Reilly
*/
public class MainActivity extends BrightcovePlayer {
// Private class constants
@pajatopmr
pajatopmr / BrightcoveMediaControllerRewindArrowLeft.xml
Created April 5, 2015 06:48
Shows how to change a button face, in this case, the Rewind button.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Arrow Left Rewind</string>
<!-- Use the Font Awesome fa-arrowleft icon for the rewind button
face. -->
<string name="rewind">&#xf060;</string>
</resources>
@pajatopmr
pajatopmr / BrightcoveMediaControllerCustomSeekBarColors.xml
Created April 5, 2015 06:53
Shows how to customize the Brightcove media controller seek bar's progress colors.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Define the new colors. -->
<color name="blue_semi_trans">#730000ff</color>
<color name="magenta_semi_trans">#4DFF00FF</color>
<!-- This file will be found at ...res/values/colors.xml -->
<!-- Change the progress colors to magenta/black/blue, all transparent. -->
@pajatopmr
pajatopmr / BrightcoveMediaControlsAlwaysShow.java
Created April 12, 2015 06:15
Show how to customize the Brightcove media controls so that they are always visible.
package com.brightcove.player.demo.ootbp;
/**
* This app illustrates the basic behavior of the Android default media controller. In this case the media controls
* are always shown.
*
* @author Paul Michael Reilly
*/
public class MainActivity extends BrightcovePlayer {
@pajatopmr
pajatopmr / BrightcovePlayerControlsSlideAnimationStyle.java
Last active August 29, 2015 14:19
Shows how to customize the Android Brightcove player controls to set the animation style to "slide".
package com.brightcove.player.demo.ootbp;
/**
* This app illustrates the basic behavior of the Android default media controller. In this case the media controls
* transition from showing to hidden using a "slide" animation style.
*
* @author Paul Michael Reilly
*/
public class MainActivity extends BrightcovePlayer {
package com.brightcove.player.demo.ootbp;
/**
* This app illustrates the basic behavior of the Android default media controller. In this case the media controls
* are always shown.
*
* @author Paul Michael Reilly
*/
public class MainActivity extends BrightcovePlayer {