Previous Thread
Next Thread
Print Thread
Hop To
Can you embed flv videos in ubbthreads? #253761 10/02/2013 3:59 PM
Joined: Oct 2007
Posts: 267
Baldeagle Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 267
I can't seem to get it to work. I've got the javascript in the head, and the embedding code in a post which I'm previewing, but I'm getting 404s in the logs and no clue why.

Any help from someone who has successfully done this would be appreciated.

file structure:
/ubbthreads/jwplayer/player files
/ubbthreads/videos/video files (all .flv videos)


Javascript in the head:
Code
<script src="/ubbthreads/jwplayer/jwplayer.js" ></script>

I have tried ubbthreads/jwplayer..., /jwplayer/... and jwplayer, all without success.

Embed code in the body:
Code
<div id="myElement">Loading the player ...</div><script type="text/javascript">
    jwplayer("myElement").setup({
        file: "/ubbthreads/videos/Session1.flv",
        height: 360,
        width: 640
    });
</script>

Same thing here. I've tried ubbthreads/videos/...., /videos/.. and videos/.... all without success.

Here's a log file entry:

Code
/var/log/ubb/access_log:cpe-76-183-65-74.tx.res.rr.com - - [02/Oct/2013:14:23:55 -0500] "GET /ubbthreads/FlashPlayer.swf?file=videos/Session1.flv HTTP/1.1" 404


I can't tell if this is a pathing problem or something else entirely. I'm baffled.

NOTE: The embedding works fine in a very simple html page.

Last edited by Baldeagle; 10/02/2013 4:29 PM.

The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

UBBThreads 7.7.3
Web Server Apache/2.4.37
PHP Version 7.2.19
MySQL Version 5.6.38
Database Size 2.23 GB
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253762 10/02/2013 4:04 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
I don't know anything about flv but have you tried editing:
The custom tag editor and adding it there?



Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Can you embed flv videos in ubbthreads? [Re: Ruben] #253763 10/02/2013 4:34 PM
Joined: Oct 2007
Posts: 267
Baldeagle Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: Oct 2007
Posts: 267
What's the custom tag editor?

Never mind. I figured it out. Not sure that will solve my problem though.

Last edited by Baldeagle; 10/02/2013 5:36 PM.

The Stovebolt Geek
https://www.stovebolt.com/ubbthreads/ubbthreads.php

UBBThreads 7.7.3
Web Server Apache/2.4.37
PHP Version 7.2.19
MySQL Version 5.6.38
Database Size 2.23 GB
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253766 10/03/2013 12:37 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
Humm,
Looking at your paths again,it could be that since it is a relative path and may not always be correct.
try a absolute path.
Like mine would be
/home/mysite/public_html/ubbthreads/jwplayer/jwplayer.js

same goes for the media file path
Or a full url path

you can get a clue from the path setting in the ubb control panel


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253768 10/03/2013 2:02 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
Use a fully qualified domain name; the UBB will screw up links trying to do what you're doing, IE:
Code
<script src="http://www.yourdomain.tld/ubbthreads/jwplayer/jwplayer.js" ></script>


And I would recommend against hardcoding new UBBCode, the reason I convinced Rick to adding the custom tag editor was to cut down on having to do this and make an extremely simple method of adding new items (there are huge lists of custom bbcode before and after the tag editor at UBBDev).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253769 10/03/2013 2:08 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
I went to the jwplayer site.
It appears in your code you are using the free player.
which they recommend a full url in the head tag.
meaning how you would reach the player using a browser.
http://www.mysite.com/ubbthreads/jwplayer/jwplayer.js
then on to the embed code they use relative paths.
so you may need to play with this some.
meaning
/ubbthreads/videos/Session1.flv
may become
/home/mysite/public_html/ubbthreads/videos/Session1.flv
or
../ubbthreads/videos/Session1.flv
or
../videos/Session1.flv

Not sure how they parse the paths.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: Can you embed flv videos in ubbthreads? [Re: Gizmo] #253777 10/07/2013 8:48 AM
Joined: Aug 2006
Posts: 1,356
Yarp™ Offline
veteran
Offline
veteran
Joined: Aug 2006
Posts: 1,356
Originally Posted by Gizmo
And I would recommend against hardcoding new UBBCode,


Would too, but some things just can't be done with the custom tag editor.


[Linked Image from siemons.org]
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253780 10/08/2013 10:54 PM
Joined: Jun 2006
Posts: 811
Mitch P. Offline
old hand
Offline
old hand
Joined: Jun 2006
Posts: 811
Are you talking about within a post?

If you enable html for that particular forum in your CP, you can inset FLV embed code in a post and it will work.


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
0 registered members (), 76 guests, and 370 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)