Code Monkey home page Code Monkey logo

Comments (4)

beaufortfrancois avatar beaufortfrancois commented on July 17, 2024

The following Chromium source code shows that GetCurrentFrameThenUpdate() returns null. I'm not sure why though that's the case for an ogv file...

ExternalTextureSource GetExternalTextureSourceFromVideoElement(
    HTMLVideoElement* video,
    ExceptionState& exception_state) {
  ...
  
  if (auto* wmp = video->GetWebMediaPlayer()) {
    source.media_video_frame = wmp->GetCurrentFrameThenUpdate();
    source.video_renderer = wmp->GetPaintCanvasVideoRenderer();
  }
  
  if (!source.media_video_frame) {
    exception_state.ThrowDOMException(DOMExceptionCode::kOperationError,
                                      "Failed to import texture from video "
                                      "element that doesn't have back "
                                      "resource.");

@Djuffin and @dalecurtis may be able to help us understand what is causing this issue.

from webgpu-samples.

greggman avatar greggman commented on July 17, 2024

Chrome bugs should probably be discussed on the chrome issue site?

https://crbug.com/

from webgpu-samples.

z4122 avatar z4122 commented on July 17, 2024

Chrome bugs should probably be discussed on the chrome issue site?

https://crbug.com/

Ok, I report a bug https://issues.chromium.org/issues/340992045#comment1

from webgpu-samples.

dalecurtis avatar dalecurtis commented on July 17, 2024

Only VP8 in ogg is now supported: https://chromestatus.com/feature/5158654475239424

from webgpu-samples.

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.