Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jQuery(document).ready(function($) {
/**
* HTTP Player + smil, f4m, m3u8 (ipad)
*/
flowplayer( 'player-http-smil', '/flowplayer/flowplayer-3.2.16.swf', {
plugins: {
// Adobe HTTPStreaming
httpstreaming: {
url: "/flowplayer/flowplayer.httpstreaming-3.2.10.swf"
},
// F4M
f4m: {
url: "/flowplayer/flowplayer.f4m-3.2.9.swf"
},
// SMIL
smil: {
url: "/flowplayer/flowplayer.smil-3.2.8.swf"
},
// Menu
menu: {
url: "/flowplayer/flowplayer.menu-3.2.12.swf",
items: [ { label: "select bitrate :", enabled: false } ]
},
// Bitrate Selection
bitrateselect: {
url: '/flowplayer/flowplayer.bitrateselect-3.2.13.swf',
menu: true,
onStreamSwitchBegin: function(newItem, currentItem) {
$f('player-http-smil').getPlugin('content').setHtml("MANUALLY switch to: " + newItem.streamName + " from " + currentItem.streamName);
},
onStreamSwitch: function(newItem) {
$f('player-http-smil').getPlugin('content').setHtml("MANUALLY switched to: " + newItem.streamName);
}
},
// Content to display
content: {
url: '/flowplayer/flowplayer.content-3.2.8.swf',
bottom: 30,
left: 0,
width: 400,
height: 150,
backgroundColor: 'transparent',
backgroundGradient: 'none',
border: 0,
textDecoration: 'outline',
style: {
body: {
fontSize: 14,
fontFamily: 'Arial',
textAlign: 'center',
color: '#ffffff'
}
}
}
},
clip: {
url: 'http://192.168.0.10:1935/live/smil:montage.smil/manifest.f4m',
live: true,
urlResolvers: ['f4m', 'smil', 'bitrateselect'],
provider: 'httpstreaming',
ipadUrl: 'http://192.168.0.10:1935/live/smil:montage.smil/playlist.m3u8',
bitrates: [
{
url: "mp4:montage.stream_360p",
bitrate: 850,
label: "360p",
isDefault: true
},
{
url: "mp4:montage.stream_160p",
bitrate: 200,
label: "160p"
}
]
},
log: {
level: 'debug',
filter: 'org.flowplayer.bitrateselect.*, org.flowplayer.smil.*, org.flowplayer.f4m.*'
}
} ).ipad();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.