Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofxJSONRPC - cannot load images from JSONRPC registered method

$
0
0

Thanks, I'll keep it in mind.
For now it's a workaround:

void ofApp::update()

{
	if (currentVideoID != selectedVideoID)
	{
		loadPicture(selectedVideoID);
		currentVideoID = selectedVideoID;
	}
}

registered method:

void ofApp::setVideo(ofx::JSONRPC::MethodArgs& args)
{
	// Set the user text.
	// loadPicture(args.params.asString());
	selectedVideoID = args.params.asString();
	ofLogVerbose("ofApp::setVideo") << args.params.asString();
}

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>