Soundcloud Smart Player

If a shortcode isn’t too much effort you can use it to construct the soundcloud url for embedding. add_shortcode(‘soundcloud_auto’, ‘soundcloud_auto_shortcode’); function soundcloud_auto_shortcode($atts) { global $post; $title = str_replace(” “, “”, $post->post_title); $title = str_replace(“-“, “”, $title); $title = str_replace(“_”, “”, $title); $slug = sanitize_title($title, str_replace(“-“, “”, $post->post_name)); return wp_oembed_get(esc_url(“http://soundcloud.com/$slug”)); } Or do something similar using … Read more

Play videos with buffering in my server

Not sure about how much control you want to offer to your viewers but you can always use the <video> tag in HTML to display a player. You can read more about this here – https://www.w3schools.com/html/html5_video.asp If you are looking to provide the option of adjusting the quality and all you might have to host … Read more

Proceed to the next video of the custom post type but remain on the same post

This seems to work for now.. Added onended=”onEndVideo()” to the video element like so. <?php $mrssfeed_url = get_post_meta(get_the_id(), ‘nowthisearth_media_url’, true);?> <video onended=”onEndVideo()” id=”nowthis-video” class=”nowthis-video” style=”” width=”1280″ height=”720″ autoplay=”true” controls> <source src=”<?php echo $mrssfeed_url ?>” type=”video/mp4″> Your browser does not support the video tag. </video> Then did this for the javascript.. function onEndVideo() { document.querySelector(“a.next-post”).click(); }

Preferred WordPress video format?

The Codex lists several core-supported oEmbed sites (including a few being added in 3.5): YouTube (only public videos and playlists – “unlisted” and “private” videos will not embed) Vimeo (note older versions of WP have issues with https embeds, just remove the s from the https to fix) DailyMotion blip.tv Flickr (both videos and images) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)