3Speak Mobile App Development Update by Sagar - Setting Up Acela Core, Solving Errors, and more

avatar
Authored by @sagarkothari88

threespeakupdates.png


Hello @threespeak Community Members & Hive Community Members,

With this post, I'll share the development updates & items on which I (@sagarkothari88) was working. Accidentally, OBS decided to pick a different audio device & due to which no audio was captured. You can find updates as follows.

Setting Up Acela-core

  • Acela-Core is a new backend core for decentralized video applications on HIVE.
  • It supports both off-chain & on-chain data.
  • I (@sagarkothari88) checked it out locally & resolved all the issues he faced.

Setting up .env & resolving related issues

  • To run, you need some of the configs.
  • After coordinating with the team, I got the necessary env variables.
  • Even after that, I faced some errors due to missing env variables.
  • After turning off cluster-related services, I was able to move forward.

TUSd uploader

TUSd Hooks

  • Even after running it, It kept throwing errors.
  • I created a data folder locally & updated runTusd.sh as follows.
  • It resolved TUSd issues.
  • As you can see here, I changed upload-dir from /data to ./data

tusd -upload-dir=./data/ \
     -base-path="/files" \
     -host="127.0.0.1" \
     -port="1080" \
     -behind-proxy \
     --hooks-enabled-events pre-create,post-create,post-finish,post-finish,post-terminate,post-receive \
     -max-size 5000000000 \
     -hooks-http http://localhost:4569/api/v1/upload/tus-callback

Other errors

  • I also encountered IPFS Cluster issues.
  • Those I managed to resolve by coordinating with the teI also encountered some compilation errors & got them fixed locally.
  • After all of these, I was all set.

Learning NestJS

  • Acela core is written using the NestJS Framework.
  • It's been over a year & I have not learned about NestJS.
  • I found a playlist on YouTube to learn NestJS.
  • I completed approximately 18 videos from that playlist.
  • After 18 videos, I started contributing to the Acela-core project.

NestJS Video Playlist

Acela-Core - Posting Authority before logging in

Checking for Posting Authority

  • https://github.com/spknetwork/acela-core/pull/8/files.
  • Granting JWT Token only if posting authority is found.
  • This JWT Token will be used for upvotes, comments, and posts.
  • Without posting authority, all of the operations may fail.
  • So, it's best to check at the time of login /login_singleton
  • It would be the front-end's responsibility to get posting authority first.
  • After that front-ends can generate proof & proof of payload & - execute/login_singleton for logging in.

Acela-Core - Max 5 GB Upload

File Size

New FrontEnd - Video Format

  • This will be the third check we'll add to the upload process.
  • It makes sure that users are uploading videos in the right format.
  • With this, we wish to improve the upload experience.
  • This work is in progress.

Exchanging GQL queries

  • Juneroy & I exchanged several GraphQL queries.
  • With this, he could implement it on New 3Speak FrontEnd.
  • Shared Queries for the following:
    • Subscribed feed
    • Trending feed
    • New feed
    • First upload
    • Community Feed
    • Tags Feed

What are the next tasks?

  • Acela-Core - Fix Upvote API.
  • Acela-Core - create-upload API failing.
  • 3Speak Legacy Studio - Add posting authority using Active Key, which is not working.
  • 3Speak Legacy Studio - Connect the account using Active Key, which is not working.
  • 3Speak Legacy FrontEnd - 3Speak Twitter handle.
  • 3Speak Legacy FrontEnd - Update Twitter Icon.
  • New tasks will be assigned based on daily stand-ups.

Feedback / Info

  • Do you want more Info? Please let me know via the comment section.
  • Do you have feedback to share? Please use the comment section.
  • Please check the above video & share feedback.

color3speak.png

Important Links:

3Speak LinktreeSPK Network Linktree
3Speak.tv3Speak Twitter3Speak Hive Blog3Speak Telegram
3Speak in SpanishDownload Android AppDownload iOS AppDownload Desktop App
Join 3Speak DiscordSetup Encoder NodeVote for SPK Network ProposalBadge Recipients
appStoreGooglePlayStore

Vote for 3Speak as Witness - Support @threespeak

Vote for Sagarkothari88 as Witness - Support @sagarkothari88



0
0
0.000
3 comments
avatar

This is really great to witness the great developments

0
0
0.000
avatar

This is an amazing update, I love this. Keep up the good work guys..

0
0
0.000
avatar

Hi @sagarkothari88

Sorry, mate. I know your busy.

I've asked a couple of times but no joy. How do we download vids from Three Speak now, please? I have a few I'd like to edit and use but the download option is either gone or moved?

Thanks!

0
0
0.000