RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

Loading from buffer for mobile #274

Open jnroesch opened 4 years ago

jnroesch commented 4 years ago

Is your feature request related to a problem? Please describe. From my understanding it is currently impossible to play encrypted files in avpro that are on the disk. I store recorded videos by the user on the disk with a custom byte encryption and custom file ending so that other apps like media gallery on the phone will not detect the recorded files. It is easy to load the byte[] in memory and decrypt it but since avpro does not accept this as an input I first have to write the decrypted file to the Disk again and play that. Then I have to remove this decrypted file when the video is finished playing. I found the OpenVideoFromBuffer method but it seems to work only on windows and not on mobile.

Describe the solution you'd like I would like to see an interface method like OpenVideoFromBuffer or OpenVideoFromBinary which takes a byte-array as input and displays the video content of that.

Describe alternatives you've considered As mentioned above the only alternative is to decrypt the file and store it as a regular mp4 file which is not suitable in our case.

Additional context OpenVideoFromBuffer is also not documented in the pdf so I am not sure if this is even up to date or supported anymore. I think there are a lot of usecases where reading a binary input would make sense and allow for a great variety of applications and customizations for the developer.

redccoma commented 4 years ago

Oh, my God. This was exactly what our team was thinking about. Thanks to the proposer. We hope to support these features in the near future.!

NawarRajab commented 4 years ago

YES! This is what our team needs. the only alternative for us is to play the video on the native side and stream it's texture which is not a great solution. Please work on that :)

littlesome commented 3 years ago

Same issue, Maybe currently a workaround: start a simple local http server, play video by url like http://127.0.0.1:port/video001.mp4, on http request, feed you video buffer

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.

ananttheant commented 2 years ago

Any update on this?

sv955 commented 1 year ago

Any update on this?

wangwhsz commented 1 year ago

Not yet. And the method "OpenVideoFromBuffer " needs specific Video API “Direct Show”,it wont work with "Media Foundation".