Git Product home page Git Product logo

mdk-examples's Introduction

media player examples based on mdk sdk. runs on all platforms. Download the latest sdk

About libmdk sdk: https://github.com/wang-bin/mdk-sdk

Flutter

https://github.com/wang-bin/fvp

GLFW

glfwplay

  • has the most features
  • use glfw context as foreign context mode
  • use glfw window to create render loop and gl/d3d11/metal/vulkan context internally

multiplayers

1 player per window

multiwindows

many windows as render targets sharing the same player

PlayListAsOne

Gapless play/seek multiple videos like a single video

simple

minimal glfw example

macOS

  • use CAOpenGLLayer as foreign context
  • use NSView to create render loop and gl context internally

iOS

Legacy Obj-C OpenGLES2 example

Apple

Native

examples without platform specific code

  • mdkplay: a mininal player with internally created platform dependent window/surface and opengl context, also create render loop and gl context
  • DecodeFps: a tool to test decoder performance. `./DecodeFps [-c:v DecoderName] file"
  • offscreen: offscreen rendering guide

Qt

  • Integrate with QOpenGLWindow and QOpenGLWidget. Use gl context provided by Qt.
  • Render on QOpenGLWindow and QOpenGLWidget via gl context provided by Qt
  • QML example via QOpenGLFrameBuffer
  • RHI example: vulkan, d3d11, metal, opengl

SDL

Use gl context provided by SDL

SFML

  • Use gl context provided by SFML
  • Render to SFML texture

WindowsStore

UWP example, supports D3D11, and ANGLE GLES2

CoreWindowCx

  • use Windows::UI::Core::CoreWindow as platform dependent surface to create render loop and gl context internally
  • use App provided gl context

XamlCx

  • Use Windows::UI::Xaml::Controls::SwapChainPanel as platform dependent surface to create render loop and gl context internally
  • Switch between 2 render targets

mdk-examples's People

Contributors

wang-bin avatar wangwenx190 avatar pplxlee avatar

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.