-
Notifications
You must be signed in to change notification settings - Fork 21
Initial version of sending from a file #30
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
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #30 +/- ##
==========================================
+ Coverage 84.43% 85.13% +0.69%
==========================================
Files 12 14 +2
Lines 559 592 +33
==========================================
+ Hits 472 504 +32
- Misses 87 88 +1
Continue to review full report in Codecov by Sentry.
|
1e530ec
to
c7d1ee5
Compare
e32dc24
to
2aff383
Compare
end | ||
|
||
defp handle_webrtc_message({:connection_state_change, :connected} = msg, state) do | ||
Logger.info("#{inspect(msg)}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is more readable when we see in logs:
Connected
Starting sending ivf file
than
Starting sending ivf file
examples/send_from_file/example.exs
Outdated
|
||
{rtp_packets, last_timestamp} = | ||
Enum.map_reduce(rtp_packets, state.last_timestamp, fn rtp_packet, last_timestamp -> | ||
# we hardcode 3000 as we know the video is in 30 FPS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would elaborat on this a bit more and include that we got this value from
dividing VP8 clock rate by the frame rate (90000/30 == 3000).
examples/send_from_file/example.js
Outdated
pc.ontrack = event => { | ||
const videoPlayer = document.getElementById("videoPlayer"); | ||
videoPlayer.srcObject = event.streams[0]; | ||
|
||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pc.ontrack = event => { | |
const videoPlayer = document.getElementById("videoPlayer"); | |
videoPlayer.srcObject = event.streams[0]; | |
}; | |
pc.ontrack = event => { | |
const videoPlayer = document.getElementById("videoPlayer"); | |
videoPlayer.srcObject = event.streams[0]; | |
}; |
Things that are still missing: