1. Prepare to register my plugin Axvlc.dll Registration method: CD to file directory, and then regsvr32 so that the player can already be called, because this plugin ActiveX in VS2010 VS6.0 call all seems to have a problem, so with the JS write.
Note: It may be stuck when a bug is closed and stopped playing, plug-in issues
Plug - ins:
Introduction of Plugins:
#引入videolan. Vlcplugin.2 ", the class name is defined as vlc##
<div>
<object classid= "clsid:9be31822-fdad-461b-ad51-be1d1c159921"
Width= "430"
Height= "320"
Id= "VLC"
Events= "true" >
<param name= "MRL" value= ""/>
<param name= "Showdisplay" value= "true"/>
<param name= "Autoloop" value= "false"/>
<param name= "AutoPlay" value= "false"/>
<param name= "volume" value= "/>"
<param name= "StartTime" value= "0"/>
<embed pluginspage= "http://www.videolan.org"
Type= "Application/x-vlc-plugin"
version= "Videolan.vlcplugin.2"
Width= "430"
Height= "320"
Name= "VLC" >
</embed>
</object>
</div>
#引入videolan. Vlcplugin.2 ", the class name is defined as vlc##
Play function:
MRL represents the play address
function Dogo (MRL)
{
var VLC = GETVLC ("VLC");
Itemid=vlc.playlist.add (MRL);
Vlc.playlist.playItem (ITEMID);
}
function GETVLC (name)
{
if (Window.document[name])
{
return Window.document[name];
}
if (Navigator.appName.indexOf ("Microsoft Internet") ==-1)
{
if (document.embeds && document.embeds[name])
return Document.embeds[name];
}
Else
{
return document.getElementById (name);
}
}
Platform 1th: Platform 1th is relatively simple, the data does not carry out what complex acquisition and return
1. Send a GET request to the room, and the regular expression takes out the socket IP &&port
2.
B1= "4c000000e8030000000000003800000000000000#{@room16} 0030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 " Send the following data to this socket address
@room16 indicates that the room code for 16 binary needs to be reversed
For example: 9168267=8b be 7A @room16 ==7a be 8B
Regular removal of reg1=/2014 (. *) rtmp/data with this format
This completes the streaming rtmp video source acquisition, and then write to the Web, written as open web page autoplay
<body onload= "Dogo (' rtmp://v2.9see.com:1936/live/916826720140725130421 ')" >
Platform No. 2nd section
Relatively complex, data is difficult to find
1. Send a GET request to the specified room to get the socket Ip&port
.
2, send 16 room, get
B1= "78000000189301100000000000000000#{@room16} 0031000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000 "
3. Return value resolution
This interface will return a lot of data, very, very much, all we have to do is take out the date formatted as 20000000079301**********.
This value has been looking for me for one weeks after a layer of contrast. Finally, this is the host. idx
Regular regex=/79301100000000000000000.\w{8}/
After 8 bits are taken out, there will be multiple results for multiple results matching, in the array, so that takes the 16-binary host IDX back to the 10 binary
4. Streaming Media server IP access
@http = net::http.new (' www.*****.com ', 80)//confidentiality
Resp = @http. Get ("/v2/getiplist.aspx?roomid=" [email protected])
Stitching string rtmp://61.150.126.40:1938/live/120001a120001b777049 Write file page open to completion
Streaming media protocol address get rtmp