Page 1 of 1

Cannot get tcp stream to work need som help pls!!

Posted: 12 May 2017 08:33
by samm000
Hi,

I am trying to get a tcp stream to work in html5, the stream is a motion jpeg video.
So i tryied all the codes that i found on google.

when i place the tcp url in vlc player it works perfect (tcp:xxx.xxx.xxx.xxx: (port)).

I realy hope that someone can help me out with this, i must finisch my project asap.

Cheers

Re: Cannot get tcp stream to work need som help pls!!

Posted: 12 May 2017 09:12
by samm000
<script type="text/javascript">
function myFunction() {
var myWindow = window.open("", "_blank", "toolbar=no, scrollbars=no, resizable=yes, top=500,left=500, width=680,height=380");
myWindow.document.writeln('<html><head/><body><img src="tcp://xxx.xxx.xxx.xxx:xxxx" type="application/x-vlc-plugin" resizable=yes, width=640 ,height=360 pluginspage="http://www.videolan.org autoplay=yes loop=no target=tcp://xxx.xxx.xxx.xxx:xxxx"/></body></html>');
}
$(function() {
$( "#Button" ).button();
});
</script>

Re: Cannot get tcp stream to work need som help pls!!

Posted: 24 May 2017 10:03
by samm000
Hi,
i have get it working in IE, but it wont work in other browsers.

Need some help pls!

<td><object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videol ... /axvlc.cab" resizable="yes" width="820" height="601">
<param name="autostart" value="true">
<param name="src" value="tcp://xxx.xxx.xxx.xxx:xxxxx">
<param resizable="yes">
<param name="controls" value="true">
<param name="mute" value="true">
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"></object></td>

Re: Cannot get tcp stream to work need som help pls!!

Posted: 24 May 2017 10:33
by da2424
No idea if the browsers will support tcp streams. Does it work with the following code?

Code: Select all

<img src="tcp://xxx.xxx.xxx.xxx:xxxx" alt="some text" />

Re: Cannot get tcp stream to work need som help pls!!

Posted: 24 May 2017 10:45
by samm000
the stream is not working, i get error with MIME-type

Re: Cannot get tcp stream to work need som help pls!!

Posted: 30 May 2017 08:26
by da2424
Last idea: Is the stream also available over http:// ? This should be supported by all browsers.