How to communicate between HTML page button and unity webgl - unity-webgl

Can I add a button in HTML to allow users to upload external folders from their computers and transfer that data within the Unity WebGL canvas for 3D volume generation? I've developed a button in HTML that allows users to upload files, but I can't transmit the data to the Unity WebGL canvas.
I'd be grateful for any assistance.
HTML button inetraction with unity webgl canvas

Related

Convert html/css/javascript code in SVG for Adobe XD

a client gave me a design system for the restyling of their app, but it's only a website with all the design system and no sag to download. In the website the is only the HTML/CSS/JS code.
Is there a way to have components like buttons in SVG to use Adobe XD, starting from HTML/CSS? I attached an image of what I have
Thanks!
enter image description here

Load SVG files with Xamarin Forms

I am building an app which loads an SVG file (2D Floor plan) and then I need to add click events for each room, table, chair, etc...
I am using normal HTML / Javascript for the website and for the app I am testing the XamSVG component but I am not sure that is the right tool for it.
Any ideas? Can I use WebView? There are other packages available?
Thanks

Save UWP Ink Strokes as SVG

Is there a way to save InkStrokes from an UWP InkCanvas as SVG?
I already save them in the format 'GifWithEmbeddedIsf', this is good for reloading the ink data in another InkCanvas, but my problem is when I use the Gif to display the Ink Strokes inside a web client. This Gif does not have the same quality as displaying the InkStrokes in the UWP app [this is especially visible while zooming in].
I already found this answer that's available in WPF apps, but the same API is not available in UWP [or I haven't found it].

In XPages I can't get the File Upload Control to work inside of Mobile Controls

Now that iOS devices can upload from their picture library or camera, I'm trying to use the file upload control to get ahold of these pictures via an xpage. If it's a plain XPage it's working fine - but if I try to wrap this inside of the Mobile Controls from the extension library I can't get the picture to save. Other values save to the document but not the picture.
The file upload control is bound to a rich text field.
Any ideas would be appreciated!!!!
Place the file upload inside an Iframe.
Interesting. Are you saying that you can make the file upload control work with an XPage on an iOS device? I was of the clear impression that you do not have access to the camera from a web-app. In this case you need to wrap your web-app into a layer that can access the physical (e.g. Apache Cordova aka PhoneGap)....?
I know that some of these features are on their way in html5, however, the have so far been very unreliable (crashing the phones often).
/John

How can I use a UIWebview to load content from a asp.net website dynamically loading .mp4 video and get the video to play?

I have a client that has a website. The website current allows users to login and search for and play .mp4 video. The list of playlist is created dynamically where values are stored in a sql server 2008 database. My client's site is already built for smartphone utilization and did not want to recreate an iphone app. Besides it would mean loading thousands of video. Instead I thought I would use the UIWebview to load the website. This seemed to work well. However, when you try to click on and play video within the UIWebview nothing happens. This is not the case if we launch the mobile website within the apple mobile safari browser. The vide plays by kicking off in the iPhone video player. Is there any way to accomplish this same functionality with a uiwebview? Any guidance or help is appreciated.
UIWebView will play video using <video> if everything is set up correctly, either remote files or local files will work (if they are the correct format).
What does your video tag look like? In particular your src.
If you want to, for example, play an inline video the html5 for that would be something like
<video id="theVideo" controls width="280" height="160" src="yourVideo.mp4" webkit-playsinline></video>
And it would be necessary in the UIWebView to set this line
self.webView.allowsInlineMediaPlayback = YES;
Or you can also explicitly load the media player, but doing everything in HTML5 is neat and tidy and easy.

Resources