2012-06-20 24 views
0

我一直遵循本指南,以利用Pandastream API在我的Rails應用程序3:http://www.pandastream.com/docs/integrate_with_railsRails 3中,Pandastream API - 視頻沒有顯示在應用

我已經得到的地步,我可以從我的應用成功上傳視頻(我可以在我的pandastream帳戶的儀表板上看到它),但是當我轉到我的show.html.erb頁面查看上傳的視頻時,我看到的只是一個HTML 5播放器,它只是說「Loading」,並且這個代碼:

#<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"> 

我在做什麼錯在這裏?

show.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 %> 

回答

1

當您上傳視頻時,它正在處理對熊貓雲編碼(檢查鍋)。一段時間後刷新瀏覽器。視頻將被播放。

相關問題