Add resource to segment and refector code
Fix error
Add preview to segment update
Fix bug, show error message when showing video in iframe
minor change