<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[אורך הסרטה ב #C]]></title><description><![CDATA[<p dir="auto">איך אני יכול לקבל את אורך ההסרטה כ <code>TimeSpan</code> ב#C?</p>
]]></description><link>https://tchumim.com/topic/11409/אורך-הסרטה-ב-c</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Mar 2026 17:07:05 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/11409.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Jun 2021 20:58:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 16:01:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A8%D7%97%D7%9E%D7%99%D7%9D">@<bdi>רחמים</bdi></a> אתה בהחלט צודק.<br />
אבל חזקה על מייקרוסופט שבד"כ שומרת על תאימות לאחור.</p>
]]></description><link>https://tchumim.com/post/124405</link><guid isPermaLink="true">https://tchumim.com/post/124405</guid><dc:creator><![CDATA[clickone]]></dc:creator><pubDate>Mon, 21 Jun 2021 16:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 15:49:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz">@<bdi>yossiz</bdi></a> המספר 27 לא בטוח יתאים בכל מערכת הפעלה.</p>
]]></description><link>https://tchumim.com/post/124403</link><guid isPermaLink="true">https://tchumim.com/post/124403</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 21 Jun 2021 15:49:35 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 12:58:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz">@<bdi>yossiz</bdi></a><br />
תודה רבה אין מילים <img src="https://tchumim.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=9d71ebe86e6" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title=":+1:" alt="👍" /></p>
]]></description><link>https://tchumim.com/post/124390</link><guid isPermaLink="true">https://tchumim.com/post/124390</guid><dc:creator><![CDATA[אוריי]]></dc:creator><pubDate>Mon, 21 Jun 2021 12:58:21 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 12:56:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%90%D7%95%D7%A8%D7%99%D7%99">@<bdi>אוריי</bdi></a> נכון, הפונצקיה מחזרת dictionary של כל המאפיינים של הקובץ. אתה צריך רק מאפיין מס' 27. צריך להתאים את הקוד קצת.</p>
<pre><code>static class Helpers
{
	public static TimeSpan GetMediaLength(this FileInfo fi)
	{
		Shell shl = new Shell();
		Folder folder = shl.NameSpace(fi.DirectoryName);
		FolderItem item = folder.ParseName(fi.Name);
		string timeSpanStr = folder.GetDetailsOf(item, 27);
		return TimeSpan.Parse(timeSpanStr);
	}
}
</code></pre>
]]></description><link>https://tchumim.com/post/124388</link><guid isPermaLink="true">https://tchumim.com/post/124388</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Mon, 21 Jun 2021 12:56:53 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 12:36:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A8%D7%97%D7%9E%D7%99%D7%9D">@<bdi>רחמים</bdi></a> עד כמה הרעיון הזה מוצלח כאשר אני צריך לסרוק מאות הסרטות... ???</p>
]]></description><link>https://tchumim.com/post/124387</link><guid isPermaLink="true">https://tchumim.com/post/124387</guid><dc:creator><![CDATA[אוריי]]></dc:creator><pubDate>Mon, 21 Jun 2021 12:36:42 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 12:34:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz">@<bdi>yossiz</bdi></a> ,</p>
<p dir="auto">כך הפעלתי את הפונקציה</p>
<pre><code>var ee = Helpers.GetDetails(file);
</code></pre>
<p dir="auto">וזה הערך שהפונקציה מחזירה (במקום לקבל זמן)</p>
<pre><code>System.Collections.Generic.Dictionary`2[System.String,System.String]
</code></pre>
]]></description><link>https://tchumim.com/post/124386</link><guid isPermaLink="true">https://tchumim.com/post/124386</guid><dc:creator><![CDATA[אוריי]]></dc:creator><pubDate>Mon, 21 Jun 2021 12:34:46 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 12:22:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz">@<bdi>yossiz</bdi></a> אמר ב<a href="/post/124382">אורך הסרטה ב #C</a>:</p>
<blockquote>
<p dir="auto">יש אומנם נקודת זכות לדרך שלך שהיא יותר פשוטה למי שלא מתכנת מנוסה</p>
</blockquote>
<p dir="auto">נכון, בשביל זה הבאתי את העיצה הזו.</p>
]]></description><link>https://tchumim.com/post/124384</link><guid isPermaLink="true">https://tchumim.com/post/124384</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 21 Jun 2021 12:22:03 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 11:52:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%90%D7%95%D7%A8%D7%99%D7%99">@<bdi>אוריי</bdi></a> יש <a href="https://stackoverflow.com/questions/10190906/how-to-get-video-duration-from-mp4-wmv-flv-mov-videos" target="_blank" rel="noopener noreferrer nofollow ugc">פה</a> מגוון דרכים ועיצות</p>
]]></description><link>https://tchumim.com/post/124383</link><guid isPermaLink="true">https://tchumim.com/post/124383</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 21 Jun 2021 11:52:18 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 11:52:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A8%D7%97%D7%9E%D7%99%D7%9D">@<bdi>רחמים</bdi></a> זו דרך עקומה. בלי סיבה, למה ללכת בה? כך אני סבור. זכותך לחלוק. (אם בדרך שלך היו ביצועים יותר טובים, ניחא. אבל אין.).<br />
(יש אומנם נקודת זכות לדרך שלך שהיא יותר פשוטה למי שלא מתכנת מנוסה)</p>
]]></description><link>https://tchumim.com/post/124382</link><guid isPermaLink="true">https://tchumim.com/post/124382</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Mon, 21 Jun 2021 11:52:08 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 11:46:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz">@<bdi>yossiz</bdi></a> מה חוץ מביצועים? כי המשל שהזכרת מדבר רק על ביצועים, [והוא גם מאוד מוגזם ביחס לנמשל].</p>
]]></description><link>https://tchumim.com/post/124381</link><guid isPermaLink="true">https://tchumim.com/post/124381</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 21 Jun 2021 11:46:37 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 11:36:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A8%D7%97%D7%9E%D7%99%D7%9D">@<bdi>רחמים</bdi></a> לא רק ביצועים, (אבל גם), אלא זה כמו לבנות בנין שלם כדי לבדוק מידות של אחת מהחלונות...</p>
]]></description><link>https://tchumim.com/post/124380</link><guid isPermaLink="true">https://tchumim.com/post/124380</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Mon, 21 Jun 2021 11:36:58 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 10:26:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz">@<bdi>yossiz</bdi></a> פוסל? למה? בגלל ביצועים?</p>
]]></description><link>https://tchumim.com/post/124363</link><guid isPermaLink="true">https://tchumim.com/post/124363</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 21 Jun 2021 10:26:30 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 08:15:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%A8%D7%97%D7%9E%D7%99%D7%9D">@<bdi>רחמים</bdi></a> אני הייתי פוסל קוד כזה ב-code review (כמובן, ההכרח לא יגונה, אבל אם יש דרך אחר זה לא הייתי עושה את זה)</p>
]]></description><link>https://tchumim.com/post/124343</link><guid isPermaLink="true">https://tchumim.com/post/124343</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Mon, 21 Jun 2021 08:15:30 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 08:10:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%90%D7%95%D7%A8%D7%99%D7%99">@<bdi>אוריי</bdi></a> יש פקד של וידאו בדוטנט, תוכל לטעון את הסרטון לפקד ולקבל את אורכו.</p>
]]></description><link>https://tchumim.com/post/124342</link><guid isPermaLink="true">https://tchumim.com/post/124342</guid><dc:creator><![CDATA[רחמים]]></dc:creator><pubDate>Mon, 21 Jun 2021 08:10:12 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 08:07:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%90%D7%95%D7%A8%D7%99%D7%99">@<bdi>אוריי</bdi></a> אמר ב<a href="/post/124339">אורך הסרטה ב #C</a>:</p>
<blockquote>
<p dir="auto">לגבי הקוד הראשון שהבאת<br />
זה מחזיר לי שגיאה בclass</p>
</blockquote>
<p dir="auto">אתה מתכוון לקוד השני? בראשון אין בכלל extension method.<br />
הפתרון הוא להכניס את הפונקציה לתוך קלאס סטטי. כזה:</p>
<pre><code>static class Helpers 
{
	public static Dictionary&lt;string, string&gt; GetDetails(this FileInfo fi)
	{
		Dictionary&lt;string, string&gt; ret = new Dictionary&lt;string, string&gt;();
		Shell shl = new Shell();
		Folder folder = shl.NameSpace(fi.DirectoryName);
		FolderItem item = folder.ParseName(fi.Name);

		for (int i = 0; i &lt; 150; i++)
		{
			string dtlDesc = folder.GetDetailsOf(null, i);
			string dtlVal = folder.GetDetailsOf(item, i);

			if (dtlVal == null || dtlVal == "")
				continue;

			ret.Add(dtlDesc, dtlVal);
		}
		return ret;
	}
}
</code></pre>
]]></description><link>https://tchumim.com/post/124341</link><guid isPermaLink="true">https://tchumim.com/post/124341</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Mon, 21 Jun 2021 08:07:25 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 07:36:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yossiz">@<bdi>yossiz</bdi></a> , לגבי הקוד הראשון שהבאת<br />
זה מחזיר לי שגיאה בclass</p>
<pre><code>Severity	Code	Description	Project	File	Line	Suppression State
Error	CS1106	Extension method must be defined in a non-generic static class	SearchByTime	C:\Users\uri\source\repos\SearchByTime\SearchByTime\Form1.cs	16	Active
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1624260679371-a2604e1a-23f3-44e6-9064-ec742cdccbe9-image.png" alt="a2604e1a-23f3-44e6-9064-ec742cdccbe9-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://tchumim.com/post/124339</link><guid isPermaLink="true">https://tchumim.com/post/124339</guid><dc:creator><![CDATA[אוריי]]></dc:creator><pubDate>Mon, 21 Jun 2021 07:36:06 GMT</pubDate></item><item><title><![CDATA[Reply to אורך הסרטה ב #C on Mon, 21 Jun 2021 07:36:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/%D7%90%D7%95%D7%A8%D7%99%D7%99">@<bdi>אוריי</bdi></a><br />
<a href="https://markheath.net/post/how-to-get-media-file-duration-in-c" target="_blank" rel="noopener noreferrer nofollow ugc">https://markheath.net/post/how-to-get-media-file-duration-in-c</a><br />
ואותו רעיון אבל בלי ספרייה חיצונית:<br />
<a href="https://stackoverflow.com/a/1284520/8997905" target="_blank" rel="noopener noreferrer nofollow ugc">https://stackoverflow.com/a/1284520/8997905</a></p>
]]></description><link>https://tchumim.com/post/124338</link><guid isPermaLink="true">https://tchumim.com/post/124338</guid><dc:creator><![CDATA[yossiz]]></dc:creator><pubDate>Mon, 21 Jun 2021 07:36:02 GMT</pubDate></item></channel></rss>