adrenak / GPUVideoPlayer

Fast video playback on Unity using GPU Decoding
MIT License
128 stars 29 forks source link

cant SetPlaybackRate to video #5

Closed fingerx closed 5 years ago

fingerx commented 5 years ago

Hi,thanks for this. i want to set my video playbackrate but cant. can you add fucntion. thanks very much.

adrenak commented 5 years ago

Will have to see if the native code supports that. Will have a look. Thanks for pointing out

fingerx commented 5 years ago

Thanks.Using vs2017 open Shared.vcxitems but cant build. Prompt to lose files.

fingerx commented 5 years ago

Create a project manually and add HRESULT CMediaPlayerPlayback::SetPlaybackRate(DOUBLE rate) { Log(Log_Level_Info, L"CMediaPlayerPlayback::SetPlaybackRate()"); If (nullptr != m_mediaPlaybackSession) { m_mediaPlaybackSession->put_PlaybackRate(rate); }

Return S_OK; }

All is ok.

fingerx commented 5 years ago

build is ok but unity show error cant find dll

fingerx commented 5 years ago

using win10 10.0.15063.0 sdk and universal windows dll

fingerx commented 5 years ago

using dependencyWalker show many dll not found. i dont konw why. need your help. thanks

image

fingerx commented 5 years ago

using dependencyWalker open your mediaplayback.dll show many dll miss but untiy is ok and play video is ok..

fingerx commented 5 years ago

using c++ windows desktop dll fixed my error. this my mistake. sorry.

adrenak commented 5 years ago

Can you submit a pull request? I will not be able to work on this for a few weeks atleast. Many thanks for being so active on this!

fingerx commented 5 years ago

I am very sorry that my reply is late, I have already submitted PR.

spaul13 commented 5 years ago

@fingerx , can u please briefly tell me how u compiled the native scripts on windows? what compiler u used and what commands?