Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMediaMediaHow to play FLV with Media ModuleHow to play FLV with Media Module
Previous
 
Next
New Post
12/18/2006 2:33 AM
 
I got the dnn media module to play FLV files.
 
 
I took the "flvplayer.swf" from out of the zip and put it in my desktopmodules/media folder so it could be accessed by this URL, that little piece of flash will play the FLV files.
 
http://yourdomain.com/desktopmodiles/media/flvplayer.swf
 
Next you need to add the following 3 lines of code (with visual studio)
 
To the mediamodule.ascx.vb add the parts in bold:
 
 Private Const RealMediaTag As String = "<OBJECT CLASSID='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' {2} {3}><PARAM NAME='SRC' VALUE='{0}'><PARAM NAME='CONTROLS' VALUE='ImageWindow'><PARAM NAME='CONSOLE' VALUE='one'><PARAM NAME='AUTOSTART' VALUE='true'><EMBED SRC='{0}' {2} {3} NOJAVA=true CONTROLS=ImageWindow CONSOLE=one AUTOSTART=true></OBJECT>"
 
Private Const FlvTag As String = "<embed pluginspage=http://www.macromedia.com/go/getflashplayer src='http://YOURDOMAIN.COM/DesktopModules/media/flvplayer.swf' {1} {2} {3} type=application/x-shockwave-flash bgcolor='' salign='LT' quality='high' menu='false' loop='false' flashvars='file={0}&showdigits=true&autostart=true&showfsbutton=false'></embed>"
 
Then add the bolded part a little further down....
 
If MediaSrc.LastIndexOf(".swf") > 0 Then
 
HTMLTag = FlashTag
 
ElseIf MediaSrc.LastIndexOf(".flv") > 0 Then
 
HTMLTag = FlvTag
 
 
 
All done editing that file....
 
Now edit "editmedia.ascx.vb" and add FLV to the end of the follow line of code..
 
Private Const MediaFileTypes As String = ",AVI,MPEG,MP3,ASF,ASX,WMA,WMV,WAV,MIDI,QT,MOV,RM,RAM,RPM,FLV"
 
All done editing that file....
 
Now compile...and put the new DotNetNuke.Modules.Media.dll in your bin folder...
 
 
 
Here it is working on my site http://www.bentangle.tv/tabid/732/Default.aspx  
 

Good luck took me about 10 minutes to make the mods....

 
New Post
12/9/2008 7:06 PM
 

I am unable to get this to work. The player is loaded and I point it to the flv but the player just sits at 0% spinning. I know this thread is a bit old, but maybe somebody out there has it working and can point me in the right direction?

 

Thanks

 
New Post
12/29/2008 9:25 PM
 

The tutorial at the beginning of this thread looks like a great start for you.  Otherwise, I would suggest giving us more details about your specific situation, and do this in a new forum thread.  Some of the information that would be useful are:

  • Server OS
  • DNN Version
  • Media Module Version
  • FLV Version
  • Your Flash Player version
  • Any and all details about what you've done so far in trying to get this to work

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
1/18/2009 6:29 PM
 

Derek,

I believe the right direction is the flash param allowscriptaccess.  Recent changes in FlashPlayer for securtiy reasons now make this param needed.  It should be set to always.  It used to default to always, it no longer does. Bottom Line is the FLVTag need to be updated to draw the flash object correctly to work in newer versions of flash, since I dont use this solution to play flv videos on my site(its strictly for educational purposes) I havnt bothered to update the code on my site to inclued this fix. Good Luck.

Doing it in head it should be something like this:

Private Const FlvTag As String = "<embed pluginspage=http://www.macromedia.com/go/getflashplayer src='http://YOURDOMAIN.COM/DesktopModules/media/flvplayer.swf' {1} {2} {3} type=application/x-shockwave-flash bgcolor='' salign='LT' quality='high' menu='false' loop='false' allowscriptaccess='always' flashvars='file={0}&showdigits=true&autostart=true&showfsbutton=false'></embed>"
 
New Post
11/11/2009 5:49 AM
 

Hi,

I have tryed playing with this script doesn't work for me, I have used the dnn Module CISS Flash Player which not played for me so i google and find the solution to play it these are the links that helped me hope this can help you to..

http://support.considero.net/KB/a4/setting-up-flv-mime-type-in-iis-60.aspx

http://www.myquickfix.co.uk/index.php/2008/12/how-to-enable-flv-file-playback-in-iis-6/

http://code.epresence.tv/wiki/MediaInstallationGuide

after adding .flv and video/x-flv into MIME type in http header.

 

thanks

vinod

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMediaMediaHow to play FLV with Media ModuleHow to play FLV with Media Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out