Playing online radio using BackgroundAudioPlayer on Windows Phone 8 - windows-phone-8

I want to play songs from a online radio and for that i am using the BackgroundAudioPlayer for windows phone 8. Now i downloaded the sample app provided by MS and modified that a bit primarily to test whether the streaming link is working or not. So, my new AudioTrack object is looked like this one,
new AudioTrack(new Uri("http://live.abcradiobd.fm:8282/;listen.mp3", UriKind.Absolute),
"ABC Radio",
string.Empty,
string.Empty,
null)
This is not working at all. After sometimes it generates TimeOutException but the link is perfectly working in VLC player and other audio player out there.Any solution?
Solved:
Tried Phonesm and it's working perfectly. You can use that for both audio and video streaming. But before building that project make sure that you have downloaded the correct version for MPPF which is v1.2 from here and install as an extension to visual studio.

Related

Adobe Animate cc 2017 - HTML5 freezes when I publish/test project with audio

Adobe Animate cc 2017 - HTML5 freezes when I publish/test project with audio
I'm working on a small game, using Animate 2017 and exporting it to HTML5. I'm using createjs.Sound to add the sound fx I've added to the library. When I publish or "test" the project, it freezes the loading bar. On OSx it stays at 0%, on windows it goes up to 70% but freezes anyway. The only option being to force quit the app. I'm following a tutorial from Pluralsight, and I've tested the tutor's project and I get a slightly different issue, the project gets published, the browser starts everything automatically but nothing happens afterwards, instead of the game starting, it just stays a black canvas (no errors in the console).
A few more data to help troubleshoot, the tutor's project is using .mp3 files and I'm using .wav audio. I've been trying to look through the OSX auto generated error report, but I can't make heads or tails of what it says.
Animate mac/windows version - 2017.0.1 Release (16.0.1.119)
Turns out it was a corrupted symbol or something that was causing the program to crash. Converting the project to ActionScript 3 and then back to HTML5 solved the issue.
https://forums.adobe.com/thread/2425008
If anyone experience a AnimateCC crash issue in Mac, It might be an issue with long audio file name. I found that if the audio file name is greater than 29 characters, AnimateCC crashes when publishing. Here is a sample test file.
https://drive.google.com/file/d/1dEBdM4laszCXFa3Bz4tS3yHh-8PbLaGo/view?usp=sharing
As you can see, the file crashes when you try to export. It has only one sound file in the library. When you remove one character in the file name, it gets published successfully. I tested this in AnimateCC version 18.0.2 (Build 126).

selenium cannot play video player

I have selenium tests running against chrome driver v 2.25. I have chrome v 54 installed on a ubuntu 14 server. I cannot get selenium tests to play video player that is in flash. Is there a plugin I need to install to get chrome on ubuntu to support flash?
The test loads a page with a video player and checks that there is a play button. I need to make sure that the server can load flash.
Selenium cannot and will not automate embedded objects in any website.
This includes objects such as:
Flash
PDF
Java Applets
etc.
If you want to automate those, you will need to find a different tool. Selenium is designed to automate websites, not external components of a website like flash.
Got this working wit chrome 52+ and chromedriver 2.22+
At time of answer it works with chrome 55/2.27 - both 64 bit
all you need is add extra flag to chromedriver
--ppapi-flash-path=chromedriver/chromedriver_linux64/libpepflashplayer.so

How to record audio and save at local system using htlml5?

My basic requirement is let user to record his voice and wish to save that recorded audio at my local system. We do not wish to use flash player as we are planning to run at mobile also, our web application should run at desktop browsers, mobiles as well as at iPad?
I tried running sample suggested by at - http://webaudiodemos.appspot.com/AudioRecorder/index.html
Windows 7 Firefox 26.0 - Not working
Windows 7 Chrome Version 31.0.1650.63 m - Working
iPad Safari - Not working
I need some solution that works fine on any browser at Windows, mobiles and as well as at iPad?
How can record audio and save them at local file system without flash player?
Thanks
If you want to capture audio in browser you need to use navigator.getUserMedia function.
As you can see from your example it uses in initAudio function(main.js file):
if (!navigator.getUserMedia)
navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
More info about getUserMedia you can get from article on html5rocks.com. And as you can see getUserMedia works only in FF and Chrome.
What about to save any to local file system. Any browser don't give you permission to write something to filesystem, it's unclassified, but they have it implementation in sandbox by using requestFileSystem. More info about requestFileSystem you can get from html5rocks.com
If you want to create modern HTML5 app - check often sites like html5rocks.com for new articles and read that already published.

convertion of .mp4 file to .3gp in windowsphone 8 using c#.net

Using capturesource I got the video in isolated storage, But I need to upload that video to server,
whenever I try to send the video, The size is huge so I need to compress(convert) the video from MP4 to 3GP
The default message screen of windows phone shows "processing video" whenever I send a video message through attachment,and it convert .mp4 video to .3gp.
I tried a lot of research to achieve the conversion from MP4 to 3GP please help me
The code is
CaptureSource captureSource = new CaptureSource();
private string isoVideoFileName = "CameraMovie.mp4";
private FileSink fileSink;
VideoCaptureDevice webcam = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();
AudioCaptureDevice audio = CaptureDeviceConfiguration.GetDefaultAudioCaptureDevice();
captureSource.VideoCaptureDevice = webcam;
captureSource.AudioCaptureDevice = audio;
fileSink = new FileSink();
fileSink.CaptureSource = captureSource;
fileSink.IsolatedStorageFileName = isoVideoFileName;
captureSource.Start();
I tried to change the resolution of VideoCaptureDevice but it not helped me.
If it's possible for you, you can upgrade your app to Windows Phone 8.1 Silverlight (you'll need to download Update 2 for Visual Studio 2013 and put the developer preview on your developer device(s)). The conversion itself is straightforward - I had no issues with a very complex WP 8.0 app (although backup your app first!)
Once that's done you can then access the Windows.Media.Capture.MediaCapture library. This will allow you to change to more resolutions than are available using VideoCaptureDevice. For example you can create a profile that will record video to QVGA like this:
MediaEncodingProfile profile = MediaEncodingProfile.CreateMp4(VideoEncodingQuality.Qvga);
Which will give you a resolution of 320 x 240 and a file size of ~20MB for 4 mins of video. Still not ideal from my purposes either, but a big improvement. MediaEncodingProfile also has methods like MediaEncodingProfile.CreateWmv() and MediaEncodingProfile.CreateAvi() but I've not been able to get these to work yet (see my question here: MediaEncodingProfile.CreateWmv gives "No suitable transform was found to encode or decode the content." error).
The tutorial I used to get video recording using MediaCapture can be found here: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn642092.aspx
Hope this helps...
Currently there is no public API that allows you to convert from MP4 to 3GP.
One option would be to port FFmpeg to Windows Phone but currently, if anyone has done it, its not publicly available.

using camera class in android in flex

The default camera showing up is the back camera using Camera getCamera
I want to know how to switch to front camera.
Also Camera names length is showing only length as 1 and not 2 , but i am having a front and back camera on galaxy tab, so i think it should show 2 names.
Please let me know a way out to this.
I am using air 3.1 , which is the latest version at present.
and the application is built in Flex 4.6 version
Air for Android only supports the back facing camera -- at least that might have been the case until very recently.
I have downloaded and saved the AS3 API reference from Adobe. On my local copy of the docs, it says this about the Camera.names property:
On Android, only one camera is supported, even if the device has more than one camera devices. The name of the camera is always, "Default."
However, when I look at the docs online, that comment is no longer there. So maybe Air 3.2 (released yesterday) now supports both cameras on Android!
Online docs:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/Camera.html#names