Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
fanmingyou3_wd
2024-02-01 20:46:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8a05393350158886f6d175b75cbaf8807a5bcd38
8a053933
1 parent
6711f499
删除重复的VideoInfo,LiveInfo改名为LiveInfoDTO
当获取播放地址错误时,给出Toast
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
35 deletions
sight_harmony/wdBean/src/main/ets/bean/content/ContentDTO.ets
sight_harmony/wdBean/src/main/ets/bean/content/FullColumnImgUrlsDTO.ets
sight_harmony/wdBean/src/main/ets/bean/content/VideoInfo.ets
sight_harmony/wdBean/src/main/ets/bean/content/VideoInfoDTO.ts
sight_harmony/wdBean/src/main/ets/bean/content/LiveInfo.ets → sight_harmony/wdBean/src/main/ets/bean/detail/LiveInfoDTO.ets
sight_harmony/wdBean/src/main/ets/bean/detail/VideoInfoDTO.ts
sight_harmony/wdDetailPlayShortVideo/src/main/ets/viewmodel/PlayViewModel.ets
sight_harmony/wdBean/src/main/ets/bean/content/ContentDTO.ets
View file @
8a05393
import { FullColumnImgUrlsDTO } from './FullColumnImgUrlsDTO';
import { LiveInfo } from './LiveInfo';
import { VideoInfo } from './VideoInfo';
import { FullColumnImgUrlDTO } from '../detail/FullColumnImgUrlDTO';
import { LiveInfoDTO } from '../detail/LiveInfoDTO';
import { VideoInfoDTO } from '../detail/VideoInfoDTO';
export interface ContentDTO {
cityCode: string;
...
...
@@ -49,7 +49,7 @@ export interface ContentDTO {
newsTitle:string;
publishTime:string;
visitorComment:number;
fullColumnImgUrls:FullColumnImgUrlsDTO[];
liveInfo?: LiveInfo; // 直播新闻信息【BFF聚合】
videoInfo?: VideoInfo; // 视频新闻信息【BFF聚合】,视频非原片+清晰度最高的
fullColumnImgUrls:FullColumnImgUrlDTO[];
liveInfo?: LiveInfoDTO; // 直播新闻信息【BFF聚合】
videoInfo?: VideoInfoDTO; // 视频新闻信息【BFF聚合】,视频非原片+清晰度最高的
}
\ No newline at end of file
...
...
sight_harmony/wdBean/src/main/ets/bean/content/FullColumnImgUrlsDTO.ets
deleted
100644 → 0
View file @
6711f49
export interface FullColumnImgUrlsDTO {
format: number;
height: number;
weight: number;
landscape: number;
size: number;
url: string;
}
\ No newline at end of file
sight_harmony/wdBean/src/main/ets/bean/content/VideoInfo.ets
deleted
100644 → 0
View file @
6711f49
export interface VideoInfo {
videoUrl: string; //视频播放地址
videoDuration: string; // 视频时长
videoLandscape: string; // 1横屏 2竖屏
firstFrameImageUri: string; // 首帧图;【视频内容,contentPictures中】
}
\ No newline at end of file
sight_harmony/wdBean/src/main/ets/bean/content/VideoInfoDTO.ts
deleted
100644 → 0
View file @
6711f49
export
interface
VideoInfoDTO
{
clarity
:
number
;
resolutionHeight
:
number
;
resolutionWidth
:
number
;
videoDuration
:
number
;
videoLandScape
:
number
;
videoType
:
number
;
videoUrl
:
string
;
}
\ No newline at end of file
sight_harmony/wdBean/src/main/ets/bean/
content/LiveInfo
.ets → sight_harmony/wdBean/src/main/ets/bean/
detail/LiveInfoDTO
.ets
View file @
8a05393
export interface LiveInfo {
export interface LiveInfo
DTO
{
liveState: string; // 直播新闻-直播状态
liveUrl: string; //【暂时未使用,默认取第一个】直播新闻-直播地址
liveStartTime: string;
...
...
sight_harmony/wdBean/src/main/ets/bean/detail/VideoInfoDTO.ts
View file @
8a05393
...
...
@@ -2,8 +2,9 @@ export interface VideoInfoDTO {
clarity
:
number
;
resolutionHeight
:
number
;
resolutionWidth
:
number
;
videoDuration
:
number
;
videoLandScape
:
number
;
videoDuration
:
string
;
// 视频时长
videoLandScape
:
number
;
// 1横屏 2竖屏
videoType
:
number
;
videoUrl
:
string
;
videoUrl
:
string
;
//视频播放地址
firstFrameImageUri
:
string
;
// 首帧图;【视频内容,contentPictures中】
}
\ No newline at end of file
...
...
sight_harmony/wdDetailPlayShortVideo/src/main/ets/viewmodel/PlayViewModel.ets
View file @
8a05393
import { BusinessError } from '@ohos.base'
import { Logger } from 'wdKit'
import { Logger
, ToastUtils
} from 'wdKit'
import { ResponseDTO} from 'wdNetwork'
import { ContentDetailRequest } from 'wdDetailPlayApi'
import { ContentDetailDTO } from 'wdBean'
...
...
@@ -56,7 +56,8 @@ export class PlayViewModel {
// this.title = '旅途平安!这首歌送给即将启程回家的你'
// this.url = 'https://cdnjdout.aikan.pdnews.cn/zhbj-20240127/vod/content/output/f45ef51bb33f4ffd9458f8b386aa3227_opt.mp4'
this.canStart = false;
this.message = '获取播放地址错误';
this.message = '获取播放地址异常';
ToastUtils.showToast(this.message, 1000);
})
.finally(() => {
Logger.debug(TAG, `getContentDetailData finally`);
...
...
Please
register
or
login
to post a comment