0

我一直在按照本指南在我的 Rails 3 应用程序中使用 Pandastream API:http: //www.pandastream.com/docs/integrate_with_rails

我已经到了可以从我的应用程序成功上传视频(我可以在我的 pandastream 帐户的仪表板上看到它)的地步,但是当我去我的 show.html.erb 页面查看上传的视频时,所有我看到的是一个 HTML 5 播放器,它只是说“正在加载”,这段代码:

#<Panda::Video id: "b1dc1f37094330867e68fa73e7c23c14", created_at: "2012/06/20 17:09:05 +0000", updated_at: "2012/06/20 17:09:07 +0000", original_filename: "panda.mp4", source_url: nil, duration: 14014, height: 240, width: 300, extname: ".mp4", file_size: 805301, video_bitrate: 344, audio_bitrate: 112, audio_codec: "aac", video_codec: "h264", fps: 29.97, audio_channels: 2, audio_sample_rate: 44100, status: "success", path: "b1dc1f37094330867e68fa73e7c23c14", cloud_id: "12fbe9bac70c2264d3b9a6a89511b258">

我在这里做错了什么?

显示.html.erb

<h2><%= @video.title %></h2>
<p><%= h @video.panda_video.inspect %></p>

<% if @h264_encoding.success? %>
  <video id="movie" width="<%= @h264_encoding.width %>" height="<%= @h264_encoding.height %>" preload="none" 
  poster="<%= @h264_encoding.screenshots.first %>" controls>
  <source src="<%= @h264_encoding.url %>" type="video/mp4">
  </video>
<% end %>
4

1 回答 1

1

当您上传视频时,它正在处理熊猫云中的编码(检查平移)。一段时间后刷新浏览器。将播放视频。

于 2012-08-13T13:05:58.677 回答