動画ファイルの再生時間取得
- 2008年05月7日
- ASP.NET開発
AxMediaPlayer1でmediaplayerを細かく制御出来そう。以下自分メモ
Dim RetCount As Integer ‘ 再生時間
Dim h As Integer ‘ 時
Dim m As Integer ‘ 分
Dim s As Integer ‘ 秒
‘ 動画ファイルの読み込み、再生時間の取得
With AxMediaPlayer1
.FileName = FileName
RetCount = .Duration
End With
‘ 再生時間編集
h = RetCount / 60 / 60
m = RetCount / 60 – h * 60
s = RetCount – (h * 60 * 60 + m * 60)
検索
カレンダー
月 | 火 | 水 | 木 | 金 | 土 | 日 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
© 2025 Copyright OKESYS. All rights reserverd.