Crop video preview of MediaCapture to produce square aspect ratio - windows-runtime

I'd like to create a video recording app which outputs & previews a 480x480 video that isn't letter-boxed. This is for windows phone 8.1, but really it should be the same concept for any winRT.
What would be the best way?
Would it be using AddEffectAsync (MFT effect) to do this? Or using a custom sink?

Working with MSFT for an answer. The team has said that the best way to do this is with a MFT. I'll update this answer with a link to a sample, if I'm allowed to share it.

Related

Limitations using Facebook Unity Integration on WebPlayer

we are using Facebook's Unity SDK on the Facebook Web Platform (using Unity WebPlayer).
We went for the non-html approach so we only provide the .unity3d file url. (Unity Integration button is active)
Using this method we have this three problems:
1) we find no way to customize the Unity loading screen. This method and this method only work using old html integration way.
2) on Windows platforms, any Facebook floating div, such as chat windows or search dialog result, make the game to be invisible. (if fact facebook javascript sent the game canvas to -10000 x-position)
3) we can't use a custom html tiled background image. We might change the background after Unity is loaded but the transition doesn't look good
My questions are:
Is is possible to solve them and still using Unity Integration method?
Do you suggest us to go for the old html integration method?
Thanks!
We are working to resolve this soon.
Unfortunately for certain browsers, Unity will always draw on top of everything. That means when chat windows pop up they would appear under the game. We try to keep the game around if this isn't the case.
Does Application.ExternalEval() with JS not work for you?
The benefits you get from using the Unity Integration is that:
the dialogs will appear in game, so your players won't be kicked out of fullscreen if they are there.
cross platform would be easier, as you don't have to integrate a different SDK if you also export to Android and iOS
don't have to manage the web page on canvas
Unless you want more DOM control directly through JS/HTML before the game loads, it's probably better to stick with the Unity Integration.
I hope that helps your decision making.

Any straight-forward way to animate the transition from Portrait to Landscape in Windows Phone 8?

I wish there were some clear, straight way to animate the transition of an app from landscape to portrait, like the 1st party apps do.
I googled, I binged but I can't find any straight answers, not even a "no can do".
I think this article is what you search. It says about Windows Phone 7, but actions described in it are applicable for WP8.Just plug Windows Phone Toolkit via NuGet or manually.
#lumen is correct the Phone Toolkit (OS from Microsoft) is a great way to do it.
Read Andy Wigley's post on how to do it (yes the documentation on the Phone codeplex page is a bit scare adn is mostly blogged about by the contributors)
http://mobileworld.appamundi.com/blogs/andywigley/archive/2010/11/23/windows-phone-7-page-orientation-change-animations.aspx
Alternatively if you have the Telerik Controls, you can just implement their Transition page control in pretty much the same way but you will have even greater control for how that looks.
Hope this helps

Windows Phone 8 control, like in Photos app?

What control is used in native Photos app? I need the same experience, can I achieve it with Pivot or Panorama? Maybe its just a rotated LongListSelector?
I think you're asking about how the single photo viewer feature of the Photos app is implemented, right? If so, check out the Media Viewer control that is part of this sample Lens app here: http://code.msdn.microsoft.com/wpapps/Basic-Lens-sample-359fda1b
They use a Panorama control, not a Pivot or LongListSelector. At least not for the horizontal scrolling.
Telerik has a control for that... found here
Not sure how to implement that on with the basic controls though

Embed 3D models on website

Is there a way to embed Sketchup models on a website? Preferably a free one, if it's a commercial solution I'd like a confirmation that it's actually worth the money... I know about the 3D warehouse thingy where you can rotate it (javascript and some images), but I can't upload anything to the 3D warehouse 'cause it always "resets the connection".
You can try the upcoming WebGL Functions in modern Browsers. There are some Javascript Libraries that can read model files and show them within your (HTML 5?) website. I have not used them yet, but try these links if this sounds interesting:
https://github.com/mrdoob/three.js/
https://github.com/timjb/sketchup-threejs/
I made a patch of an example game in three.js. Added ColladaLoader and Sketchup model + Third Person Shooter controls:
https://github.com/irony/Nemesis
Try it out (Works best in Chrome)
http://peaceful-woodland-4410.herokuapp.com/index.html
You can use http://sketchfab.com, they even have a SketchUp exporter.
Yes, you can do it without cost. See here: https://help.sketchup.com/en/article/3000258
EDIT:
There were some free rendering sites apart from Google, but they don't seem to be in operation anymore. Posting to the Google 3D warehouse is going to be your best bet. Regarding your problem posting there, try it with Chrome.
EDIT #2:
If you don't want to upload to Google 3D Warehouse, you can achieve a similar effect with a little work. 3D Warehouse doesn't actually give the visitor the power to manipulate something in 3D, but rather it lets them "rotate" the image horizontally by simply showing a series of preset images of the 3D from various angles. You can take shots of your 3D object, import to Photoshop and create your own gif of the spinning object. A little more work than relying on Google, so you'll have to decide if it's worth it.
EDIT #3: If all else fails you can simply post the 3D model on your site as a downloadable file and advise visitors to get Sketchup to view it.

Can I playback a SVG animation within SMIL?

for a digital signage project, I created a SVG based rundown, which plays other SVG files in a loop on a Spinetix box.
Now I had to change the playback device. The new one supports SMIL and I'm looking for a way to reuse my old solution on this device. I think of creating a SMIL rundown which plays the standalone SVG files (basically it's the same, I think).
I googled and searched and didn't find a way to realize this. Any ideas? I appreciate your help on this one.
Thank you,
Juri
SMIL is less powerful then SVG as it only handles the playlist timings.. Therefore it will be dificult for you to have the SVG projects taken over on a SMIL-only device ...
SpinetiX launches apparently a new software which is running inside their players, according to the video's it's realy simple to update content now ...
james