HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Embed Flash link?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#104281 (In Topic #20370)
Avatar

Honoured member

Is there a way to embed a flash link into a post, and have it play?

Would like to embed the following:

http://www.fauowlsnest.com/uploads/filedump/videos/football/10/bonfire/Bonfire-2010.flv

All it is doing is downloading, with no player prompting.

Any feedback is appreciated!

Thanks,

- Rick
Back to the top
 
Posted
Rating:
#104284
Avatar

Community saint

Not really done anything with audio and video on ocPortal, but a quick solution to this would be to use FLVPlayer 1.01

Just add the link to the bonfire.flv there and select required dimensions and make sure autoplay is checked, and then paste the generated code (in the source view) on the page you want it to show.
Back to the top
 
Posted
Item has a rating of 3 (Liked by Steven Jarvis)  
Rating:
#104289
Avatar

Well-settled

Hi, Florida_Owl!

To do that independently of an online video-player service, you'd need first to install a video player on your server, then, in the code for the page (or post) in question, include an element that embeds the viewer (e.g. an HTML iframe element) and appends the URL of the video file you wish the player to display. The iframe element should also include any attributes specifying such things as the height and width that the iframe is to display at, (optionally) that you wish it to open in fullscreen view, and any attributes required by the specific player-software you installed.

Your iframe element's essential structure, in the case of most video players, will resemble:

Code

<iframe src="your_domain/your_video_player?url=your_domain/(directory_path)/your_video.flv" additional attributes></iframe>


If you just wish to provide a simple hyperlink to open the video in the player, i.e.,without actually embedding the player in your page, the the link's structure will most usually resemble:

Code

<a href="your_domain/your_video_player?url=your_domain/(directory_path)/your_video.flv">your hyperlink-text</a>

This would open the loaded player on an auto-generated child page under the same browser tab as your original web page.

Most likely the video player's documentation will provide exact recipes for coding of links and embedding in iframes. 

To sample the different server-installable softwares, just Google "embeddable video player". Commercial and free, open-source progams are available. i haven't (to date) tried out any of them myself, so cannot offer any recommendations, but Video.js will be my first port-of-call when I eventually do. It would be really good to read your progress if you decide to install somesuch program!

Hope this helps,

Richard.
Back to the top
 
Posted
Item has a rating of 5 (Liked by RichTLiked by Florida_OwlLiked by Steven Jarvis)  
Rating:
#104290
Avatar

[flash]...[/flash]


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#104294
Avatar

Honoured member

Appreciate the responses!

Based upon sake of ease, I like Chris' way best!

Worked like a champ :)

Thanks Chris!
Back to the top
 
Posted
Rating:
#104295
Avatar

Well-settled


Oh, so, so, COOL... Thanks Chris, will be using this for sure!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: