vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Need help setting up Podcasting / Audio player (https://vborg.vbsupport.ru/showthread.php?t=312837)

K4GAP 07-09-2014 05:42 AM

Need help setting up Podcasting / Audio player
 
I've been looking at different ways to add a small audio player at different places on my site. I am particularly interested in keeping it browser friendly.

Whether it's called an audio player or a podcast does not matter. It will consist of minimal controls and only show as a small this strip.

The code I tried to go with is missing something because it won't even show ...

Code:

<audio controls>
<source src="horse.mp3" type="audio/mpeg">
<source src="horse.ogg" type="audio/ogg">
<embed height="50" width="100" src="horse.mp3">
</audio>

What am I missing?

*Update

This code works ...

Code:

<object height="50" width="100" data="sample.mp3"></object>
but, according to w3schools.com ....
  • Different browsers support different audio formats
  • If a browser does not support the file format, the audio will not play without a plug-in
  • If the plug-in is not installed on the users' computer, the audio will not play
That site says the best code to use is the first one I noted as not working.


Any help greatly appreciated.

mokujin 07-09-2014 06:02 AM

Audio/Video are supported in HTML5, do you have this
HTML Code:

<!DOCTYPE html>
?

http://www.w3schools.com/html/html5_intro.asp

K4GAP 07-09-2014 06:07 AM

Quote:

Originally Posted by mokujin (Post 2506039)
Audio/Video are supported in HTML5, do you have this
HTML Code:

<!DOCTYPE html>
?

http://www.w3schools.com/html/html5_intro.asp

In the head of the page?
If so I have this ...
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

mokujin 07-09-2014 06:12 AM

Quote:

Originally Posted by K4GAP (Post 2506040)
In the head of the page?
If so I have this ...
Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Yes, in the head. You have HTML 4.1 ...

K4GAP 07-09-2014 06:29 AM

So, should the first code I listed work? Because it's not for some reason.

Dave 07-09-2014 08:27 AM

Quote:

Originally Posted by K4GAP (Post 2506043)
So, should the first code I listed work? Because it's not for some reason.

I think you have to change your existing doctype to the doctype mokujin posted.
So go to your style variable editor and change the htmldoctype value.


All times are GMT. The time now is 10:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01082 seconds
  • Memory Usage 1,732KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete