Skip to content
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

Cannot view video elements in Sentry Replay #9447

Closed
3 tasks done
slicertech opened this issue Nov 3, 2023 · 3 comments · Fixed by getsentry/sentry-docs#8447
Closed
3 tasks done

Cannot view video elements in Sentry Replay #9447

slicertech opened this issue Nov 3, 2023 · 3 comments · Fixed by getsentry/sentry-docs#8447
Labels
Package: react Issues related to the Sentry React SDK Package: replay Issues related to the Sentry Replay SDK Type: Bug

Comments

@slicertech
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

7.77.0

Framework Version

"react": "^18.1.0"

Link to Sentry event

https://mytaverse.sentry.io/replays/06a07cfc9c304836a242b2dda5124ae4

SDK Setup

Sentry.init({
  dsn: process.env.REACT_APP_SENTRY_DSN,

  // This sets the sample rate to be 10%. You may want this to be 100% while
  // in development and sample at a lower rate in production
  replaysSessionSampleRate: Number(process.env.REACT_APP_SENTRY_REPLAY_SESSION_RATE || 0.1),
  // If the entire session is not sampled, use the below sample rate to sample
  // sessions when an error occurs.
  replaysOnErrorSampleRate: Number(process.env.REACT_APP_SENTRY_REPLAY_ERROR_RATE || 1.0),

  environment: getSentryEnvironment(),
  integrations: [
    new BrowserTracing(),
    new Sentry.Breadcrumbs({ dom: false, console: true }),
    new Sentry.Replay({
      maskAllText: false,
      maskAllInputs: false,
      blockAllMedia: false,
      networkDetailAllowUrls: [
        window.location.origin,
        'amazonaws.com',
        'mytaverse.com',
        'pureweb.io',
        'dolby.io',
        'coreweave'
      ],
    }),
  ],
  beforeBreadcrumb(breadcrumb, hint) {
    if (!breadcrumb.category || !hint) {
      return breadcrumb;
    }

    const category = breadcrumb.category as SentryBreadcrumbCategory;

    if (
      checkIsTransactionCategory(category) ||
      checkIsFetchCategory(category)
    ) {
      return null;
    }

    const updatedBreadcrumb = sanitizedBreadcrumb(breadcrumb, hint);

    return updatedBreadcrumb;
  },
  tracesSampleRate: 1.0,
});

Steps to Reproduce

Hi,
We have a react application viewed on a web browser, usually Chrome. We display video content in a video HTML tag from "@tensorworks/libspsfrontend": "^0.3.4". Essentially pixel streaming.
We cannot view the video content in the replays.
Also, in a less complicated fashion, we display a YouTube video in an iFrame. This also does not display. While the YouTube content is not important, I am assuming that they are both related.

Tried unblock: ['img', 'video', 'object', 'picture', 'embed', 'map', 'audio'], but did not work.

Expected Result

I can see video content in replays.

Actual Result

We just see a blank element.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Nov 3, 2023
@github-actions github-actions bot added the Package: react Issues related to the Sentry React SDK label Nov 3, 2023
@lforst lforst added the Package: replay Issues related to the Sentry Replay SDK label Nov 3, 2023
@mydea
Copy link
Member

mydea commented Nov 8, 2023

Hey!

I think we cannot capture streamed video content. Replay can only capture videos if they are hosted as a file (e.g. /assets/my-video.mp4), because replay does not capture a video reproduction of what is happening on screen, but captures dom changes to replay those. Maybe this is really a documentation issue, where we should explain this better. cc @billyvg / @bruno-garcia / @jas-kas ?

@jas-kas
Copy link
Member

jas-kas commented Nov 9, 2023

@mydea our troubleshooting page on Replay SDK docs seems like a good spot. :)

We could also make it clearer what is captured and what isn't in the "What is a replay?" docs --> https://docs.sentry.io/product/session-replay/?original_referrer=https%3A%2F%2Fdocs.sentry.io%2F#what-is-a-replay

@mydea
Copy link
Member

mydea commented Nov 9, 2023

We've added docs to explain this! so hopefully this is clearer in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: react Issues related to the Sentry React SDK Package: replay Issues related to the Sentry Replay SDK Type: Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants