Results 1 to 7 of 7

Thread: [RESOLVED] html5 video, works local, but not on server

Hybrid View

  1. #1
    Join Date
    Jun 2010

    resolved [RESOLVED] html5 video, works local, but not on server

    <video src="path/to/video.ogv" controls="controls" width="400" height="600"  >Your browser does not support the video tag.</video>
    On local machine video works just fine, but as I upload it on server, I get just gray field with X in the middle

    <video src="http://www.path/to/video.ogv" controls="controls" width="400" height="600"  >Your browser does not support the video tag.</video>
    no matter how the path is written... ('http://www...' or just 'path/to/video.ogv')

    As I try on local machine to put web path (www....) I get also same gray field with X in the middle...

    Is the videos format ok?

    Thank you

  2. #2
    Join Date
    Dec 2005
    Been here before, add the following to your .htaccess file on your server:

    AddType video/ogg .ogv .ogg
    AddType video/webm .webm
    AddType video/mp4 .mp4
    (depending of course, which types your are actually using).
    I've switched careers...
    I'm NO LONGER a scientist,
    but now a web developer...

  3. #3
    Join Date
    Jun 2010
    Hello aj_nsc,

    and thank you for prompt response.
    Also sorry for delayed response, I just could not manage before...

    Ok, I added .htaccess file in main domain, in subdomain (where site uses video) in folder where video resides.... none of that helped.... (I host on windows server, uploaded .htaccess with filezilla and file was visible on panel)

    But I got it working by adding mime type in my control panel...

    Here is site (for best performance you need html5 browser):

    Thank you again aj_nsc for your input

  4. #4
    Join Date
    Aug 2011
    Hi there,

    Can you explain more detail about you did that made it work?

    Thank you.

  5. #5
    Join Date
    Jun 2010
    Oi, sure,

    I tried as suggested, but that did not do the trick.

    What I have is paying hosting, and I have c-panel, where I can create subdomains, mysql and other data bases and so on. On that same c-panel I have an option to set MIME types (for each domain/subdomain. I just added video formats as suggested to me (above in this thread) to my subdomain and that made it working...

    I guess it is a difference between paid and your own server. I guess paid servers do not let you modify the .htacces file, you are supposed to do that in c-panel... but I was wrong before...

    Keep us posted how it goes, or if I can help in any other way.

  6. #6
    Join Date
    Aug 2011
    Thank you for the details.

    I just want to correct a little bit. I have a paid server (well actually it's currently free) but I can access and do whatever I want with the files because I have the access to the OS through the use of SSH.

    I will surely keep in mind what you have mentioned above. I am sure there will be more people benefiting from your explanation as well..

  7. #7
    Join Date
    Jun 2010
    You have an SSH access on rented host?
    That is a rare flower khaha... So, off topics,
    you can access all folders on server, or just your folder?

    As I said, I am not quite sure of right answer... But if it works I wouldn't mess with it, hehe...

    I do believe that aj_nsc's approach is the right one,
    if I had my server(s) I surly would not have c-panel,
    so I would go aj_nsc's way.

    As I tried to do that way on my paid host (FTP) it had no effect.
    As I poked around I found out that I can set MIME types in my c-panel.
    And that now works.

    kind regards

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.09164 seconds
  • Memory Usage 3,085KB
  • Queries Executed 13 (?)
More Information
Template Usage (30):
  • (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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (27):
  • ./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
  • ./includes/functions_threadedmode.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 (72):
  • 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_threaded
  • showthread_threaded_construct_link
  • 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
  • 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