<% if @article.video_state == "PROGRESSING" %>
⏳ Video Transcoding In Progress ⏳
You'll get an email when it's finished. Contact ben@dev.to if the email never comes, or if anything else is broken. 😱
This is an unpublished article with a video. Publish it as usual when the video is done processing.
<% elsif @article.video_state == "COMPLETED" %>
Video uploaded - <%= @article.video_code %>
<%= render "articles/video_player", meta_tags: false, article: @article %>
Change preview image:
<%= form_for(@article) do |f| %>
<%= f.text_field :video_thumbnail_url, placeholder: "New Thumbnail URL" %>
<%= f.submit %>
<% end %>
Video is in beta ❤️
<% end %>
<% end %>
<% if params[:beta_form] %>
<%= render 'react_form' %>
<% else %>
<% if @article.body_html && @article.body_html.size > 10 %>
<%= render 'inline_form' %>
<% else %>
<%= render 'articles/markdown_form' %>
<% end %>
<% end %>