Mobile - - By Brett Romero

In this video I show you how to create functions in Swift.

<script src=”https://jwpsrv.com/library/fhG4YvqNEeSK7Ap+lcGdIw.js”></script>
<div id=”video-5540″>Loading the player…</div>
<script type=”text/javascript”>
jwplayer(“video-5540”).setup({
image: “http://d3rj1gznkm47xj.cloudfront.net/64c47875-37b8-4940-aa2d-1d927ccdf2e0.png”,
sources: [
{
file: “http://d3rj1gznkm47xj.cloudfront.net/b5d5ac9123006d617bed54b0bd2f4018.mp4”,
label: “SD”
},
{
file: “http://d3rj1gznkm47xj.cloudfront.net/135755112d88b87c75fafc4849248c95.mp4”,
label: “HD”
},
],
tracks: [
{
file: “http://djdvv9xnh2mt5.cloudfront.net/0deca850-3803-4b6b-8139-c352d21287c1.srt”,
kind: “captions”,
“default”: true
}
],
aspectratio: “16:9”,
width: “100%”,
height: “480px”,
fallback: true,
primary: “flash”,
streaming: false,
analytics: {
enabled: false,
cookies: false
},
captions: {
fontsize: 12
},
advertising: {
client: “googima”,
schedule: {
“myAds”: {
“offset”: “pre”,
“tag”: “https://pubads.g.doubleclick.net/gampad/ads?sz=855×483\u0026iu=/7448792/Video\u0026cust_params=109938%3Dstaging%26channel%3Dmobile\u0026impl=s\u0026gdfp_req=1\u0026env=vp\u0026output=xml_vast2\u0026unviewed_position_start=1\u0026url=https%3A%2F%2Fwww.sitepoint.com/\u0026description_url=https%3A%2F%2Fwww.sitepoint.com%2Fvideos-swift-functions%2F\u0026correlator=1508813824”
}
}
}
});
</script>