Skip to content

huaweicodelabs/AudioVideoCapability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Harmony Audio Video Capability Application

HarmonyOS

Copyright (c) Huawei Technologies Co., Ltd. 2012-2022. All rights reserved.

Table of Contents

Introduction

Harmony Audio Video Capability app provides the capability to streaming both audio and video in Huawei wearable and phone as well and also use Harmony distribute system to distribute streaming media on Phone and control media playback from your Huawei wearable watch itself.

Here, Use Huawei wearable watch as a remote to control a media player on a Phone/Tablet/TV.

This app is developed for HarmonyOS app using multi-collaboration APIs to run across devices and provides audio and video playbacks and management features (including play, pause, rewind, next, previous and volume control).

To use Harmony Learning App, you need to:

  • Register a HUAWEI ID on HUAWEI Developers. Then, create an app, configure app information in AppGallery Connect.
  • Create a Harmony project in DevEco Studio.
  • Implement Harmony distribute system, Player and Volume management APIs.

Installation

To use functions provided by examples, please make sure Harmony OS (2.0 or later) and HMS Core (APK) version 6.1.0.300 or later has been installed on your cellphone. There are two ways to install the sample demo:

  • You can compile and build the codes in DevEco Studio. After building the .hap, you can install it on the phone/wearable watch and debug it.
  • Generate the .hap file from Gradle. Use the ADB tool to install the .hap on the phone/wearable watch and debug it adb install {YourPath}\phone\build\outputs\hap\debug\phone-debug-rich-signed.hap {YourPath}\smartwatch\build\outputs\hap\debug\smartwatch-debug-rich-signed.hap

Supported Environments

Harmony SDK Version >= 5 and JDK version >= 1.8 is recommended.

Configuration

Create an app in AppGallery Connect. In DevEco Studio, Configuring App Signature Information, Generating a Signing Certificate Fingerprint and Configuring the Signing Certificate Fingerprint in App Gallery.

Sample Code

The Harmony Learning App Demo provides demonstration for following scenarios:

Playing local audio and video resources and also obtained from the internet.

Use Huawei wearable watch as a remote to control a media playback on a Phone/Tablet/TV.

Controlling the media volume.

License

Harmony Audio Video Capability Application is licensed under the Apache License, version 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages