how to build a custom player which looks like the official player - soundcloud

I read the documentation about customizing players on developers.soundcloud.com/docs/custom-player#
I've downloaded the .js and .css from github (by the way, the " http://github.com/soundcloud/soundcloud-custom-player/archives/master" link is not working).
But i would like to keep the "official - orange" skin of the player, and none of the custome player available looks similar.
I tried to start from an online player and deleted content via css to reach this very simple result: http://www.imerege.com/FTPdivers/SC.png
I did succeed to reach this result by changing "online" the css with Firefox Firebug, so i know it could works if I had the right files... But i don't know how to do it with the files provided on Github, as they are very different in their design and color.
Where could i find the right files / the basic player?
Thx for your help.
Jérémie.

I'd suggest to go with something like http://waveformjs.org/ in order to draw the waveform and SoundCloud JS SDK for getting SoundCloud sounds and playing them.
There is an example of how to use the two together on waveformjs website.

Related

What has replaced Application.CaptureScreenshot in Unity

My goal is to convert a block of text that is on the screen into an image and save it to the user's gallery (or downloads folder, or anywhere on there phone that allows them access to it)
On searching through the many many threads on this subject it seems the best way is to take a screenshot with the "camera".
However, the manual tells me to use Application.CaptureScreenshot but in unity it says that is depreciated.
All i can find on searching for alternatives are paid for assets (seems dodgy for something that should be so simple) and examples of using Application.CaptureScreenshot
ScreenCapture.CaptureScreenshot is what you are looking for now.

Embedding YouTube Videos in Silverstripe - Strips Fullscreen and Rel=0

I'm trying to embed YouTube videos onto my Silverstripe site, using the page editor. We're having problems with two different ways of embedding.
Editor's Insert Media:
When I click the editor's "Insert Media" button I choose "From the web" and paste in the YouTube URL. However I need to hide related videos, so to do this we need to add "&rel=0" to the end of the URL. When I do this the "Insert Media" option doesn't work.
iFrame:
So instead I tried to use the embed code provided by Google. I went to he text editor and inserted it. The iframe works, however the editor strips off the "allowfullscreen" tag from the iframe - which means users cannot watch the video in full screen.
So I either have to show related videos, which I don't want to do. Or I need to block users from being able to watch it in full screen mode - which again I don't want to do.
We're running on Silverstripe 3.3.
Is there any way to stop Silverstripe from stripping the allowfullscreen tag? Or to have Silverstripe still process the YouTube URL if we put rel=0 on the end?
Alternatively, does anyone know if this has this been solved in 3.4, 3.5 or 3.6?
Before posting this I have done over 45 mins of thorough searching for an answer, including through Silverstripe forums (which are now discontinued), here on Stackoverflow and the Google group. Plus I worked my way through a number of the change logs of 3.4, 3.5 and 3.6 for anything related to iframes and YouTube, but was not able to find things specific to this problem.
The TinyMCE editor in a different CMS I use does not strip out the allowfullscreen tag from iframes. So it seems specific to Silverstripe's implementation of the editor.
Direct answer to your question would be to amend the tinymce config to include more attributes for the frame by setting the "extended_valid_elements"
https://docs.silverstripe.org/en/3/developer_guides/forms/field_types/htmleditorfield/#setting-options
Alternative way would be to introduce new shortcode : https://docs.silverstripe.org/en/3/developer_guides/extending/shortcodes/
Latter would be more user safe to some extend.

Media link of a video available on OTT platform

I am looking to integrate videos freely available on OTT platforms in India.
For example http://www.sonyliv.com/details/full%20movie/4709492313001/The-Butterflies-In-My-Head-%7C-Short-Film
However this is the web link to the video file. I am not able to fetch the media link to this and all such videos. Is it possible to do what I am trying and if so what should my direction of implementation be
I think if you look at the terms of use on that site (which are at the bottom and are, not very helpfully, hidden every time you scroll down) the conditions don't really allow what you are proposing, other than by linking to their site as your link above does, or sharing via their share options (Google + and Facebook for the example you show above).
So you can solve this technically with varying degrees of ease, depending on whether the source sites hide the media manifest URL's or use dynamically generated URL's etc, but it's probably worth making sure you are not going to get into issues over rights first.

iPhone Stylesheet or JS

I downloaded a template and customised it a bit. It's working well but the template has a kind of mobile style sheet. When I open the webpage with the iPhone, it looks great on the homepage. However, on the most important pages I don't want it to appear for mobile I want it to appear like it would on a browser.
I've tried.
Deleting the: style-mobile.css file. - Nothing happened.
Playing around with the style-mobile.css file. - Nothing!
Deleting some js files.
I can't seem to find the code that is telling my iPhone to open the page like an iPhone instead of opening it like a browser.
Where will I find this??
The idea that you can download an arbitrary HTML/CSS/JS(?) template that is designed for mobiles and have it magically adapt to look right in a classic browser window is .... naive.
Either look for a template that is designed to look good in both contexts, or build your own layouts using something like Twitter Bootstrap which is responsive to differences in the display port size.

How to build web clips like http://brdrck.me/settings/

I am very interested in building an app like http://brdrck.me/settings/. My first questions are what is inside a web clip file? Is it a html or something else? The second question is how to add the icon to home screens programmatically. As you can see from the page I mentioned above http://brdrck.me/settings/. I tried to check its source code from browser but it turns out to be some normal CSS and javascript code in my Chrome browser and I don't know how to check the source in my Mobile Safari. Any one help?
You won't be able to get any valuable code from the source. Trust me. :D
But, I can help you out.
I use two different methods: The "Add to Homescreen" and .mobileconfig files (the one you have to install)
For adding to the homescreen check out this resource. With the help of some creative work-arounds, it isn't too difficult.
http://mobile.tutsplus.com/tutorials/iphone/iphone-web-app-meta-tags/
The mobileconfig file is a bit more difficult, esp trying to get it signed, but this might help you a bit. Try to create one with a webclip then view the generated files source: http://support.apple.com/kb/DL1465
Hope this helps.