<% content_for :title, @video.display_title %>
<%# Placeholder for video player - Phase 1B will add Video.js %>

<%= @video.display_title %>

<% if @video.work.present? %>

<%= link_to @video.work.display_title, work_path(@video.work), class: "hover:text-blue-600" %>

<% end %>

Video Information

Duration:
<%= @video.formatted_duration %>
File Size:
<%= @video.formatted_file_size %>
Resolution:
<%= @video.resolution_label || "Unknown" %>
Format:
<%= @video.format || "Unknown" %>

Storage Information

Storage Location:
<%= @video.storage_location.name %>
Source Type:
<%= @video.source_type.humanize %>
File Path:
<%= @video.file_path %>
<% if @video.video_metadata.present? %>

Technical Details

Video Codec: <%= @video.video_codec || "N/A" %>
Audio Codec: <%= @video.audio_codec || "N/A" %>
Frame Rate: <%= @video.frame_rate || "N/A" %> fps
Bit Rate: <%= @video.bit_rate ? "#{(@video.bit_rate / 1000).round(1)} kb/s" : "N/A" %>
Dimensions: <%= @video.width || "N/A" %> × <%= @video.height || "N/A" %>
<% end %>
<%= link_to "Back to Videos", videos_path, class: "bg-gray-100 hover:bg-gray-200 text-gray-700 px-4 py-2 rounded-md text-sm font-medium" %> <% if @video.streamable? %> <%= link_to "Watch Video", watch_video_path(@video), class: "bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium" %> <% end %>