Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Video player v1 #703

Closed
wants to merge 50 commits into from
Closed

Feat: Video player v1 #703

wants to merge 50 commits into from

Conversation

WaDadidou
Copy link
Collaborator

@WaDadidou WaDadidou commented Sep 13, 2023

It's a Draft ⚠️ So yes, it may be broken for now 😇

The original PR is #649. The feature frontend and backend were started by @Saturn-Radius. Thank you mate 😄


Need testnet backend to allow testing. We can only test on local env for now. -> See the original's PR https://github.com/TERITORI/teritori-dapp/pull/649description


TODO

  • This PR's description
  • remove/merge icons, there are duplicatas between asstes/icons/media-player and assets/icons/player
  • Use DropdownContext to handle floating menus properly

I hope it's not a mess

@netlify
Copy link

netlify bot commented Sep 13, 2023

Deploy Preview for testitori ready!

Name Link
🔨 Latest commit e9b9543
🔍 Latest deploy log https://app.netlify.com/sites/testitori/deploys/65522ef70558d10008de67f7
😎 Deploy Preview https://deploy-preview-703--testitori.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Sep 13, 2023

Deploy Preview for teritori-dapp ready!

Name Link
🔨 Latest commit e9b9543
🔍 Latest deploy log https://app.netlify.com/sites/teritori-dapp/deploys/65522ef7195c90000952954b
😎 Deploy Preview https://deploy-preview-703--teritori-dapp.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

assets/icons/player/add-primary.svg Outdated Show resolved Hide resolved
assets/icons/player/delete.svg Outdated Show resolved Hide resolved

func (s *VideoService) GetVideoList(ctx context.Context, req *videopb.GetVideoListRequest) (*videopb.GetVideoListResponse, error) {
limit := req.GetLimit()
if limit <= 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should cap the limit to avoid to request too much of data

Copy link
Collaborator Author

@WaDadidou WaDadidou Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caped at 40
(Have to handle pagination ?)

go/pkg/video/service.go Show resolved Hide resolved
go/pkg/video/service.go Show resolved Hide resolved
packages/hooks/video/useFetchVideos.ts Outdated Show resolved Hide resolved
import { mustGetVideoClient } from "../../utils/backend";
import { VideoMetaInfo, VideoInfoWithMeta } from "../../utils/types/video";
import { useSelectedNetworkId } from "../useSelectedNetwork";
export type VideosList = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that normal that we have definition of video list type or null ? it means that pages can be: array of null ? please check if we can implement differently or this is the only efficient way to do this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ddin't check the videos hooks, will check later

} as VideoInfoWithMeta);
});

const totalCount = 1000; // test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this normal we keep hardcoded test value there ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to handle pagination... Will do later

packages/utils/backend.ts Outdated Show resolved Hide resolved
packages/utils/videoPlayer.ts Outdated Show resolved Hide resolved
@omniwired
Copy link
Collaborator

@WaDadidou are all files pushed? I'm getting some errors on files that it cannot find.

@WaDadidou WaDadidou force-pushed the feat/video-player-v1 branch 6 times, most recently from 6c455a3 to 7541035 Compare October 9, 2023 17:04
@WaDadidou WaDadidou force-pushed the feat/video-player-v1 branch 3 times, most recently from c167742 to 7ce3a90 Compare October 14, 2023 14:33
@WaDadidou WaDadidou force-pushed the feat/video-player-v1 branch 2 times, most recently from ed9ef6a to 1cbe259 Compare October 30, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants