Giter VIP home page Giter VIP logo

explainer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

explainer's Issues

Reduce build size

tinygo build -o wasm.wasm -target wasm  -size full github.com/pion/explainer/pkg/wasm/
   code  rodata    data     bss |   flash     ram | package
------------------------------- | --------------- | -------
  26786       0    7750   81310 |   34536   89060 | (unknown)
      8       0       0       0 |       8       0 | /home/sean/go/src/github.com/tinygo/tinygo/lib/wasi-libc/libc-top-half/musl/src/exit
   1938       0       0       0 |    1938       0 | /home/sean/go/src/github.com/tinygo/tinygo/lib/wasi-libc/libc-top-half/musl/src/string
   3282       0       0       0 |    3282       0 | bufio
     13       0       0       0 |      13       0 | bytes
   3246       0       0       0 |    3246       0 | encoding/base64
     60       0       0       0 |      60       0 | encoding/binary
    429       0       0       0 |     429       0 | errors
   3093       0       0       0 |    3093       0 | github.com/CosmWasm/tinyjson/buffer
  23307       0       8       0 |   23315       8 | github.com/CosmWasm/tinyjson/jlexer
   1759       0     256       0 |    2015     256 | github.com/CosmWasm/tinyjson/jwriter
   3189       0       0       0 |    3189       0 | github.com/pion/explainer
   9958       0       0       0 |    9958       0 | github.com/pion/explainer/internal/sdp
     87       0       0       0 |      87       0 | internal/bytealg
   1291       0       0       4 |    1291       4 | internal/task
   2109       0       0  500000 |    2109  500000 | main
     33       0       0       0 |      33       0 | os
  11186       0       0       0 |   11186       0 | reflect
  11600       0      12     156 |   11612     168 | runtime
   8118       0       0       0 |    8118       0 | strconv
    254       0       0       0 |     254       0 | strings
    812       0       0       0 |     812       0 | sync
  11789       0       0      40 |   11789      40 | syscall/js
    181       0       0       0 |     181       0 | time
     30       0       0       0 |      30       0 | unicode/utf16
    732       0     288       0 |    1020     288 | unicode/utf8
------------------------------- | --------------- | -------
 125290       0    8314  581510 |  133604  589824 | total

We should see if we can drop the github.com/CosmWasm/tinyjson/jlexer dependency. We are adding 35Kb just for that. I think it would be fine to just have code that walks the entire string and extracts sdp+type.

This is our current gzip size

tinygo build -o wasm.wasm -target wasm  -no-debug --panic trap github.com/pion/explainer/pkg/wasm

 gzip -9 < wasm.wasm | wc -c
34059

Return errors with context

We should return line numbers if possible for every warning/error/suggestion.

When we build a SDP Explorer it would allow people to highlight a field and it could tell people exactly what it means.

Errors/Warnings/Suggestions and PeerDetails/SessionDetails definitions

List of all the things we can surface to users.

Errors

  • Two Offers or Two Answers were provided
  • Mismatch on Transceiver Count
  • Answerer using incorrect PayloadTypes

Warnings

Suggestions

PeerDetails

  • DataChannel enabled?
    • MediaSection ID
    • MediaSection Order
  • How many tracks wish to be sent?
  • How many tracks are able to be received?
  • Audio+Video Codecs
    • Are they all the same for each MediaSection?
  • DTLS Fingerprint
    • At Media or Global?
    • Are they all the same?
  • ICE ufrag+pwd
    • At Media or Global?
    • Are they all the same?

SessionDetails

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>pion/renovate-config)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.