Coder Social home page Coder Social logo

Comments (4)

MorrisRH avatar MorrisRH commented on May 29, 2024 1

Hi!
Thanks for the detailed report.
It doesn't look like you're doing anything wrong. On macOS the file writing when the recording has been stopped is asynchronous, it looks like the Vimeo SDK is trying to upload the file before it has finished being written out. Will let you know when a fix is in place.

from unityplugin-avpromoviecapture.

h5olo avatar h5olo commented on May 29, 2024

Hello, My project is finished with unity’s default recorder. But as we expect to use AVPRO in the future, i want to know when this bug can be fixed. It is expected to be busy, but please check it. Thank you!

from unityplugin-avpromoviecapture.

AndrewRH avatar AndrewRH commented on May 29, 2024

This has now been added in the latest version (4.0.3). You can subscribe to an event now when the file writing starts, and then poll the object for when the file writing has completed:

	[SerializeField] CaptureBase _capture = null;

	private List<FileWritingHandler> _fileWritingHandlers = new List<FileWritingHandler>(4);

	void Start()
	{
		// Add the event listener
		_capture.FileWritingAction += OnFileWriting;
	}

	private void OnFileWriting(FileWritingHandler handler)
	{
		_fileWritingHandlers.Add(handler);
	}

	private void Update()
	{
		// Check for any completed file writes and remove the handlers
		for (int i = _fileWritingHandlers.Count - 1; i >= 0; i--)
		{
			FileWritingHandler handler = _fileWritingHandlers[i];
			if (handler.IsFileReady())
			{
				Debug.Log("File is ready: " + handler.Path);
				_fileWritingHandlers.RemoveAt(i);
			}
		}
	}

	void OnDestroy()
	{
		// Dispose of any pending file writers
		foreach (FileWritingHandler handler in _fileWritingHandlers)
		{
			handler.Dispose();
		}
	}

from unityplugin-avpromoviecapture.

AndrewRH avatar AndrewRH commented on May 29, 2024

@h5olo perhaps you could post an issue to the Vimeo SDK GitHub issues referencing this issue here so they can integrate this new handling code?

For now I'm going to close this issue. Thanks,

from unityplugin-avpromoviecapture.

Related Issues (20)

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.