Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukino0812 committed Feb 10, 2025
1 parent 78d8daa commit 5d64fa6
Show file tree
Hide file tree
Showing 250 changed files with 12,343 additions and 22 deletions.
4 changes: 2 additions & 2 deletions AppScope/app.json5
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"app": {
"bundleName": "net.plv.livescenes.demo",
"versionCode": 1010000,
"versionName": "1.1.0",
"versionCode": 1020000,
"versionName": "1.2.0",
"icon": "$media:app_icon",
"label": "$string:app_name"
}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [v1.2.0] - 2025-02-10

新增:

1. 支持纯视频开播(当前仅部分频道支持)

## [v1.1.0] - 2024-10-28

### 【观看端场景】
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ polyv-harmony-livescenes-sdk-demo
===

[![build passing](https://img.shields.io/badge/build-passing-brightgreen.svg)](#)
[![GitHub release](https://img.shields.io/badge/release-1.1.0-blue.svg)](https://github.com/polyv/polyv-harmony-livescenes-sdk-demo/releases/tag/1.1.0)
[![GitHub release](https://img.shields.io/badge/release-1.2.0-blue.svg)](https://github.com/polyv/polyv-harmony-livescenes-sdk-demo/releases/tag/1.2.0)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand Down Expand Up @@ -45,6 +45,6 @@ ohpm install @polyvharmony/live-scenes-sdk
#### 3.1 集成文档
[集成文档](https://github.com/polyv/polyv-harmony-livescenes-sdk-demo/tree/master/publish/docs)
#### 3.2 接口文档
[v1.1.0 接口文档](https://repo.polyv.net/harmony/documents/livescenes_sdk/1.1.0/index.html)
[v1.2.0 接口文档](https://repo.polyv.net/harmony/documents/livescenes_sdk/1.2.0/index.html)
#### 3.3 版本更新记录
[全版本更新记录](https://github.com/polyv/polyv-harmony-livescenes-sdk-demo/blob/master/CHANGELOG.md)
4 changes: 4 additions & 0 deletions build-profile.json5
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
{
"name": "scenes_live",
"srcPath": "./scenes_live"
},
{
"name": "scenes_streamerAlone",
"srcPath": "./scenes_streamerAlone"
}
]
}
11 changes: 6 additions & 5 deletions entry/oh-package.json5
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{
"name": "entry",
"version": "1.1.0",
"version": "1.2.0",
"description": "Please describe the basic information.",
"main": "",
"author": "",
"license": "MIT",
"dependencies": {
"scenes_live": "file:../scenes_live",
"@polyvharmony/media-player-sdk": "2.3.1",
"@polyvharmony/media-player-core-ijk": "2.3.1",
"@polyvharmony/rtc-sdk": "1.0.0",
"@polyvharmony/rtc-core-artc": "4.4.0-p1",
"scenes_streamerAlone": "file:../scenes_streamerAlone",
"@polyvharmony/media-player-sdk": "2.4.0",
"@polyvharmony/media-player-core-ijk": "2.4.0",
"@polyvharmony/rtc-sdk": "1.1.0",
"@polyvharmony/rtc-core-artc": "1.1.0-v4.4.2",
}
}

2 changes: 1 addition & 1 deletion entry/src/main/ets/ability/PLVEntryAbility.ets
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class PLVEntryAbility extends UIAbility {
PLVLiveSceneSDK.init(this.context, windowStage)
PLVMediaPlayerStartUp.start(this.context.getApplicationContext())
PLVRTCEngineStartUp.start()
windowStage.loadContent('pages/PLVLoginPage', (err) => {
windowStage.loadContent('pages/PLVEntrancePage', (err) => {
if (err.code) {
hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
return;
Expand Down
62 changes: 62 additions & 0 deletions entry/src/main/ets/pages/PLVEntrancePage.ets
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { router } from '@kit.ArkUI'

@Entry
@Component
struct PLVEntrancePage {
build() {
Stack() {
Image($r('app.media.plv_entrance_bg'))
.objectFit(ImageFit.Cover)
.expandSafeArea()

Column() {
LoginStreamerEntry()
LoginWatchEntry()
}
}
.width('100%')
.height('100%')
}
}

@Component
struct LoginStreamerEntry {
build() {
Stack() {
Image($r('app.media.plv_entrance_streamer_bg'))
Text("手机开播")
.fontColor('#FFFFFF')
.fontSize(24)
.margin(36)
}
.alignContent(Alignment.TopStart)
.width(244)
.height(140)
.onClick(() => {
router.pushUrl({
url: "pages/PLVLoginStreamerPage"
})
})
}
}

@Component
struct LoginWatchEntry {
build() {
Stack() {
Image($r('app.media.plv_entrance_live_bg'))
Text("云直播观看")
.fontColor('#FFFFFF')
.fontSize(24)
.margin(36)
}
.alignContent(Alignment.TopStart)
.width(244)
.height(140)
.onClick(() => {
router.pushUrl({
url: "pages/PLVLoginPage"
})
})
}
}
Loading

0 comments on commit 5d64fa6

Please sign in to comment.