stevewithington / MuraPlayer

This is a Mura CMS plugin that wraps the JW Player TM (v5) for Flash and HTML5.
Apache License 2.0
1 stars 4 forks source link

Embedding into an existing page #3

Closed madebyiando closed 11 years ago

madebyiando commented 11 years ago

Hi Steve

Is there a way to embed videos into a page using the [mura] tag? I seen your preview video when you added code to the template but unsure whether the mura tag can be used to do this within CKEditor. It's for a non-technical editor.

Cheers as always!

Shaun

stevewithington commented 11 years ago

I just pushed fix to allow for this to work properly...now something like this should work: [mura]$.muraPlayer.dspJWPlayer(file='/path/to/file.m4v')[/mura]

You can also specify width and height attributes: [mura]$.muraPlayer.dspJWPlayer(file='/path/to/file.m4v', width='480', height='272')[/mura]

stevewithington commented 11 years ago

The fix affected only one file though ... you should be able to update your own file by editing: /plugins/MuraPlayer/extensions/components/includes/jwPlayer.cfm

Around line 120, change this: <cfif len(trim(arguments.streamer))>

To this: <cfif len(trim(arguments.streamer)) and arguments.streamer neq 'rtmp:///cfx/st'>

madebyiando commented 11 years ago

Fantastic, thanks for such a quick turnaround, great work!

Shaun

From: Steve Withington [mailto:notifications@github.com] Sent: 19 March 2013 14:50 To: stevewithington/MuraPlayer Cc: Shaun Perry Subject: Re: [MuraPlayer] Embedding into an existing page (#3)

I just pushed fix to allow for this to work properly...now something like this should work: [mura]$.muraPlayer.dspJWPlayer(file='/path/to/file.m4v')[/mura]

You can also specify width and height attributes: [mura]$.muraPlayer.dspJWPlayer(file='/path/to/file.m4v', width='480', height='272')[/mura]

— Reply to this email directly or view it on GitHubhttps://github.com/stevewithington/MuraPlayer/issues/3#issuecomment-15118643.

madebyiando commented 11 years ago

Works perfectly, thanks again!

From: Steve Withington [mailto:notifications@github.com] Sent: 19 March 2013 14:52 To: stevewithington/MuraPlayer Cc: Shaun Perry Subject: Re: [MuraPlayer] Embedding into an existing page (#3)

The fix affected only one file though ... you should be able to update your own file by editing: /plugins/MuraPlayer/extensions/components/includes/jwPlayer.cfm

Around line 120, change this: <cfif len(trim(arguments.streamer))>

To this: <cfif len(trim(arguments.streamer)) and arguments.streamer neq 'rtmp:///cfx/st'>

— Reply to this email directly or view it on GitHubhttps://github.com/stevewithington/MuraPlayer/issues/3#issuecomment-15118801.