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

    joshh

    10/17/2022, 9:47 AM
    are you adding it via the custom domain UI in stream?
  • j

    joshh

    10/17/2022, 9:47 AM
    because it's not going to work any other way.
  • k

    Kyle_Cloudflare

    10/17/2022, 2:07 PM
    @Cartel can you give these instructions a try? https://developers.cloudflare.com/stream/stream-live/custom-domains/
  • c

    Cartel

    10/17/2022, 2:26 PM
    yes @joshh
  • c

    Cartel

    10/17/2022, 2:27 PM
    yes i already did that
  • k

    Kyle_Cloudflare

    10/17/2022, 2:28 PM
    Gotcha, thanks for confirming; can you DM me your account ID so I can take a peek?
  • m

    mkrigsman

    10/17/2022, 5:11 PM
    When using the Poster attribute, we are unable to get an image from our site to display. For example see this URL:

    https://customer-dfpgadnaeef4b406.cloudflarestream.com/4556f4d22f7bc6e922bf11ea3b77f5bd/iframe?poster=https://test.cxotalk.com/sites/default/files/field/image/Bernardo-Mariano-v2.png▾

    However, if we simply link to this image then it works properly:

    https://test.cxotalk.com/sites/default/files/field/image/Bernardo-Mariano-v2.png▾

    Any ideas on what's going on? Thanks!
  • j

    joshh

    10/17/2022, 5:58 PM
    make sure your file is a direct download. There can't be HTML rendering the image.
  • m

    mkrigsman

    10/17/2022, 6:45 PM
    Thanks for the reply but you can see both URLs point to the same file, but only the non-CF link works. Any thoughts on troubleshooting the problem?
  • j

    joshh

    10/17/2022, 7:00 PM
    you must be using HTML as middleware to show the file, which would require code to be executed. The ``poster`` attribute is just telling your browser to grab the image -- which is exactly what throwing the URL into your browser would do. The way to test if you're not using HTML is open terminal/command prompt run ``curl [link] --output ./Downloads/image.png``. Replace ``[link]`` with your link. The file should download and you should be able to open it in your image viewer.
    m
    • 2
    • 2
  • m

    mkrigsman

    10/17/2022, 7:18 PM
    Thank you, will try that
  • v

    valentinexo

    10/18/2022, 10:40 AM
    Is there an API endpoint to update an existing video's meta such as the title and allowed origins? I haven't found one thus far.
    k
    • 2
    • 1
  • c

    Cyb3r-Jok3

    10/18/2022, 11:29 PM
    I don't know if this has been reported yet but it appears there is a typo in the API docs. > https://api.cloudflare.com/#stream-videos-create-signed-url-tokens-for-videso https://community.cloudflare.com/t/tiny-typo-in-api-docs/427830
  • d

    DemosJarco

    10/19/2022, 2:18 AM
    https://discord.com/channels/595317990191398933/893253103695065128/1027768295761399808
  • d

    daniel_klungo

    10/19/2022, 11:41 AM
    is there any way to batch update eg. the
    allowedOrigins
    for many videos at once?
  • d

    Deleted User

    10/20/2022, 2:45 AM
    Copy code
    javascript
    // const url = "customer-customdomain.cloudflarestream.com";
    const url = "api.cloudflare.com/client/v4";
    // const url = "customer-customdomain.cloudflarestream.com/client/v4";
    const id = "myid";
    const email = "my@email.com";
    const key = "myapikey";
    
    fetch(
      new Request(new URL(`https://${url}/accounts/${id}/stream`), {
        headers: new Headers({
          "X-Auth-Email": email,
          "X-Auth-Key": key,
          "Content-Type": "application/json",
        }),
        // limit: 500,
        // after: "2014-01-02T02:20:00Z",
      })
    )
      .then((response) => response.body)
      .then(
        new ReadableStream({
          start(controller) {
            function push() {
              reader.read().then(({ done, value }) => {
                if (done) {
                  controller.close();
                  return;
                }
              });
              controller.enqueue(value);
              push();
            }
          },
        })
      )
      .then((stream) => new Response(stream).text())
      .then(console.log);
    
    // {"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}
    am I doing something wrong here? I'm getting an authentication error?
  • d

    Deleted User

    10/20/2022, 2:48 AM
    never mind works with
    Copy code
    Authorization: `Bearer ${key}`
  • d

    Deleted User

    10/20/2022, 2:53 AM
    https://api.cloudflare.com/#stream-videos-list-videos limit isn't working here
  • k

    Kyle_Cloudflare

    10/20/2022, 2:17 PM
    Can you share the exact code that you're running into the limit issue with? The snippet you initially posted
    Copy code
    new Request(new URL(`https://${url}/accounts/${id}/stream`), {
        headers: new Headers({
          "X-Auth-Email": email,
          "X-Auth-Key": key,
          "Content-Type": "application/json",
        }),
        // limit: 500,
        // after: "2014-01-02T02:20:00Z",
      })
    )
    If you uncomment
    limit
    , I would still not expect that to work. Limit is passed as a query parameter, AFAIK you would need to mutate the URL rather than adding entries to the second argument of
    fetch
    ie,
    .../stream?limit=30&include_counts=true
    , which is the arguments our dashboard calls with
  • x

    xtc

    10/20/2022, 4:52 PM
    Hey, is there a hard limit on the video upload limit, even if Cloudflare support approves a limit raise? > By default, you can have up to 120 videos in the inprogress, queued or downloading state at the same time.
    k
    b
    • 3
    • 8
  • m

    MagnusG87

    10/21/2022, 5:07 PM
    Is it possible to leverage an "Event Playlist" type (https://developer.apple.com/documentation/http_live_streaming/example_playlists_for_http_live_streaming/event_playlist_construction) for live events? We are looking to have behavior similar to a live event on YouTube where a user can jump into a live stream and be able to seek back to the beginning when the stream started and then go back to live. If the event type isn't the right approach, is there anything else we can do to acheive this behavior?
  • s

    shaquilleoatmeal

    10/21/2022, 9:21 PM
    hi everyone, i have a question on the billing for cloudflare stream, does video upload + encoding/transcoding count towards minutes for billing?
  • a

    altryne

    10/21/2022, 10:21 PM
    Hi, I think I found my new discord home for the foreseeable future.
  • d

    Deleted User

    10/22/2022, 12:55 AM
    figured it out, had to use
    URLSearchParams
  • d

    Deleted User

    10/22/2022, 12:55 AM
    also https://api.cloudflare.com/#stream-videos-create-signed-url-tokens-for-videso typo here
  • j

    JustDalek_

    10/22/2022, 2:04 AM
    I reached out to cloudflare support but never heard back on my ticket, reddit suggested I ask here Does anyone know if using the rtmp output to twitch and youtube incurs additional cost or if that is included since it would hand off to their CDNs? For example: Current billing is $1 per $1,000 minutes streamed plus $5 per 1,000 stored. If I was to add destinations, such as twitch and YT let's say does that increase cost, or is it included? For example does that mean my billing will become $3 per 1,000 streamed and $5 per 1000 recorded? ($3 instead of 1 since I added 2 platforms) Many thanks for any insight!
  • d

    DemosJarco

    10/22/2022, 2:40 AM
    Stream is billed as minutes in, not minutes out
  • d

    DemosJarco

    10/22/2022, 2:41 AM
    So still $1/1000min whether you have 0 or 10 outputs
  • j

    JustDalek_

    10/22/2022, 2:42 AM
    So it's per viewer on my web embed but rtmp outputs are no extra cost?
  • u

    Unsmart | Tech debt

    10/22/2022, 2:43 AM
    Each output counts as if its a viewer of your stream. So for example if you output a 6 hour stream to youtube and twitch you will incur 720 viewing minutes. ($0.72)
1...515253...105Latest