Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
2 registered members (Morgan, JAISP), 85 guests, and 228 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Titen
Titen
North California
Posts: 43
Joined: February 2008
Show All Member Profiles 
Top Posters(30 Days)
isaac 25
Gizmo 17
Ruben 13
Morgan 6
driv 2
Slaz 2
Geoff 1
Latest Photos
Test
Testing to drag photos
Comfortable Cats
Test
BSA photos
Previous Thread
Next Thread
Print Thread
Can you embed flv videos in ubbthreads? #253761
10/02/13 04:59 PM
10/02/13 04:59 PM
Baldeagle  Offline OP
enthusiast
Joined: Oct 2007
Posts: 233
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/13 05:29 PM.

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

UBBThreads 7.6.1.1
Web Server Apache/2.4.29
PHP Version 5.6.32
MySQL Version 5.5.58-log
Database Size 2.04 GB
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253762
10/02/13 05:04 PM
10/02/13 05:04 PM
R
Ruben  Offline

Joined: Dec 2003
Posts: 5,933
Lutz,FL
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/13 05:34 PM
10/02/13 05:34 PM
Baldeagle  Offline OP
enthusiast
Joined: Oct 2007
Posts: 233
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/13 06:36 PM.

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

UBBThreads 7.6.1.1
Web Server Apache/2.4.29
PHP Version 5.6.32
MySQL Version 5.5.58-log
Database Size 2.04 GB
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253766
10/03/13 01:37 PM
10/03/13 01:37 PM
R
Ruben  Offline

Joined: Dec 2003
Posts: 5,933
Lutz,FL
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/13 03:02 PM
10/03/13 03:02 PM
Gizmo  Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 16,973
Portland, OR; USA
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/13 03:08 PM
10/03/13 03:08 PM
R
Ruben  Offline

Joined: Dec 2003
Posts: 5,933
Lutz,FL
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/13 09:48 AM
10/07/13 09:48 AM
Yarp™  Offline
veteran
Joined: Aug 2006
Posts: 1,530
Breda, NL
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]
Re: Can you embed flv videos in ubbthreads? [Re: Baldeagle] #253780
10/08/13 11:54 PM
10/08/13 11:54 PM
Mitch P.  Offline

old hand
Joined: Jun 2006
Posts: 885
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.


Shout Box
Today's Birthdays
Kelvin
Recent Topics
UBB.threads 7.7.0 - Progress Reports
by isaac. 10/13/18 09:34 AM
Can't Reply to Global Announcements
by M4TT. 10/06/18 08:29 PM
Forum Trends
by peter gariepy. 10/05/18 02:29 PM
Support for PHP 7
by Astro_Mike. 10/05/18 10:17 AM
Ignore button
by Morgan. 10/01/18 08:26 AM
Forum Statistics
Forums36
Topics35,148
Posts191,506
Members12,107
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2