Results 1 to 6 of 6

Thread: confused with flv/swf formats

  1. #1
    Join Date
    Feb 2005

    confused with flv/swf formats


    I am trying to put a .flv file on my webpage. I finally figured out how to get it working, but I am trying to tweak it.

    In the left column of the web page:


    I have two videos stacked on top of each other. The first video is a .swf file and I really like the way it opens up in it's own sized box (this code was given to me with the file).

    The 2nd video (has a yellow arrow pointing at it) is a .flv file and I am trying to figure out how to get it to display like the .swf file above it does.

    I really don't understand why you can't just use the same code, but inter change a .swf file or a .flv file. I tried, but it didn't work. So I scoured the web looking for something that would play my .flv file, but not really happy with the way it looks.

    Any help would be appreciated.


  2. #2
    Join Date
    Feb 2008
    NW Washington State
    Your problem with the display has nothing to do with whether the file is a .swf or a .flv. The small display window is set using Javascript, as you can see in the “onclick” event:
    <div id="book"> <a href="javascript://" onclick="window.open('images/The_Key_To_Amazing_Health.swf','','width=400,height=318,resizeable=no,toolbar=no,status=no,menubar=no,scrollbars=no')">
    Want you want is something like this?
    The Javascript is just opening an html page in a certain size window. Code would look something like this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Second Video</title>
    <div id="second_video">Second video goes here<a onclick="Javascript:window.open('http://www.sitesbysarah.com/Bailey/ultrametabolism.htm','_blank','height=310, width=360,resizable=no');return false;" href="http://www.sitesbysarah.com/Bailey/ultrametabolism.htm">CLICK HERE TO WATCH</a><br /><br />
    Copy and adapt as you see fit.
    As for the question of .swf or .flv… they are nothing alike, except that they are used by Flash. The swf is a proprietary, compiled file, sort of a self contained program that runs in a Flash player.
    The .flv is a container file format (sort of like a box) which contains both an audio file inside it and a video file inside it. That’s all… there’s nothing inside it to play those 2 files.
    Best wishes,
    Eye for Video

  3. #3
    Join Date
    Feb 2005
    Thank you for the code Eye for Video. This has been driving me crazy. Can you recommend any good reference material to understand this area better? I'm not intereted in making my own video, just incorporating it into web design.


  4. #4
    Join Date
    Feb 2008
    NW Washington State
    Well you may have heard of "Flash" web sites... but really, there are no Flash web sites, only web sites with Flash content. So to best incorporate Flash into Web pages, you really need to study how Web pages are constucted and controlled (with CSS, Javascript, etc.). Here is a starting point:
    When placing Flash on Web pages you should also look into using "swfobject.js". This will allow you to create alternate content in html which can be indexed by Google and other robots and spiders. So for example, you could write a short narrative about the video, and for viewers without Flash and Google robots, they would read your narrative. Viewers with Flash would see the video. But since Google has read the story, the content would be indexed as belonging to that Web page.
    Best wishes,

  5. #5
    Join Date
    Jan 2009
    You can play SWF video on your webpage but the loading time will be very slow... the reason FLV is used if for video streaming purpose, so video starts to play as soon as sufficient buffering is done (e.g. first 5&#37; of video). All those video sites such as Youtube are using FLV. You can use some flash video player software to ease this process as they can convert your videos to FLV then create a video player code with different skinss automatically. You can use the default on in Adobe CS 3 too. But with only 1 skin.

  6. #6
    Join Date
    May 2009

    Hello - sorry for posting in the reply section

    It says I can post a new topic but I don't have anything but a reply to thread button.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.13584 seconds
  • Memory Usage 2,885KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (6)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates