UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

Loading from buffer for mobile

Open jnroesch opened this issue 5 years ago • 8 comments

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.

jnroesch avatar Feb 21 '20 11:02 jnroesch

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.!

redccoma avatar Apr 07 '20 03:04 redccoma

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 :)

NawarRajab avatar Jun 16 '20 00:06 NawarRajab

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

littlesome avatar Jul 10 '20 04:07 littlesome

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] avatar Aug 26 '20 16:08 stale[bot]

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.

stale[bot] avatar Sep 02 '20 19:09 stale[bot]

Any update on this?

ananttheant avatar Nov 12 '21 09:11 ananttheant

Any update on this?

sv955 avatar Dec 20 '22 08:12 sv955

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

wangwhsz avatar Jun 02 '23 01:06 wangwhsz