Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

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

share|improve this question
    
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 Feb 17 at 17:32
    
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 Feb 18 at 5:53
    
But actually I have managed to get it to play since then but now having trouble with linking subtitles. –  cea Feb 18 at 5:54
    
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 Feb 18 at 14:41
add comment

1 Answer

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

<video class="video-js vjs-default-skin" controls="" data-setup="   {&quot;example_option&quot;:true}" height="264" id="example_video_1"    poster="http://video-js.zencoder.com/oceans-clip.png" preload="auto"     width="640"><source src="rtmp://mysite.net/oflaDemo/takeout.flv" type="rtmp/flv"     /> <track kind="subtitle" label="English" src="http://mysite.net/takeout.srt"    srclang="en-US" /></video>
share|improve this answer
    
sorry having trouble getting the block of code inputed on here –  cea Feb 19 at 3:09
    
the SRT is NOT working part of this answer but the flv is working. –  cea Feb 19 at 3:13
    
What I think I need to use is a script called mediaelementsjs and/or change permissions in xml for stream content –  cea Feb 19 at 3:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.