Commit Graph

7 Commits

Author SHA1 Message Date
Deal(一线灵) de7fdee6e4
Enable video player(VideoTexture) based on new MediaEngine for macOS and tvos (#1154)
* Ready for PR macOS

* Update videoTexture.frag

* Fix compile

* Fix h265 for mac [skip ci]

* Fix compile error

* Update readme [skip ci]
2023-04-02 01:51:36 +08:00
halx99 97f6b0e9a5 Move video player implementation to a unique folder 2022-02-24 18:13:01 +08:00
deal 7a89757385
Add windows video play support [render video sample to texture2d] (#577)
* [Draft] Implement windows video player

Based on microsoft media foundation

* Delete pvd

* Shutdown MF media before release player

* Consider MFMediaPlayer ref leak

* Use Microsoft::WRL::ComPtr

* Simplify code

* Improve code and take care COM object refs

* Update UIVideoPlayer-win.cpp

* Delete unused code

* Add play from url support

* Update logic

* Rename ADXE_ENABLE_MFMEDIA to AX_ENABLE_MFMEDIA

* Rescale video render sprite to view node

* Fix warnings

* Don't shallow copy the video context, it's very dangerous

* Fix compile error CC_VIDEOPLAYER_DEBUG_DRAW=1

* Fixup

* [Window video player] play event dispatch

* support switch video file

* Update UIVideoPlayer-win.cpp

* [windows-video-player] keep aspect ratio and full screen support

* Improve code

* Update changelog [skip ci]

* Update README.md

* Update README.md

* Update README.md

* Update README_CN.md

* Update README_CN.md
2022-02-24 17:57:08 +08:00
halx99 2be191e380 Fix compile error CC_VIDEOPLAYER_DEBUG_DRAW=1 2022-02-23 18:39:02 +08:00
halx99 70dc9922ef Don't shallow copy the video context, it's very dangerous 2022-02-23 17:38:21 +08:00
halx99 2a6e749ad4 Fix ci & update project url in sources 2022-01-04 12:36:20 +08:00
halx99 e534dd66c0 Rename core folder name 2021-12-31 14:39:08 +08:00