Feature Long Description (2.7): will it read a <script> tag?
Hello,
I am trying to display live streaming highway web cams (SC DOT) in our HTML5 viewer that Fire and Police use in their vehicles. They all have laptops vs. tablets.
I can view the video in the following simple html page:
http://gisweb64test.greenvillesc.gov/testrtmpstream.html
If this doesn't work-- it looks like this:
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90660000000GtyG&feoid=Body&refid=0EM60000000UjZy" _/_img_
and the actual html code is this:
<html>
<head>
<link href="http://vjs.zencdn.net/5.8.8/video-js.css" rel="stylesheet">
<!-- If you'd like to support IE8 -->
<script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>
</head>
<body>
<video id="my-video" class="video-js" controls preload="auto" width="640" height="264"
data-setup="{}">
<source src="rtmp://192.168.1.129:1935/SCDOT/DOTCAM/MM37RoperMountain.stream" type='rtmp/mp4'>
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>
<script src="http://vjs.zencdn.net/5.8.8/video.js"></script>
</body>
</html>
I am trying put this into the feature long description of a camera point layer so that users can view the video in the map tip or in the results panel.
But when I add the code to the feature long description and view in the viewer, it displays as this:
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=90660000000GtyG&feoid=Body&refid=0EM60000000Uja3" _/_img_
If I look closely at the Feature Long Description when not using "Show Source", the line of code beginning with <script> seems to be separated and left out of the display. But the script is needed to be able to view these streaming videos.
Or does anyone have a way to show streaming rtmp videos within Essentials as a popup window?
Any one have any ideas?
Thanks,
Carmen
0
-
Script tags are among the list of html elements stripped from the description within the viewer, and you're not going to find an easy way to get around this. You could, however, keep your existing html in its own document on your server and add a link in the geocortex feature description that opens the page as a separate window. This may require some back-end modifications to your data, as you'll want the urls connected to their features. 0 -
* It just occurred to me that you may be able to finagle something into the viewer using linked maps, but that's just a hunch. 0 -
Thanks, Zack. I was afraid something like that would be the answer. At least I can quit trying to in that direction.
I will look at some of your other ideas when I get a chance. I was SOOOOOO close. It took forever just to get something to show up in a browser window (had to re-encode the SCDOT url I had through a WOWZA server and then use the free viewer code that would show the video) Maybe there is an easier way but I am not an expert in the field of serving live streaming video. Apparently it is more difficult that I first thought.
Well, difficult at least for viewing on a desktop web browser. It was much easier to display on an iPAD with an .m3u8 URL I was given but the Fire and Police aren't using tablets in vehicles.
Carmen0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer