Code Monkey home page Code Monkey logo

regmec / zype-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zype/zype-android

0.0 0.0 0.0 4.85 MB

This is the Github repository for Zype’s legacy open source app templates which are no longer being supported. If you are looking to build streaming applications for OTT with Zype, check out Zype Apps Creator to leverage the latest app building features and functionality.

Home Page: https://www.zype.com/product/apps-creator

License: Other

Java 100.00%

zype-android's Introduction

Want to learn more about Zype’s solutions for OTT apps, video streaming and playout? Visit our website.

Zype Android Template

This legacy open source app template is no longer supported by Zype. If you are looking to build streaming applications for OTT, we recommend using Zype Apps Creator for the latest app building features and functionality.

The app is built with Java and Zype API.

Prerequisites

  • Android Studio

Installing

1. Clone the repo.

2. Open Android Studio and create new Project from Version Control

3. This SDK has two app variants - Zype demo app and template app.

To build Zype demo app select zypeDebug build variant for app module

Note: To build custom app based on the template see this section.

4. Build project and run the app on a connected device or in the emulator.

Supported Features

  • Populates your app with content from enhanced playlists
  • Video Search
  • Live Streaming videos
  • Downloading videos
  • Video Favorites
  • Resume watch functionality
  • Closed Caption Support

Monetizations Supported

  • Pre-roll and Mid-roll Advertising (VAST)
  • Universal SVOD via Sign In
  • Native SVOD via In-App Purchases
  • Marketplace Connect (Native to Universal SVOD)

Creating Custom App Based on the Template

1. Select templateDebug (or templateRelease) build variant for app module

2. Replace following placeholders with actual values:

<APPLICATION_ID> - Package name for your app. Used to identify your app on the device and in the marketplace. Must be unique and usually is following com.yourdomain.android pattern.

Use respective values from your account in Zype platform for:

<APP_KEY>

<CLIENT_ID>

<ROOT_PLAYLIST_ID>

Use true or false values for:

<NATIVE_SUBSCRIPTION_ENABLED>

<NATIVE_TO_UNIVERSAL_SUBSCRIPTION_ENABLED>

<SUBSCRIBE_TO_WATCH_AD_FREE_ENABLED>

<UNIVERSAL_SUBSCRIPTION_ENABLED>

<UNIVERSAL_TVOD>

<AUTOPLAY>

<BACKGROUND_AUDIO_PLAYBACK_ENABLED>

<BACKGROUND_PLAYBACK_ENABLED>

<DOWNLOADS_ENABLED>

<DOWNLOADS_ENABLED_FOR_GUESTS>

<DEVICE_LINKING>

<DEVICE_LINKING_URL> - Update with your url for device linking if you set DEVICE_LINKING to true. Otherwise set empty string.

<THEME> - Use constants ZypeConfiguration.THEME_LIGHT or ZypeConfiguration.THEME_DARK

<BRAND_COLOR> - Accent color in ##RRGGBB format. Used for highlighting buttons and widgets.

<APP_NAME>

3. Update following resources:

This image is used on the splash screen when app is starting.

The icon of your app. You can use icon generator in Android Studio to produce icons with required dimensions from 512x512 source icon image.

Optional

4. Check out this guide for additional UI customization options.

5. Update your social network ids in ZypeSettings.java

6. Analytics

Google Analytics:

Segment Analytics:

In ZypeSettings.java

  • Set SEGMENT_ANALYTICS to true
  • Update SEGMENT_ANALYTICS_WRITE_KEY with a value from your Segment account

7. To use Fabric:

        <meta-data
           android:name="io.fabric.ApiKey"
           android:value="<YOUR KEY HERE>" />
       -->
initFabric();
apply plugin: 'io.fabric'

8. Integration of OneSignal push notification:

    productFlavors {
        ...
        template {
            ...
            manifestPlaceholders = [manifestApplicationId: "${applicationId}",
                                    // TODO: Provide valid app_id and google_project_number for OneSignal
                                    onesignal_app_id: '',
                                    onesignal_google_project_number: 'REMOTE']
        }
    }

9. Integration of Amazon Pinpoint push notification:

  • Uncomment apply plugin: 'com.google.gms.google-services' in app/build.gradle
  • Set AWSPinpoint attribute in zype_app_configuration.json file to true
  • Set up your project in the Amazon Mobile Hub, turn on Pinpoint service for the project and generate AWS configuration file for your app. Then put awsconfiguration.json file to the app/src/template/res/raw folder

Built With

Versioning

For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

zype-android's People

Contributors

andyzheng547 avatar anuragdce avatar azheng249 avatar davidkurutz avatar echedev avatar gecheva avatar hardikhexa avatar imchrissmith avatar lavelleira avatar mattmoore104 avatar pankajnegii avatar saket7042 avatar svetdev avatar taykirch avatar

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.