We have a need to stream live audio from remote devices and be able to listen to it in a web page. I can stream stored audio files, but the live stream has me a bit confused, since we will be adding the data at runtime. Can someone point me in the right direction to show me how to do this?
Thanks
Two things:
If all you want is simple streaming, that is, progressive download, then just define the mime type on the server, and it will stream. Keep in mind that you will have to have an audio format that plays progressively (most, but not all these days, do).
If you're looking to take fine control over what's going on, you'll need to embed an audio player and use a media server SDK. Here is the link to Microsoft's product for this: Windows Media Server SDK.
Related
Is there any program/library available that can scrape the contents of an mobile apps' screen?
The goal is to have a nice data structure for the Instagram "Following" feed.
There is not complete solution for it, but it can be achieved by using different software like bruipsuit, postman, binaries, Amulators or rooted android devices and man in the middle attack technique.
If you need to achieve this you have to make a setup to interrupt the request to the app and decode data from the request.
I've done it for a few apps (not instagram) with screen-scraper.com. I set the phone to use wifi only, and logged the requests on the router. I used that to emulate the request the app makes. Usually it's a pretty easy HTTP request, and they can be touchy about the user agent. Then the data is almost always XML or JSON.
With appium you can write test for mobile app, using uiatomatorviewer find the elements address and then try to use norest=true capability you can scrap data.
https://www.softwaretestinghelp.com/automate-native-app-on-android-device/
In this age of *chat applications and various messaging software, I was wondering if there is already an official protocol (RFC) that would follow the following basic flow:
Client connects to Server for a new session
Client uploads an image (or video) with metadata information (size, resolution, format) to server
Server does some work (not part of the protocol)
Server replies with REJECT then client goes to 1.
Server replies with ACCEPT then client stops and gather the result as part of the reply from the server
I have a proprietary solution now that does the basic (supports basic formats) and as we know, the devil is in the details so I wonder if some existing protocol would cover the stream format and more unhappy paths I may have missed with this simple design.
I'm not aware of any protocol that can handle file probing for you ..
ffprobe is a good open source solution to do this but requires processing power and scale.
So this step must be done on server side, after the upload. You cannot trust the client for such information.
I suggest the cloud approach. Here, we're using Amazon Cloud.
Upload your file to AWS S3. You can use multi part upload for faster upload. No need to scale anything, AWS will do it for you.
Your clients just request a signed URL from your web server. The server return the URL and an ID for this new asset. Your clients upload to AWS S3 using the URL.
Once the upload is done, your client make a call to your server again to say: "I'm done with Asset ID blah". Your server knows the asset is now uploaded and can initiate transcoding, analysis, DB updates, etc.
We do this exact scenario in our project.
For transcoding at scale we use our own open source project: https://github.com/sportarchive/CloudTranscode
This is not an easy business, especially if you want to handle videos.
If you restrict yourself to pictures, then a lot can be done on the user side. You can create several versions of the image in JS, directly in the browser for example or in the mobile app, and upload them to your server. The load is much smaller and you may not need this decoupled architecture.
If you handle videos, you need a solid backend.
Hope this help
I would like to be able to record online radio from my wordpress website. Has anyone came across an API or software that can help me archive this.
There are several stream recorders which would do that (e.g.: Tubemaster++, Orbit Stream Downloader, Replay Media Catcher and more) and there is an (expensive) application called Total Recorder, which can record directly from your soundcard (with own system driver to get the sound from the device).
But be aware that not every stream allows you to record, you could have legal problems with this.
But if it is "your wordpress website" I guess this is your music anyway?
I have an thing to create Internet shop to sell video views. And there are some rules, which I don't know how to do. The rules is:
Loggined client can only view one video 3 times per day.
I read somewhere that I need to generate virtual links to video and server must hold it, for example, 3 hours OR until client looked up to the end the video, and then delete this virtual link and refresh player state to "start video position and waiting for start". Like on youtube but client shouldn't have a way to rewind the video.
I need to hold situation that client who buy 'video01' give another client him page address or all attributes data from player tag. If second client don't buy 'video01' he shouldn't load it. (I think it's can be solved by cookies).
After 180 video views, client's subscription must be stopped.
And finally question from me is how to play video from my website? Can anyone explain me how to make asp.net site with rules that I wrote the above? What technology I need to use?
I will be grateful if someone advise me a literature that I need to read to know how to do this? Perhaps for a start I need to know how to play video on asp.net webpages.
What free flash player I should use for my solution, any examples please? Really need help.
P.S.: I need to use a free flash player to play videos, not silverlight.
The videos are on the remote servers, not on the local server where I hold the site.
To limit the video as per your requirement you need to use GenericHandlers in asp.net. It must be designed in such a way that the url must expire after reaching the above condition.
For Example, you can generate a random key that should append with the url (ie, QueryString) and store it in Database along with the time of generation. You can make the key expire after 3 hours then.
To play the video on your website you can add jQuery plugin videojs. The documentation will help you to add that simple HTML5+Flash video player.
I am new to flex but my first app is a little bit more pro than you would expect form a rookie. I would like to record sound that is currently played on the local computer (i.e. form winamp or youtube). I saw some codes that use the microphone, but this is undesired. The client machine may not have a microphone hardware or may play the sound on headphones. I think this must be possible but may be not a common task so that's why I can't find the solution? Can any one help?
I believe the user of your app has to select their "input device" and allow access for the Flash web baesd app to access that input device. But, once they do the choosing, you should be able to access that Audio feed using the same microphone APIs.
bring up the Flash Player context menu and select settings. then click the microphone tab. You should see a list of all possibly options. at this moment, one option I have is "Stereo Mix" which I'm pretty sure will send out all the info from the computer.