GithubHelp home page GithubHelp logo

Comments (6)

djhanove avatar djhanove commented on June 29, 2024

A workaround I found was to increase the number of frames between keyframes. It seems iOS likes a longer fragment length
Can modify with the key-int-max param in your pipeline

from amazon-kinesis-video-streams-producer-sdk-cpp.

sirknightj avatar sirknightj commented on June 29, 2024

HI @djhanove, thanks for sharing. Increasing the number of frames between keyframes will increase the fragment duration.

See the documentation for more information and troubleshooting tips: https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/troubleshooting.html#troubleshooting-hls

from amazon-kinesis-video-streams-producer-sdk-cpp.

stefankiesz avatar stefankiesz commented on June 29, 2024

Hi @djhanove, can you please provide some more details as to how HLS playback is failing (are there any errors, is the HLS URL fetching successful, video player logs if possible), and what is the GetHLSStreamingSessionURL command properties are for the streams?

from amazon-kinesis-video-streams-producer-sdk-cpp.

djhanove avatar djhanove commented on June 29, 2024

Hi there,
The HLS URL is fetched successfully and playback tries to start but then results in the following black image.
photo_2024-04-05_09-26-01

I am using the baseline h-264 profile which is read correctly in the kinesis media player. No issues on android or web with the same pipeline.

The GetHLSStreamingSessionURL is configured below:

export async function GET(request: NextRequest, { params }: { params: { device_id: string } }) {
  const deviceId = params.device_id;
  const { searchParams } = new URL(request.url);
  const livestreamMode = searchParams.get("mode");
  const streamName = `xxxxxxx_${deviceId}_${livestreamMode === "thermal" ? "thermal" : "rgb"}`;

  try {
    const result = await new Promise((resolve, reject) => {
      kvClient.getDataEndpoint(
        {
          StreamName: streamName,
          APIName: "GET_HLS_STREAMING_SESSION_URL",
        },
        (err, data) => {
          if (err) {
            reject(err);
          }

          const kvArchived = new AWS.KinesisVideoArchivedMedia({
            endpoint: data.DataEndpoint,
          });

          kvArchived.getHLSStreamingSessionURL(
            {
              StreamName: streamName,
              PlaybackMode: "LIVE",
            },
            (err, data) => {
              if (err || !data?.HLSStreamingSessionURL) {
                reject(err);
              } else {
                resolve(data.HLSStreamingSessionURL);
              }
            },
          );
        },
      );
    });

    return NextResponse.json({ url: result });
  } catch (e) {
    console.log("ERROR SERVER", e);
    return NextResponse.json({ error: e.message }, { status: 400 });
  }
}

from amazon-kinesis-video-streams-producer-sdk-cpp.

stefankiesz avatar stefankiesz commented on June 29, 2024

Can you please include what you were able to try from the above linked trouble shooting guide, and do you have any success using DASH instead of HLS on ios?

from amazon-kinesis-video-streams-producer-sdk-cpp.

niyatim23 avatar niyatim23 commented on June 29, 2024

Closing due to no response

from amazon-kinesis-video-streams-producer-sdk-cpp.

Related Issues (20)

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.