How to play Track when getting Id on Mixradio API - c#

I'm getting id each items of track but I don't play it as next,back, play, pause...
E.g:
I have items name is "Blank Space" song and is "015668". Now. How to play Blank Space song with id 015668.
I dont see tutorial about that and Have other media player API support wpf,universal app for mp3 and video stream youtube

The MixRadio API supports playback of 30 second clips within your application - in C#, you would use this method to get the URI and then play how the platform you're on supports it.

Related

Xamarin Forms AdMob trouble with AudioManager

When i get request from admob, every millisecond my debug console spamming me:
D/AudioManager (26589): getStreamVolume isRestricted mode = 0.
I don't have any single line of code about sound. Ad(banner) is showing but this affects on the performance. Anyone have this problem?
I tried a lot of samples like this:
https://startdebugging.net/how-to-add-admob-to-your-xamarin-forms-app/
https://xamarinhelp.com/admob-xamarin-forms-display-google-ads-mobile-app/
(I highly doubt it is affecting performance, if AudioManager was spamming logcat at a high enough rate, the OS would rate limit its output...)
It is telling you that an meadiation/interstitial ad wants to play some sound and the OS is replying that the channel is muted (at level 0).
Now you can request that your app is muted and that no ads be requested/played that contain an audio track:
Android.Gms.Ads.MobileAds.SetAppMuted(true);
Note: Video ads that are ineligible to be shown with muted audio are not returned for ad requests made when the app volume is reported as muted or set to a value of 0. This may restrict a subset of the broader video ads pool from serving.
https://developers.google.com/admob/android/global-settings

Luxand OpenIPVideoCamera returns -15

I am using Luxand Library as a face detection for my application.
I can open the webcam but when i want to open an ip camera with FSDKCam.OpenIPVideoCamera() method, it returns -15 and camera does not open.
I tested the url with VLC and everything was ok.
Does anybody have experience with this problem?
hi you cant use rtsp you must use mjpeg stream also you must provide video stream cgi luxand face sdk support mjpeg stream only to know your camera is support mjpeg if not find on specification try open a ip camera from browser then press f 12 and click element on camera if found video.cgi on url you camera is support mjpeg and you can get url from this website https://www.foscam.com/faqs/view.html?id=128
or
https://www.ispyconnect.com/man.aspx?n=china
note : on url you can support your username and password and port forget about add it sprite on textbox filed just add a full url on ip filed
example
http://192.168.1.100:26239/videostream.cgi?user=admin&pwd=888888
after you sure your camera support mjpeg stream you can also with face sdk use difrent way to display your camera
go to this website https://ip-webcam.appspot.com/ and download this app after download add your camera url wish is support cgi and mjpeg
example
http://192.168.1.100:26239/videostream.cgi?user=admin&pwd=888888
note some camera not support full url you have to add only
http://192.168.1.100:26239/
then add your username and password
in next filed
next step you must change on camera list on example your camera number for example if your fron camera int number for it 1 you must change it to 2 or 0 it is up of your device
cameraName = cameraList[2];//1//2//0
play on that number to know your ip camera number
am sure that will help you and am sure you get a right answer
best regard
ibrahim ali
mam

Audio Streaming in windows phone app (no Silverlight)

I am trying to play an audio stream from stream server in my windows phone app. I read on Microsoft Documentation that I have to reference an Audio Stream Agent.
I have these projects in my solution :
I've tried to reference a new project as Audio Streaming Agent in my Windows Phone 8.1 application
but I keeping receiving the error :
I read that I have to change the target framework, but there is no option for target framework in the AudioStreamAgent1 properties.
Also, Can I do this using an application that is not the Silverlight kind? Is there a way to do without using the Silverlight one?
The problem is that the AudioSteamAgent is targeted at WP Silverlight, and your actual app is WP8.1 (WinRT).
To create background audio in WP8.1, you will want to use the Background Media Player.
You can find a great guide for how to get started here.
But basically (without all the boilerplate code to wire everything up), it comes down to telling the BMP what to play (code is from the link above):
BackgroundMediaPlayer.Current.SetUriSource(new Uri("ms-appx:///Assets/Media/Ring02.wma"));
BackgroundMediaPlayer.Current.Play();
And telling the OS player controls what to show, and what to do when the user interacts with them:
systemmediatransportcontrol = SystemMediaTransportControls.GetForCurrentView();
systemmediatransportcontrol.ButtonPressed += systemmediatransportcontrol_ButtonPressed;
systemmediatransportcontrol.PropertyChanged += systemmediatransportcontrol_PropertyChanged;
systemmediatransportcontrol.IsEnabled = true;
systemmediatransportcontrol.IsPauseEnabled = true;
systemmediatransportcontrol.IsPlayEnabled = true;
systemmediatransportcontrol.IsNextEnabled = true;
systemmediatransportcontrol.IsPreviousEnabled = true;
This is all assuming that you want the user to be able to leave the app and have media continue to play. If you just want to stream audio/video while the user is in the app you can use the MediaElement control.

How to play a music from music+video hub in AudioPlaybackAgent?

I want to play a song which is stored in Music+video Hub in AudioPlaybackAgent.
I can get songs by this way:
MediaLibrary mediaLibrary = new MediaLibrary();
var songs = mediaLibrary.Songs;
but this songs are of type Song and BackgroundAudioPlayer accepts sounds of type AudioTrack:
BackgroundAudioPlayer.Instance.Track = ..
Question: how can I play a song from music hub in AudioPlaybackAgent?
From here: Windows phone 8 on emulator - why can't I play audio files? see the answer number 3 (Author:Frederik Winstrup Johansen). He also added a good sample about playing AudioTracks
The BackgroundAudioPlayer can play files only from isolated storage or
from a remote URI, that is why you can here anything!
If you have your file as resources in your app, you must first copy
them to the isolated store, and then make a reference to the file in
the isolated store to your BackgroundAudioPlayer.

Recording Video from IP camera using VLC?

i am try VLC media player to record a video from IP camera. i found this command line to record video from ip camera.
"C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy --dummy-quiet http://user:password#ipAddress.com:port/videostream.asf --run-time=120 :demux=dump :demuxdump-file=C:\output_test.avi vlc://quit
The command line is working, i can get video with sound from IP camera. The only problems is the recorded video only can be played using VLC itself, the video also only have information which is only size(KB,MB), the windows cannot get the other information such as video length, size(Width*Height), etc. And the most important is video cannot be played using Window Media Player.
**EDIT
"C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy --dummy-quiet http://user:password#ipAddress.com:port/videostream.asf --run-time=120 --sout "#std{access=file,mux=avi,dst="c:\test.avi"}" vlc://quit
using this command, now i got all the video's info and playable using window media player and other players as well, but this time the there is no sound in video.
I'm implementing this in web app. I got the code running fine.
Does anyone here can provide me the correct command line to get working video with sound and also video's information.
i tried searching but cannot find the correct command line(if any). Tried VLC forum but got Error 403.
**note: i am using windows 7 OS.
try transcoding & mux
vlc.exe -I dummy --dummy-quiet http://user:password#ipAddress.com:port/videostream.asf --run-time=120 :sout=#transcode{vcodec=h264,vb=1024,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access=file,mux=avi,dst="c:\test.avi"}

Categories

Resources