Warning: Trying to access array offset on value of type bool in /home/yotigory/codingmania.net/public_html/wp-content/plugins/search-everything/config.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /home/yotigory/codingmania.net/public_html/wp-content/plugins/search-everything/config.php:29) in /home/yotigory/codingmania.net/public_html/wp-includes/feed-rss2.php on line 8
video アーカイブ - CodingMania https://codingmania.net/tag/video コーディングマニアは、コーダーやWEBデザイナーが、効率よくコーディング作業が出来ることを目指したサイトです。 Sun, 10 Oct 2021 07:27:33 +0000 ja hourly 1 https://wordpress.org/?v=5.8.9 WordPress のYouTube埋め込みの iframe をレスポンシブ対応する https://codingmania.net/jquery/1811.html https://codingmania.net/jquery/1811.html#respond Sun, 10 Oct 2021 06:49:40 +0000 https://codingmania.net/?p=1811 JSを読み込みます jQuery[js_youtube.js] CSS

投稿 WordPress のYouTube埋め込みの iframe をレスポンシブ対応するCodingMania に最初に表示されました。

]]>
JSを読み込みます
if ( is_single() ) {
wp_enqueue_script( 'js_youtube', get_template_directory_uri() . '/js/js_youtube.js',  array('jquery'), false, true );
}

jQuery[js_youtube.js]

jQuery(document).ready(function () {
	$(function () {
		$('iframe').each(function () {
			let frame = $(this);
			let div = document.createElement('div');
			div.className = 'youtube';
			if ((frame.is('[src*="youtube"]'))) {
				$(this).wrap(div);
			}
		});
	});
});

CSS

/* youtube
-----------------------------------------*/
.youtube {
position: relative;
width: 100%;
padding-top: 56.25%;
}

.youtube iframe{
position: absolute;
top: 0;
right: 0;
width: 100% !important;
height: 100% !important;
}

投稿 WordPress のYouTube埋め込みの iframe をレスポンシブ対応するCodingMania に最初に表示されました。

]]>
https://codingmania.net/jquery/1811.html/feed 0
html5media.jsを使ってmp4形式の動画を埋め込みます https://codingmania.net/jquery/805.html https://codingmania.net/jquery/805.html#comments Thu, 11 Sep 2014 02:21:24 +0000 http://codingmania.net/?p=805 JSを読み込みます <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1. […]

投稿 html5media.jsを使ってmp4形式の動画を埋め込みますCodingMania に最初に表示されました。

]]>
JSを読み込みます
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="1.1.8/html5media.min.js"></script> 

HTMl

<video src="movie/movie.mp4" width="640" height="360" poster="poster.jpg" controls autobuffer preload="auto"></video>

投稿 html5media.jsを使ってmp4形式の動画を埋め込みますCodingMania に最初に表示されました。

]]>
https://codingmania.net/jquery/805.html/feed 2
「video.js」を使った動画ページ https://codingmania.net/jquery/213.html https://codingmania.net/jquery/213.html#comments Sun, 05 Jun 2011 06:55:51 +0000 http://codingmania.net/?p=213 JSを読み込みます <script src="video.js" type="text/javascript" charset="utf-8">&l […]

投稿 「video.js」を使った動画ページCodingMania に最初に表示されました。

]]>
JSを読み込みます
<script src="video.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="video-js.css" type="text/css" media="screen" title="Video JS" charset="utf-8">
<script type="text/javascript">VideoJS.setupAllWhenReady();</script>

HTMl

<!-- Begin VideoJS -->
<div class="video-js-box">
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
<video id="example_video_1" class="video-js" width="640" height="360" controls="controls" preload="auto" poster="poster.jpg">
<source src="movie/movie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="movie/movie.ogv" type='video/ogg; codecs="theora, vorbis"' />
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
<object id="flash_fallback_1" class="vjs-flash-fallback" width="640" height="360" type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowfullscreen" value="true" />
<param name="flashvars" value='config={"playlist":["https://codingmania.net/demo/video/0003/poster.jpg", {"url": "https://codingmania.net/demo/video/0003/movie/movie.mp4","autoPlay":false,"autoBuffering":true}]}' />
<!-- Image Fallback. Typically the same as the poster image. -->
<img src="poster.jpg" width="500" height="309" alt="日本の滝の映像" title="日本の滝の映像" />
</object>
</video>
</div>
<!-- End VideoJS -->

投稿 「video.js」を使った動画ページCodingMania に最初に表示されました。

]]>
https://codingmania.net/jquery/213.html/feed 3
html5のvideo要素だけを使って動画を再生する https://codingmania.net/etc/200.html https://codingmania.net/etc/200.html#respond Sat, 04 Jun 2011 15:46:43 +0000 http://codingmania.net/?p=200 HTMl <video poster="poster.jpg" width="640" height="360" controls preload> […]

投稿 html5のvideo要素だけを使って動画を再生するCodingMania に最初に表示されました。

]]>
HTMl
<video poster="poster.jpg" width="640" height="360" controls preload>
<source src="https://codingmania.net/demo/video/0001/movie/movie.mp4" />
<source src="https://codingmania.net/demo/video/0001/movie/movie.ogv" /> 
<p>ご利用のブラウザーでは再生できません。<a href="movie/movie.mp4">コチラ</a>からダウンロードしてください。</p>
</video>

投稿 html5のvideo要素だけを使って動画を再生するCodingMania に最初に表示されました。

]]>
https://codingmania.net/etc/200.html/feed 0