News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

FLV Video Player

Started by Moif, July 18, 2008, 05:59:13 AM

Previous topic - Next topic

Moif

Hi,

I think I speak for a fair few people here who would love to see something like the JW FLV Video Player implemented as a mod. For FLVs hosted locally, not on external sites.

I've tried, and failed, to get this to work. If there was a possibility that this could auto embed as well then that would amazing.

And of course for 1.1.x and 2.x forums :)



Eliana Tamerin

Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Moif

Tried that, not what I'm after really.

Thanks though :)



sakura1998

Hi,

I'd like to bump this one :)

I'm speaking with the coders of my site about porting the Flash recorder we built to SMF, so this is of interest...

Daniel Hofverberg

#4
I can also see a big benefit of implementing support for the JW FLV Media Player in SMF.

If no one else does it, I will look into making this as a mod myself when I have the time. I'm certainly no expert when it comes to the SMF source files, but it doesn't look like it would be too hard... I can't guarantee I will be successful though, so if more experienced coders have the time and interest to look into it, I would appreciate it.

karlbenson

#5
I might be adding 'local' files flv support to my auto embed mod in the very near future.
And getting them to play with a free player. Although it won't be the JW FLV player, but a free non-restrictive-licence* non-js based flash player.

(If i do and can get support working though, it would only work for files on localhost (Not anywhere on the net) and would NOT support attachments/user submitted files).

Daniel Hofverberg

I agree that the JW FLV Media Player has an overly restricted license, so if there are other suitable players with non-restrictive licenses I'm all for it. But so far I haven't been able to find any other software that supports all formats that Flash itself supports, I e FLV and MPEG-4/H.264 video and MP3 and AAC audio.

Not supporting attachments is a disadvantage though, as at least I would prefer to be able to automatically load attached audio or video files to a media player.

Eliana Tamerin

Supporting attachments is a risk, because anybody could upload a malicious file. There are other upload scripts that will allow you to upload directly to folders, media scripts built for this sort of thing.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Daniel Hofverberg

As JW FLV Media Player only plays media files - and doesn't try to execute any files - I can't see any particular security risk. Playing and parsing MP3, MPEG-4 and FLV files should be risk free, as they can't contain any executable code to my knowledge. The only supported file type in JW FLV Media Player that could possibly be a security risk is SWF (Flash), but I've tried displaying SWF files containing code in the JW Media Player and neither of the code was parsed or used. But to be on the safe side, it still may be a good idea not to allow SWF files to be played via the player in attachments. I'm not sure how other media players in Flash work, but as long as they only support audio and video files it should be reasonably safe.

Anyway, as I need this feature for my forum, I will start working on a mod to integrate JW FLV Media Player with SMF. I can't guarantee that I will succeed, but it's worth a try anyway.

karlbenson

Security concerns include, javascript, boobytrapped files (including media files like .flv and mpg).
Like i said above, attachments will definately not be possible to be embedded in any way or form.

BTw, there is also a video gallery that has just been submitted to the mod site (currently awaiting approval). maybe that would be useful.

Daniel Hofverberg

JW FLV Player doesn't seem to be affected by booby-trapped files, as it determines content solely based on the file extension and parses them based on that. The point with boobytrapped files is that they have been renamed to a safe media file extension, but really isn't. I have tested with one such file, and JW FLV Player didn't do anything with it. I haven't checked too much, so there is of course still a possibility that it may be vulnerable to specific threats, but it doesn't appear to be a problem with most common threats.

In regards to JavaScript, I consider it safer to embed the media player code directly instead of using the recommended JavaScript code.

Eliana Tamerin

But JW FLV Player has an incompatible license, and couldn't be used in an SMF mod.
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Daniel Hofverberg

I can't see the problem using it in a mod, as long as the actual media player isn't included in the mod. After all, there are already several SMF mods for integration with fully commercial applications.

Daniel Hofverberg

I have now started working on integrating JW FLV Media Player in SMF. So far, I have only made a simple BBC tag to display audio or video files with a media player, and it works fine.

Next step is to add support for attachments, so that attachments in file types that JW FLV Media Player supports will automatically load the media player. I will start working on that now, although that seems more complicated, so I can't promise I'll be successful. After all, I'm far from an expert on the SMF files, even though I know PHP itself pretty good.

Akyhne

I'm really interested in this mod

Daniel Hofverberg

I'm still working on this mod in my spare time, but I'm quite busy with work so I don't get a chance to work on it too often. Anyway, a tag to display audio and video files inline from URLs works fine, but I haven't gotten it to work with attachments yet.

Remember that I'm by no means an expert in the SMF source files, and I have never made any mods before. But I do know PHP quite well, so I should manage it sooner or later. I can't guarantee that the code will be pretty though...

Akyhne

I managed to do my own. Wether it works with external videos, I don't know.

Akyhne

Nope, doesn't work with external videos. But I have no need for that.

Daniel Hofverberg

akyhne: How does your mod work? Is it for attachments, in the form of a BBC code, or what?

Akyhne

I made it simple as in this mod where the user just provides a link like http://www.yoursite.com/video/avideo.flv

It only seeks for video in http://www.yoursite.com/video/ and replace the code with the script.

karlbenson

The new version 4.0 of my auto embed which I have just posted tonight can do .flv files on your own server

http://custom.simplemachines.org/mods/index.php?mod=977

Akyhne

Sounds nice. I'll have to check it out. But it's in beta?

karlbenson

Yeah because its been completely re-written. I have made it a beta version.

Akyhne

I wonder how you can get HQ playback from Youtube, when no one else can (Youtube doesn't allow it). Some trick you are using?

osterlentracker

I also looking for a standalone videoplayer who can play most formats or just an flv playser.
I dont like to youce youtube or other sites as a third part link in thing.
I want a standalone player for my own forum
v 2. XX

www.osterlentracker.se
http://www.osterlentracker.se/forum/ [nofollow]

// Krister

Akyhne


osterlentracker

Quote from: akyhne on October 05, 2008, 10:43:35 AM
http://www.jeroenwijering.com/ [nofollow]

Two players that are pretty easy to implement:
http://www.jeroenwijering.com/?item=JW_FLV_Media_Player [nofollow]
http://www.jeroenwijering.com/?item=JW_WMV_Player [nofollow]

And this one to make the .flv files:
http://rivavx.de/ [nofollow]

They can all be downloaded from download.com [nofollow]


Can it be embeded im SMF ??
or there is an other standalone player who can play videofiles like wmv, flv, and so on

// Krister

Akyhne

Yeah, it's pretty easy to do if you know your way around.

I don't know if there are other players that can do both. I'm not sure. I guess that's why the guy made two players that look alike. It a very popular player, the JW FLV player.

You can see here how the code for the player can be changed (different options etc.):
http://www.jeroenwijering.com/?page=wizard

target_locked

#28
Hi akyhne,
How to add this video to SMF forum using your mod? I have no problem with the link from youtube such as "http://tw.youtube.com/watch?v=VjMZ6c8Vsww"

How about this link? Does your mod support?
Quote"http://media.vnexpress.net/MediaStore/Video/2008/11/18/Xep hinh bang moto.flv"

Thanks.
SMF 1.1.4 now 1.1.8
¡uʍop ǝpısdn ɹoʇıuoɯ ʎɯ pǝuɹnʇ oɥʍ ¡ʎǝɥ

Akyhne

As I mentioned, my little private mod only streams local .flv files from one particular local folder.

Advertisement: