W3Space Whitepaper
  • WELCOME
    • ⛩️Welcome to W3space
    • 📚W3space Overview
  • Explore
    • 🤖AI Avatars
      • 🪙AI Economy Community LLM
      • ⭕Problems with Web2.0 LLM
      • 👤User Experience
  • 🥫A/V Support
  • 📱DIM
  • 🐾Roadmap
  • 🔥Why W3Space?
  • Legal
    • 🌊Disclaimer
    • 👮‍♂️Privacy Policy
    • 🔖Terms of Use
    • 👥Team
Powered by GitBook
On this page
  • Internal Communications
  • Public Communication
  • Collecting
  • Processing
  • Encoding and Encapsulation
  • Distribution
  • Decoding
  • Playing

A/V Support

PreviousUser ExperienceNextDIM

Last updated 1 year ago

Internal Communications

The privacy of A/V information is one of the most critical considerations when it comes to internal communication. To prevent messages from being stolen on the centralized server, the typical technique is to encrypt them. However, because most users have no way of knowing whether their data is securely encrypted or not, they are forced to believe and accept the service.

W3space uses decentralized point-to-point communication while delivering A/V communication services inside the company, to completely address the rigorous needs of Web3.0 firms for data security. When the front-end sends a communication request, the contract will check if both sides are from the same firm and then automatically establish a point-to-point A/V connection using WebRTC, WebSocket, or SmartContract. As a result of this technical solution, data is only exchanged among internal company members, skipping the central server, and ensuring that no information is leaked.

Each point can communicate in a self-organizing network using RTCPeerConnection; it can also form a star communication network with one person in the center.

Public Communication

When users perform public activities like attending conferences, AMAs, hackathons, socializing in open areas, and so on, the most critical needs are stability and high-quality communication connections, while the necessity for decentralization and privacy is decreased. We choose to deploy streaming media services based on AWS Media Services to better address the A/V communication demands of users during public activities. AWS Media Services, which is built on the most secure worldwide infrastructure, securely ingests and transmits video streams over the AWS global network with a few milliseconds of latency.

When hosting a large event in W3space with more than 200 attendees, no Fiat currency payment is required to cover the costs of servers, bandwidth, transcoding, or other services; instead, a set amount of ✨W3W or a set amount of future W3space Token is required, making W3space A/V streaming services are a much more cost-effective option than traditional ones.

W3space has implemented the NFT-based-Ticket. The host can issue NFTs as tickets to a large and exclusive activity, and only NFT-based-Ticket holders have access to the event and can correspond to A/V live streams.

Live Streaming Flow

The anchor receives live content via the acquisition device, pushes the live stream via push streaming, and then pushes streams to the live broadcast center through edge push streaming. The pushed video stream is accelerated by CDN edge nodes to ensure the stability of the upstream transmission. The video stream can be transcoded and captured as needed when it is pushed to the live broadcast center. Through the CDN content distribution network, the processed video stream is subsequently transferred to the viewer's device for viewing.

Collecting

Images and audios are among the items to be collected. Camera videos, screen recordings, local video files, and other collection sources that need to be redefined and implemented are examples of image collection sources. Other input sources, such as microphones, system sounds, or local audio files, are configured for the audio collection source.

Processing

After the video or audio has been collected, the original data is obtained. We usually process it before encoding and compressing it to improve some live effects or add some additional effects. Audio and video processing are both parts of the processing technique. Audio processing encompasses things like audio mixing, noise reduction, and sound special effects, among other things. Beauty, watermarking, and a variety of custom filters are all included in video processing.

Encoding and Encapsulation

H.264 encoding is used to compress the video, and AAC encoding is used to compress the audio. Encapsulation can be thought of as a container for media, and it is a standard for mixing and encapsulating the multimedia content (video, audio, subtitles, chapter information, and so on) generated by the encoder.

Distribution

  • Push

The audio and video data is collected and transmitted to the streaming media server using streaming media transmission protocols such as RTSP, RTMP, HLS, FLV, and etc., and large-scale streaming distribution can be achieved swiftly with the support of CDN.

  • Transmission

Use CDN solution to efficiently reduce network transmission delay.

  • Pull

Process transcoding into various formats, support multiple protocols such as RTMP, HLS, and FLV, and convert different streams to adapt to a variety of network conditions and terminal devices with varying resolutions.

Decoding

Separate FLV and TS files from audio and video, then decode the audio and video respectively.

Playing

Play with players based on protocols such as RTMP and HLS.

🥫