Streaming Audio From Voscast Server - iphone

I am working on an app I would like to basically be a radio style app. I have a site set up that uses Voscast to play through content that I have set up. Are there any good tutorials for setting up an iPhone app that you can stream from your voscast site, and pull in metadata off of what is currently playing?

Its a little bit late, but you can do this using an html5 player by adding this to your HTML code:
<iframe width="150" scrolling="no" height="30" frameborder="0" src="http://cdn.voscast.com/player/player.php?host=[yourHostHere]&port=[yourPortHere]"></iframe>

Related

Can you embed a spotify song to a github README file?

I know this isn't really that important but I thought it would be fun if you could embed a spotify to your markdown.
I tried pasting this into the README.md-file but it didn't transform into a widget:
<iframe src="https://open.spotify.com/embed/track/1UgMLFmeVyphjePcN1TNpq" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
Can somebody tell me if it's possible to embed this using markdown?
It's currently not possible to use iframes inside of your README on GitHub. This question has to do with the same underlying issue you're having. In short, iframes are not on the list of allowed HTML tags. You can see which tags are allowed here: https://github.com/github/markup/issues/245#issuecomment-357613929
You can just put this line of code in your README file:
[![Spotify](https://spotify-github-readme.vercel.app/api/spotify)](https://open.spotify.com/collection/tracks)
And it will display the Spotify songs in your README file

embed youtube video in TYPO3 from youtube-nocookie.com

is there a possibilty to embed a youtube video in TYPO3 8.6 with expanded data protection? That means loading the video not via https://www.youtube.com/embed/.... but from https://www.youtube-nocookie.com/embed/ ...
I am able to load the youtube video in file module with this embed code:
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/<code>?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
But in the frontend the video is embedded with this code:
<iframe width="560" height="315" src="https://www.youtube.com/embed/<code>?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
Thanks!
Or add
additionalConfig="{no-cookie : '1'}"
so it looks like this:
<f:media file="{mediaElement}" width="{settings.detail.media.video.width}" additionalConfig="{no-cookie : '1'}" />
to the f:media element in FalMediaVideo.html.
Please be aware that if you dont have those native Typo3 Templates in your own Directory they will get overwritten by the next update ;)
You can simply wait for the next TYPO3 8.7 release which is planned for May 22nd. That release will automatically use the youtube-nocookie.com domain for Youtube video embeds. (Don't be confused by the version here, it's simply missing in the 8.7 branch)

why is my <object>not shown on iphone?

i want to show a forreign website as in my phonegap App on iphone. I see the Website in the when i view the app in firefox but there is nothing shown on iphone. Any idea or solutions? (the url is just an example)
<div id="divSvgView" dojoType="dojox.mobile.ScrollableView" style="background-color: #d0d0d0;">
<object type="txt/html" id="svgObject" data="http://heise.de" style="width:400px; height:400px;margin1%;"></object>
</div>
greets Tom
Try Using type="application/xhtml+xml"? This seems to be required in some versions of desktop and iOS Safari to get things working.

Dynamically embedding soundcloud clips

If you want to embed youtube dynamically then it is totally easy. You just replace the video id in the embed code.
<iframe width="420" height="315" src="http://www.youtube.com/embed/<?=$youtubeid;?>" frameborder="0" allowfullscreen></iframe>
I'm struggling to do the same thing with soundcloud. Is it possible? - the embed code is as follows:
<iframe src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F57162664&show_artwork=true"></iframe>
It seems to me like you'd need to know this api code to embed the track, and so you'd have to look this up each time.
The 'api code' is just tracks/ followed by the track id (or groups/ with a group id, etc), not too different from YouTube, it's just not as easily accessible as YouTube's, since the id isn't in the URL. You can get the id from looking at the share code on a track, but even easier is to use the oembed service to get the full embedding HTML needed (it also calculates the proper height of the iframe to include), and it only requires the 'permalink' url which you see on a track page.
An updated version of the widget coming in the next few weeks should also support the permalink urls out-of-the-box.
Looks like you have to use the API to dynamically get the embed code:
Here's the documentation:
http://developers.soundcloud.com/docs#playing

Transitions between different HTML pages using JQTouch for iPhone

I am trying to create a simple iPhone application using HTML/JavaScript/CSS with the help of JQTouch and PhoneGap. For accessing different parts of a web page, the transitions work fine, however when I try to do the same for different web pages, they do not work.
I am doing this:
<li><a class="slide" href="http://www.flickr.com/photos/remysharp/3047035327/" title="Tall Glow"><img src="http://farm4.static.flickr.com/3011/3047035327_ca12fb2397_s.jpg" height="75" width="75" alt="Tall Glow" /></a></li>
Does anyone knwo whats wrong pleasE?
C.
jqtouch can only slide in divs, i.e. parts of a single web page. when you follow links it just loads whatever page you navigated to.
You should try loading your external link in an IFRAME. As long as the site you are linking to doesn't have a frame buster, you should be able to stay on your own site and display the content of the external page.