Code Monkey home page Code Monkey logo

Comments (2)

ystreet avatar ystreet commented on September 13, 2024

As you say, MacOS requires that UI operations occur on the main thread. Unfortunately, that's a hard thing to do when you don't control the thread loop. The display element in question (glimagesink) does contain code for attempting to initialize everything correctly when using GMainLoop and the GStreamer binaries for MacOS also contain a patch that iterate the main CFRunLoop when iterating the main GMainLoop. Without that one needs to run the CFRunLoop manually like in: https://github.com/sdroege/gstreamer-rs/blob/master/examples/src/examples-common.rs

In short, for MacOS, the python example would need to be written around either GMainLoop instead of asyncio or attempt to run the main CFRunLoop from python. Can you try the c or rust versions instead?

from gstwebrtc-demos.

ykazakov avatar ykazakov commented on September 13, 2024

As I mentioned, the C code works fine. The problem appears only with the Python code. Thanks for the pointer to a workaround!

from gstwebrtc-demos.

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.