Plugin Author
Ulrich
(@grapplerulrich)
1) You mean you want to hard code the video in your template. If so then, you cold define the video id and then echo the markup.
$atts['id'] = '12';
echo fp5_video_output( $atts );
2) You can do it with a bit of CSS. Change 12 to your video id
.flowplayer-video-12 .fp-engine {
z-index: -1;
}
.flowplayer-video-12 {
background-image: url(//drive.cdn.flowplayer.org/146325/46415-snap.jpg);
}
Hi,
Thanks for your quick reply.
About 1:
No I didn’t like it this way rather I want in such way link I can only call VIDEO URL from custom field and pass to your function. Like below;
$atts[‘video_url’] = get_post_meta($post->ID, ‘hls_url’, true);
above will return such url(http://saregamawsa.bc-s.cdn.bitgravity.com/cdn/_definst_/saregamawsa/secure/174228/INH109438860.mp4/playlist.m3u8?e=1462083066&h=377d3ec95cd687b6017812ff496d899c)
echo fp5_video_output( $atts );
About 2:
That CSS did not work and continue shows the black screen play, yes I replaced the ID with the video ID.
Thanks Sanny
Plugin Author
Ulrich
(@grapplerulrich)
If you only wanted the hls file then you can do this:
$atts['hls'] = get_post_meta($post->ID, 'hls_url', true);
echo fp5_video_output( $atts );
The CSS worked when I tested it. If you can share the link to your video page I can have a look what’s not working.
Hi,
Thanks for the reply.
1) Here is the page link http://202.54.73.243/contact-us/ (used with shortcode) I am working on and below is the CSS I have used but it still shows black screen play:
.flowplayer-video-323 .fp-engine {
z-index: -1;
}
.flowplayer-video-323 {
background-image: url(//drive.cdn.flowplayer.org/146325/46415-snap.jpg);
}
2) I used this code:
$atts['hls'] = get_post_meta($post->ID, 'hls_url', true);
echo fp5_video_output( $atts );
but it was not working but when I tried to echo with shortcode then both shortcode and the function executed.
I want it to execute without calling shortcode, I guess it do not load all files when I call echo fp5_video_output( $atts ).
3) I checked in your website that you provide AUDIO player for flash, is there anything that is only created for HLS audio?
We are planning to buy the single site license, please help us making things clear ASAP.
Thanks Sanny
Plugin Author
Ulrich
(@grapplerulrich)
This CSS should work
.flowplayer-video-323 .fp-engine {
z-index: -1;
}
.flowplayer-video-323.is-playing {
background-image: url(//202.54.73.243/wp-content/uploads/2016/02/Ocean-Grill-By-Zameer-Ansari-at-The-Ocean-Mall-Clifton-Karachi-4.jpg)!important;
}
Ah, yes, I see why that code is not fully working as the styles and scripts are only loaded when the shortcode is present in the content of a post. I will look to fix that in the next update. In the mean time you could use the filter fp5_filter_has_shortcode to load the styles and scripts on that page.
For the near future there are no plans to add audio support. Audio support may be added someday. New video features have higher priority.
Hi,
Yes the CSS worked this time and thank you for that but still the video did not work even after I added filter as you’d told;
add_filter( 'fp5_filter_has_shortcode');
Am I still missing something?
Thanks
Plugin Author
Ulrich
(@grapplerulrich)
You need to define the function also.
This will make the assets load on every page.
add_filter( 'fp5_filter_has_shortcode', '__return_true);
Or you could modify the example in the FAQ that would just include the specific page. You could perhaps use is_page() or is_page_template() instead of is_fontpage().
Thank you. Worked, 5 start rating for your plugin and support.
At the end, one more last question:
1) We have a web radio link and it is in both HLS and RTMP but not working with your plugin.
Here are the links:
Radio url for streaming (HLS):
http://saregama.live-s.cdn.bitgravity.com/cdn-live/_definst_/saregama/secure/live/channel_401/playlist.m3u8?e=1462083364&h=9ab1ff4fa6e15c8415eb2638b8ce34db
Radio url for streaming (RTMP):
rtmp://saregama.live-s.cdn.bitgravity.com/cdn-live/saregama/secure/live/channel_401?e=1464203806&h=d0cd21e3da5ab2144cd4c7b21424a4b5
Can you please tell me if this can work with your plugin or we will still interested if there is any premium solution for this.
Thanks Sanny
Hi Ulrich,
I am still waiting for your reply. Please clear the last query.
Thanks Sanny
Plugin Author
Ulrich
(@grapplerulrich)
Thank you for the review.
I tested the HLS link on my test site and seems to work. http://grapplerulrich.tk/audio/
I did not do anything special other then add the HLS link.
Hi,
I have used shortcode with this page, but its not working.
http://202.54.73.243/web-radio/#flowplayer-video-326
Thanks Sanny
Plugin Author
Ulrich
(@grapplerulrich)
Sorry, I can’t access the page.
Plugin Author
Ulrich
(@grapplerulrich)
I was able to play the audio file on my PC using Chrome. Were you able to play the audio on my test site?
Hi,
Yeah that was working and yes it is working too in my website but not sure why it wasn’t working and was showing blank earlier.
Anyways, thank you so much.
Thanks
Sanny