Video Stretching in Ant Media Community Edition - ant-media-server

If I am streaming from android webrtc SDK (provided by antmedia) to community edition of Ant Media, the final video which is being saved, appears stretched (shot in portrait mode of mobile). Check the screenshot of the video.
But if I am using the enterprise edition, the problem resolves itself.
Kindly help, how can I prevent the video stretching (while saving) in community edition?

I think this problem happens because Ant Media Server Community Edition resizes the incoming video to 640x480. The origin video's resolution is likely 16:9 so that you see a stretching in the video.
I think you can set the resolution to something 4:3 in Android SDK because community edition uses 640x480 for converting WebRTC stream. Try the followings before you initialize webRTCClient = new WebRTCClient( this,this); in onCreate method
this.getIntent().putExtra(EXTRA_VIDEO_WIDTH, 640);
this.getIntent().putExtra(EXTRA_VIDEO_HEIGHT, 480);
Update:
There is an aspect ratio problem in community edition while publishing from Mobile App. The issue is created for that. https://github.com/ant-media/Ant-Media-Server/issues/2492
Fortunately, commits are also pushed to resolve this problem. It'll be available as SNAPSHOT soon and will be available in next release.
SNAPSHOTs are here -> https://oss.sonatype.org/#nexus-search;gav~io.antmedia~ant-media-server~~~~kw,versionexpand

Try this in video player activity
<com.google.android.exoplayer2.ui.SimpleExoPlayerView
android:id="#+id/player_view"
android:layout_width="match_parent"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:layout_height="match_parent"
app:resize_mode="fill"
app:use_controller="false" />

Related

flex mobile live video streaming to flash media server

I'm building a flex mobile application that streams the device's live video to flash media server.I can't run such an application on the flash buider's emulator because it doesn't emulate the camera and i don't have an android device to test my work on it.I wonder if using the NetConnection and NetStream classes with the device's camera will work as in a regular flex web application.I really need an advice from someone who tested those two classes(NetConnection and NetStream) with flex mobile.Any pointers or advices will be appreciated.
Thanks in Advance.
NetConnection and NetStream with Adobe AIR for Mobiles works exactly as how it works with a regular web application.
However, some things have to be considered. Your mobile application should be developed on a "Landscape" mode. Since there is a bug with adobe such that the video stream gets rotated when you are sending the video stream from your front camera.
Bug Report
However, i am not recommending you to stop developing the application. This will be a good challenge though.

Flex Mobile Web Application - Native Camera and GPS Access

I have an old flex web application which now needs to access the camera and gps on a smartphone.
I see there are external libraries to do some of the work for you but what need is native flex support for accessing the phone's GPS and camera from the mobile browser.
The application can be recompiled to any version of flex from 3 to 4.6 if necessary.
To clarify further: The SWF file is embedded in a web page which is then displayed on a tablet/phone (android, ios, etc). I want to be able to read the current GPS coordinates from the hardware GPS and be able to take a picture with the onboard camera.
If this is 100% impossible, I can call a JavaScript function to read the photo and GPS from a third party component, this component would need to be all encompassing as far as mobile devices are and be compatible with the flex externalinterface setup.
Thanks for you help in advance.
Pete
You can pretty much forget about using flash on mobile and desktop for that matter, its a dead end technology now.
Sadly there are very very few mobile devices that will give you browser access to the camera yet. There are a few, but iOS for example has not yet implemented the standard. So you are not going to be able to readily access the camera for at least another year or so. It depends on when Apple, Google and Microsoft get their act together.
As for GPS all the mobile browsers that anyone uses supports the geolocation specification so you can know where the user is.
http://professionalaspnet.com/archive/2012/05/25/A-Study-Using-The-HTML5-Geolocation-API.aspx

Is it possible to show images in Skype chat window?

Is it possible to show images in Skype chat window ?
(windows 7 Skype client)
You can share your desktop using the windows desktop client (not Windows Modern), or drag and drop a image (or any file) into an IM window, or if you are using the iOS client do this - http://mashable.com/2012/08/21/skype-photo-sharing-update/
Update 7/9/14: More clients now support picture sharing in the chat: Xbox one, Windows Phone and iOS all have it now.
Update 09/10/14: Window and Mac too now (improved-skype-desktop-clients-for-a-dynamic-new-chat-experience)
Disclosure: I currently work for Microsoft/Skype
I think no, only you can share links to image, if you think on showing send image immediately, without download them.
There's a discussion/plea for such a feature at the Skype Community. Also, there's this Feature Suggestion separately. Please support.
If you are looking to share photos in real-time, the following tool allows for an online, collaborative slide show. I use it regularly to show pictures to my family over a skype session: http://www.photozzap.com/

How to limit device usage on Android Market (new feature)?

Market has added device compatibility check.Now we can check if an app will work on specific device, for exaple HTC mobile phone, Samsung Galaxy, etc.
What about developer's side: How can we build apps for specific devices only or restrict app for tablets only? How to do restriction in XML and code? It's probably some attribute in Manifest file.
Thanks
Here "Specifying Your Application's System API Requirements" ?
It seems that Market checks this out by itself.

What are effective options for embedding video in an ASP.NET web site?

A quick glance at the present-day internet would seem to indicate that Adobe Flash is the obvious choice for embedding video in a web page. Is this accurate, or are they other effective choices? Does the choice of ASP.NET as a platform influence this decision?
Flash is certainly the most ubiquitous and portable solution. 98% of browsers have Flash installed. Other alternatives are Quicktime, Windows Media Player, or even Silverlight (Microsoft's Flash competitor, which can be used to embed several video formats).
I would recommend using Flash (and it's FLV video file format) for embedding your video unless you have very specific requirements as far as video quality or DRM.
Flash is usually the product of choice: Everyone has it, and using the JW FLV Player makes it relatively easy on your side.
As for other Video Formats, there are WMV and QuickTime, but the players are rather "heavy", not everyone might have them and they feel so 1990ish...
Real Player... Don't let me even start ranting about that pile of ...
The only other alternative of Flash that I would personally consider is Silverlight, which allows streaming WMV Videos. I found the production of WMV much better and easier than FLV because all Windows FLV Encoders I tried are not really good and stable, whereas pretty much every tool can natively output WMV. The problem with Silverlight is that no one has that Browser Plugin (yet?). There is also a player from JW.
One consideration would be whether video playback is via progressive download or streaming. If it's progressive download, then I would say use Flash because you get a wider audience reach.
For streaming wmv, it is out of the box functionality provided by Windows Media Services
For streaming flash, you will have to install a streaming server on your Windows box. Some options are:
Adobe Flash Media Server (Commercial)
Wowza Media Server (Free/Commercial)
Red5 Flash Server (Open Source)
If you have access to Microsoft Expression Encoder 2, you can use that to encode a video file and generate a Silverlight video player. Then if you have IIS 7, you can use Adaptive or Smooth Streaming also checkout Smooth HD for a really cool example.
You can also do streaming from the free Microsoft Silverlight Streaming Service. It's connected to a Windows Live account.
A consideration is that the client will need to have Silverlight installed, just like Flash, but Flash has been around longer.
<object width="660" height="525"><param name="movie" value="http://www.youtube.com/v/WAQUskZuXhQ&hl=en&fs=1&color1=0x006699&color2=0x54abd6&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/WAQUskZuXhQ&hl=en&fs=1&color1=0x006699&color2=0x54abd6&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="660" height="525"></embed></object>
I have worked for a company that developed a system for distributing media content to dedicated "players". It was web based and used ASP.NET technology and have tried almost every possible media format you can think of and your choice really comes down to asking yourself:
does it needs to play directly out of the box, or can I make sure that the components required to play the videos can be installed beforehand?
If your answer is that it needs to play out of the box then really your only option is flash (I know that it is not installed by default, but most will already have it installed)
If it is not a big issue that extra components are needed then you can go with formats that are supported by windows media player
The reason why windows media player falls into the second option is because for some browsers and some formats extra components must be installed.
We had the luxury that the "players" were provided by us, so we could go for the second option, however even we tried to convert as much as possible back to flash because it handles way better than windows media player
"Does the choice of ASP.NET as a platform influence this decision?"
Probably not.

Resources