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

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
samm000
New Cone
New Cone
Posts: 4
Joined: 12 May 2017 08:25

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

Postby samm000 » 12 May 2017 08:33

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

samm000
New Cone
New Cone
Posts: 4
Joined: 12 May 2017 08:25

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

Postby samm000 » 12 May 2017 09:12

<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>

samm000
New Cone
New Cone
Posts: 4
Joined: 12 May 2017 08:25

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

Postby samm000 » 24 May 2017 10:03

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>

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

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

Postby da2424 » 24 May 2017 10:33

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" />

samm000
New Cone
New Cone
Posts: 4
Joined: 12 May 2017 08:25

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

Postby samm000 » 24 May 2017 10:45

the stream is not working, i get error with MIME-type

da2424
Cone that earned his stripes
Cone that earned his stripes
Posts: 310
Joined: 16 Apr 2013 16:57

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

Postby da2424 » 30 May 2017 08:26

Last idea: Is the stream also available over http:// ? This should be supported by all browsers.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 43 guests