Desktop non-HTML player for Premium+ users? - deezer

I have a headless PC connected to my stereo system. I would like to create a command-line Deezer player for it. Is it possible without launching web browser? Does the API always return only 30s previews, even for Premium+ users?
EDIT:
To clarify the question: I'm looking for a way to get URL of a full-length MP3 using Deezer API. I only see references to 30s previews in Deezer API Specification. Does it mean that I can't get URL to full-length MP3?

Full track streaming is only available thru the SDKs (JS, iOS, Android), so you'll have to launch a web browser. You can't get the full mp3s from the API directly.

See the API Specifications Deezer API.
You can implement it to a own software. If you would like to create an player, you need mostly MP3-Librarys to play the File.
You dont specific in which language you need to implement a Player. We can't give you special answers to that, only global informations: The API.
Here are the URL's from Preview and Full-Song:
var SOUND_STREAM_GATEWAY = 'http://proxy-{0}-v3.deezer.com/stream/{1}/';
var SOUND_PREVIEW_GATEWAY = 'http://cdn-preview-{0}.deezer.com/stream/{1}-{2}.mp3';

Related

Flutter - Create Livestreaming Application that are shared realtime to Facebook and Youtube

I want to create a live streaming application but I don't know where to start.
I am using flutter and would like to know from you guys what do I need to consider when creating a livestreaming application?
Some questions:
1.) Is it possible to create livestream videos that will be directly (and in realtime) be shared to Facebook Live and Youtube Live while capturing it on the application?
2.) What about the comments in the application, as well as aggregating the comments from Facebook and Youtube, is it also possible get them all in the application?
3.) And all of this using flutter?
Thanks in advance, I am looking forward for your inputs.

Personalized Video / Facebook App - What is the best approach?

I want to build a facebook app featuring a personalized video which imports content assets from the user's facebook profile and their extended social graph and integrates these assets within the timeline. I am thinking of using Flash however a key stipulation is that the app works on mobile - and so I would need to use HTML5. My question is: Can I use Flash to build the application and then compile the app as HTML5 - or is there an alternative solution in the form of a HTML5 video toolkit with a programming layer that would allow me to build a web app / access the Facebook API?
I have done this a few times over the years and yes flash was the easiest however there are a few options which you have available to you that I know of which will be purely HTML5 based, personally I'd stay away from flash here as it will end up just getting int he way:
1- The cleanest method is to use a video compositing tool on the server side which can be programmed to accept variables. Personally I have only ever done this using ffmpeg however there a couple of alternatives which are out there.
The basic process would be to grab the media from FB then to composite them at certain point on top/below/around a base video which is sitting on the server using a shell script which you then pass the media assets to as variables. There are so many options as to how you might want this to be done, probably best id to have a look at some of these examples:
http://broadcasterproject.wordpress.com/2010/05/18/how-to-layerremix-videos-with-free-command-line-tools/
http://graphcomp.com/ffmpeg/
ffmpeg watermark without vhook?
note that last time I did this I used vhooks and custom filters, vhooks are now deprecated
This method will mean a reasonably heavy server load if your app is popular but it's probably the most robust across devices etc.
2- Use Popcorn.js, and let the processing be done on the client side. you could hard code it using css/js/html but popcorn is pretty stable although I havent seen how it runs on devices but in theory it should work (all standardized technologies). Basically the process would be to use javascript to fire the display of images overlayed on the video base file at preset cue points. Popcorn has all of the methods and means for you to do this already.
Hope this helps a bit. Good luck, sounds fun.
we realised some interactive video apps and one recent project was quite like your question describes.
We used adobe flash to track the motion - and published the project via create.js. You could have an image sequence from within create.js or put a video in a layer behind. This video would then control the player head time of the create.js motion tracked sequence via jquery.
worked fine - here a link to a testsetup with an image sequence.
Video Integration would be the next step.
http://www.jungeroemer.net/projekte/testpersvid/elftest01.html
(German text, sorry but it's nothing important to read there.
Just click the images and go for it)
you can download the sources from the link, if you need i can also upload the flash file to show you the motion tracking.

Live streaming on iPhone

I just started work on live streaming on iPhone. So any help of how to do live streming in iPhone. I think if I can add video tag in HTML5 and then load that html in UIWebView will work.
Am I right? If not what is your sugestion to do live streaming. I want to embed some news channel live streaming link in the application so from where I can find those links.
You have to go through HTTP Live streaming document provided by Apple.There are some sample live streaming URLs.The file extension will be .m3u8.If you want to configure your own webwserver , you have to configure FFMPEG server in your webserver.The links which will help you
1)Apple document
2)stackoverflow
3)stackoverflow
4)stackoverflow
If you're making a web app in html5 then the video tag is a good choice.
But, If you're developing a native app then MPMoviePlayerController would be a much better choice. There are many example of how to use it online.
iOS doesn't support RTMP or RSTP, so your stream would need to be a HTTP Live stream. From memory the codec choice is very limited too, eg if you supply H264+mp3 you won't get any sound despite iOS supporting mp3.
Also remember that streams from other people (such as the BBC) will normally be protected by international copyright law, so unless you have prior permission to use their stream in your app you may be breaking the law.
Apple has some nice resources on Http Live Streaming.

Is there a way to capture a picture by the iPhone via Browser?

Can i capture Pictures via Browser with the iPhone?
Or what is the easyest way? which API?
Thanks for answers!
Sorry, but this isn't currently possible (as of iOS v4.2) - the only way to currently interact with the camera, etc. is via a full-blown iOS app.
The only additional capabilities that are provided beyond a "normal" browser are JavaScript events to capture touch related actions.

HTML5 with Web Services

Now the case, I want to develop a iPhone apps/web apps using Phonegap. Ok, imagine the app can do all sort of thing include data processing, transaction, login, video streaming, display data from the web services, so to do this I need use JavaScript (Ajax) to call the web services, then only put it into the HTML?
HTML5 now come with support of video right? For example, once I get the video data from the Web Services, then I use Javascript to insert into the video tag and HTML5 will handle it?
Yes on all counts.