https://discord.cloudflare.com logo
Join Discord
Powered by
# stream
  • q

    quambo

    11/18/2022, 11:05 AM
    Hi, is there an example (or advice) of how to use stream webrtc from a nodeJS server? Is this possible? Use case is we got a screencast within our nodeJS system and we'd like to stream it in realtime to browser clients.
    b
    • 2
    • 4
  • r

    Rachel

    11/18/2022, 9:41 PM
    Here's what I did
    Copy code
    diff --git src/whip-client.c src/whip-client.c
    index 8369726..743a48e 100644
    --- src/whip-client.c
    +++ src/whip-client.c
    @@ -403,6 +403,17 @@ static gboolean whip_initialize(void) {
                 i++;
             }
         }
    +
    +    GstWebRTCRTPTransceiver *trans;
    +    GArray *transceivers;
    +    g_signal_emit_by_name(pc, "get-transceivers", &transceivers);
    +    g_assert(transceivers != NULL && transceivers->len > 0);
    +    trans = g_array_index(transceivers, GstWebRTCRTPTransceiver *, 0);
    +    g_object_set(trans, "direction", GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY, NULL);
    +    trans = g_array_index(transceivers, GstWebRTCRTPTransceiver *, 1);
    +    g_object_set(trans, "direction", GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY, NULL);
    +    g_array_unref(transceivers);
    +
         /* Let's configure the function to be invoked when an SDP offer can be prepared */
         g_signal_connect(pc, "on-negotiation-needed", G_CALLBACK(whip_negotiation_needed), NULL);
         /* We need a different callback to be notified about candidates to trickle to Janus */
  • a

    altryne

    11/18/2022, 11:07 PM
    Hey folks, it seems that some videos (I think they were sent to CF simultaniously) just fail in weird ways. One video uploaded with 0 seconds, but says "success" The other, just shows an error I was wondering if someone can take a look? 4b6fb4aa8df80d8837b39948ee8e574e and f7b16246db9a465a35b2b7fc237c2fe7
    k
    m
    • 3
    • 11
  • a

    altryne

    11/18/2022, 11:10 PM
    A retry with the same videos, worked perfectly, so it's either a temporary fluke or not sure what else can be going on. Def. the video files themselves are ok
  • a

    altryne

    11/19/2022, 1:15 AM
    Another video with 1 second duration 095b4f4ae34cae82ceb2dd83530a4fc3
  • h

    huytran125

    11/20/2022, 4:51 PM
    Hello guys, i have some problem with live stream with webrtc Currently, we are using react-native-web-rtc to livestream in react-native But when I follow this tutorial and try to convert it into react- native using this link https://workers.new/stream/webrtc There is some problem, when I use this api above to post the offer It’s always return “Expecting SDP to receive two media streams with 1 video and 1 audio with direction recvonly”. But in web version, it works perfectly. Not sure if it was error related to function createOffer in react-native webrtc not work as expect as web version
  • d

    DemosJarco

    11/21/2022, 12:12 AM
    I know cloudflare stream right now supports h.264 ingest, but will it support h.265 and/or av1 ingest? I know AV1 is supported (in beta) out (in the player).
    b
    t
    • 3
    • 2
  • r

    Rachel

    11/21/2022, 12:32 AM
    might want to check if react webrtc sets the transceivers to be recvonly if WHEP
  • h

    huytran125

    11/21/2022, 3:17 AM
    yes, I have already set it
  • r

    Rachel

    11/21/2022, 3:39 AM
    did you want to publish or play a stream?
  • r

    Rachel

    11/21/2022, 3:43 AM
    currently it expects 1 video stream and 1 audio stream, publish or play
  • h

    huytran125

    11/21/2022, 3:47 AM
    I want to play a stream
  • h

    huytran125

    11/21/2022, 3:49 AM
    Currently I use the example on web to publish stream and use react-native to play the stream
  • r

    Rachel

    11/21/2022, 4:44 PM
    do you have the code somewhere I can take a look at
    h
    • 2
    • 19
  • g

    Giggiux

    11/22/2022, 7:36 PM
    Hi, some quick questions related to Streams WebRTC beta: when I use multiple WHEP clients, but the WHIP is not yet streaming, what will happen in terms of billing? Are these clients counted as already connected? Also, if I connect a WHIP client, but do not add a MediaStream to it until later on, e.g. I want an user to click "start streaming" to add the tracks to the peer connection: will this count as "the user is streaming"? Finally, using as example the demo code described in the docs (https://developers.cloudflare.com/stream/webrtc-beta/), If I send a "delete" request to the ingest endpoint, will this make the endpoint unavailable for a next time, as if I used the api to delete the ingest endpoint, or if I recreate the WHIP client, I could reuse the same endpoint, making the endpoint deletion available only via api?
    k
    b
    • 3
    • 4
  • d

    Dio

    11/24/2022, 5:57 AM
    Please advise me on what to do. I need to implement a video call between 2 users and broadcast this call to other users in hls. I use webrtc for calls. Tell me where to merge the streams to output 1 video instead of 2
  • i

    Isaac McFadyen | YYZ01

    11/24/2022, 11:21 AM
    Currently, Cloudflare Stream doesn't do WebRTC to HLS. You can only do WebRTC to WebRTC
  • i

    Isaac McFadyen | YYZ01

    11/24/2022, 11:22 AM
    Additionally, I'm not sure if the streams can be merged. Stream is more intended as a one-to-many solution (right now), not a one-to-one.
  • u

    3v

    11/24/2022, 4:25 PM
    👋 trying out the WHIP/WHEP beta and having some trouble restarting the stream after refreshing the WHIP page; it only occasionally starts broadcasting. Trying to send a DELETE to the endpoint URL, as shown in the example code, results in a 405 (method not allowed).
    r
    • 2
    • 4
  • t

    tt2468

    11/25/2022, 12:46 AM
    Oh hey 3v
  • r

    Remi_Gaillard

    11/25/2022, 8:29 AM
    Hi Thanks for this great product which is Stream! I wonder if there is any way to have a custom domain for viewers instead of cloudflarestream.com?
  • d

    daniel_klungo

    11/25/2022, 8:30 AM
    the docs say "For a specific range, refer to the optional parameters.", but I don't see any mention of them. am I missing something obvious here? @ https://developers.cloudflare.com/api/operations/stream-videos-list-videos
  • d

    daniel_klungo

    11/25/2022, 8:31 AM
    they're present in the old docs: https://api.cloudflare.com/#stream-videos-list-videos
  • d

    daniel_klungo

    11/25/2022, 8:38 AM
    submitted feedback ☑️
  • m

    mclovin

    11/28/2022, 4:45 PM
    Hi! Had a few questions about WebRTC: 1) Are secured playback streams supported for WebRTC? 2) Live viewer counts for WebRTC is marked as coming soon in the docs. Do we know roughly how soon? 3) Does the Stream player work with WebRTC streams? Thanks!
    k
    • 2
    • 4
  • k

    Kyle_Cloudflare

    11/28/2022, 10:03 PM
    Not at the moment, this is a request we've received a burst of interest over the last while, though. Is it a blocker for y'all?
  • d

    daniel_klungo

    11/29/2022, 7:46 AM
    I sincerely hope the old docs will stay up even after deprecation, as the new ones are lacking in many obvious ways (at least for Stream)
  • d

    daniel_klungo

    11/29/2022, 7:46 AM
    ie. no Response example https://api.cloudflare.com/#stream-videos-retrieve-video-details / https://developers.cloudflare.com/api/operations/stream-videos-retrieve-video-details
  • d

    daniel_klungo

    11/29/2022, 11:03 AM
    what is the recommended Cloudflare way of delivering mp4's with specific encoder options?
  • d

    daniel_klungo

    11/29/2022, 11:05 AM
    afaict we have no control over the encoder options that CF Stream would apply for the mp4 downloads, so we need an alternative
1...636465...105Latest