<pre><code>&lt;link href="http://mysite.net/sites/all/libraries/video-js/video-js.css" rel="stylesheet" /&gt;
&lt;script src="http://mysite.net/sites/all/libraries/video-js/video.js"&gt;&lt;/script&gt;
&lt;script&gt;
  videojs.options.flash.swf = "http://mysite.net/sites/all/libraries/video-js/video-js.swf"
&lt;/script&gt;
&lt;script src="http://mysite.net/sites/all/libraries/video-js/videosub.js"/&gt;&lt;/script&gt;

&lt;video class="video-js vjs-default-skin" 
       controls=""
       data-setup="{&amp;quot;example_option&amp;quot;:true}"
       height="264"
       id="example_video_1"
       poster="http://video-js.zencoder.com/oceans-clip.png"
       preload="auto"
       width="640"&gt;
  &lt;source src="rtmp://mysite.net/oflaDemo/takeout.flv" type="rtmp/flv"/&gt;
  &lt;track kind="subtitle" label="English" src="http://mysite.net/takeout.srt" srclang="en-US" /&gt;
&lt;/video&gt;
</code></pre>

CC BY-SA 3.0
2014-02-19T03:09:14.370Z
sorry having trouble getting the block of code inputed on here
cea
CC BY-SA 3.0
2014-02-19T03:13:10.527Z
the SRT is NOT working part of this answer but the flv is working.
cea
CC BY-SA 3.0
2014-02-19T03:15:11.660Z
What I think I need to use is a script called mediaelementsjs  and/or change permissions in xml for stream content
cea
CC BY-SA 3.0
2014-02-19T03:08:08.537Z
2015-03-11T17:40:57.207Z
2015-03-11T17:40:57.207Z
cea
<p>I cannot get the code right in video-js player when wanting play rtmp url flv file. Does anyone know what it should be? I've tried following a number of examples at the blog reference site for video-js but nothing seems to work.</p>

<p>The Code I was trying to use is:</p>

<p>Oh the code won't input I don't know why sorry :(</p>

<p>      </p>

CC BY-SA 3.0
2014-02-17T17:32:34.583Z
Just checking, you do have a streaming server at the other end of the RTMP URL right?  Have you tested to make sure the stream itself works outside the video-js client?
AJ Henderson
CC BY-SA 3.0
2014-02-18T05:53:30.543Z
Yes I do have a stream working outside of it. Trouble is I can't get any help with it because video-js developers want questions asked in stack overflow and I've been banned from asking any questions because they deem my questions to be too low grade. This is frustrating as am left out of online community to work out all myself.
cea
CC BY-SA 3.0
2014-02-18T05:54:48.500Z
But actually I have managed to get it to play since then but now having trouble with linking subtitles.
cea
CC BY-SA 3.0
2014-02-18T14:41:24.877Z
A configuration issue with video-js is probably off topic for StackOverflow anyway since it isn't particularly software development related.  If you don't mind my asking, what did the problem turn out to be?  You can feel free to answer your own question with your solution if you like.  You could also post the subtitles issue as another question since it really is a distinct question.
AJ Henderson
<video><rtmp>
flv rtmp url for video-js
cea
# flv rtmp url for video-js

(Asked by: username_0 on 2014-02-17)

I cannot get the code right in video-js player when wanting play rtmp url flv file. Does anyone know what it should be? I've tried following a number of examples at the blog reference site for video-js but nothing seems to work.

The Code I was trying to use is:

Oh the code won't input I don't know why sorry :(

**Tags:** video, rtmp

> **Comments:**
> **username_1**: Just checking, you do have a streaming server at the other end of the RTMP URL right?  Have you tested to make sure the stream itself works outside the video-js client?  
> **username_0**: Yes I do have a stream working outside of it. Trouble is I can't get any help with it because video-js developers want questions asked in stack overflow and I've been banned from asking any questions because they deem my questions to be too low grade. This is frustrating as am left out of online community to work out all myself.  
> **username_0**: But actually I have managed to get it to play since then but now having trouble with linking subtitles.  
> **username_1**: A configuration issue with video-js is probably off topic for StackOverflow anyway since it isn't particularly software development related.  If you don't mind my asking, what did the problem turn out to be?  You can feel free to answer your own question with your solution if you like.  You could also post the subtitles issue as another question since it really is a distinct question.  

---

## 1 answers

### Answer by username_0 on 2014-02-19. Score: 1



> **Comments:**
> **username_0**: sorry having trouble getting the block of code inputed on here  
> **username_0**: the SRT is NOT working part of this answer but the flv is working.  
> **username_0**: What I think I need to use is a script called mediaelementsjs  and/or change permissions in xml for stream content  

---

