sally_smith wrote:Hi, could someone help me make a .ch file if possible, i cant quite get my head around it
the site requires you to be logged in with your username and password
the urls of the streams are in the format http://xxxx/stream.php?stream=1 to http://xxxx/stream.php?stream=20
the page source of one of the streams looks like this
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us">
<head>
<title>Video Player</title>
<script type="text/javascript" src="http://xxxxxxx/flowplayer/flowplayer-3.2.0.min.js"></script>
</head>
<body>
<div href="ch061" style="position: fixed; top: 0px; right: 0px; width: 100%; height: 100%;" id="wowza"></div>
<script language="JavaScript">
flowplayer("wowza", "http://xxxxxxx/flowplayer/flowplayer.commercial-3.2.1.swf", {
key: '#$5699afdb51fe9d0527a',
canvas: { backgroundGradient: "none", backgroundColor: "#000000" },
clip: { provider: 'rtmp', autoPlay: false, connectionProvider: 'secure', live: true, scaling: 'fit' },
plugins: {
rtmp: { url: 'http://xxxxx/flowplayer/flowplayer.rtmp-3.2.0.swf', netConnectionUrl: 'rtmp://xxxxxxxxx.tv:19350/ch06?doConnect=12345' },
secure: { url: 'http://xxxxxxxx/flowplayer/flowplayer.securestreaming-3.2.0.swf', },
}
});
</script>
</body>
</html>
any help gratefully recieved, my techical knowledge is limited at best!
If you got all the info out of your site you can simply use the "put" primitive of the (for example put=swfVfy=http:/xxxxxxx"). I assume the url you see in secure is the one that should go in swfVfy or the url in the rtmp section. Your netConnectionUrl is the url you want.
The two swf urls are static so you could use put add
put=swfVfy=http://xxxxxxxx/flowplayer/flowplayer.securestreaming-3.2.0.swf
and that should be it.
