{"id":3989,"date":"2015-10-13T13:24:38","date_gmt":"2015-10-13T10:24:38","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=3989"},"modified":"2016-11-23T20:35:38","modified_gmt":"2016-11-23T12:35:38","slug":"playing-fullscreen-video-in-mobiles","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2015\/10\/13\/playing-fullscreen-video-in-mobiles\/","title":{"rendered":"Playing FullScreen Video in Mobiles"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"3991\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2015\/10\/13\/playing-fullscreen-video-in-mobiles\/movietexture_mobile_error_unity-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg?fit=485%2C239&amp;ssl=1\" data-orig-size=\"485,239\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"movietexture_mobile_error_unity\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg?fit=300%2C148&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg?fit=485%2C239&amp;ssl=1\" class=\"alignnone size-full wp-image-3991\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg?resize=485%2C239\" alt=\"movietexture_mobile_error_unity\" width=\"485\" height=\"239\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg?w=485&amp;ssl=1 485w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg?resize=300%2C148&amp;ssl=1 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/a><\/p>\n<p>Trying to publish scene to mobiles with <a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/MovieTexture.Play.html\" target=\"_blank\">MovieTexture<\/a>?<\/p>\n<p>Error will come up: (movie texture is not supported in mobiles)<br \/>\n&#8220;error CS0246: The type or namespace name `MovieTexture&#8217; could not be found. Are you missing a using directive or an assembly reference?&#8221;<\/p>\n<p><strong>Solution:<\/strong><br \/>\nUse this free example package: &#8220;Simple Movie Player&#8221; <a href=\"https:\/\/www.assetstore.unity3d.com\/#!\/content\/34959?aid=1101lGti\">https:\/\/www.assetstore.unity3d.com\/#!\/content\/34959?aid=1101lGti<\/a><br \/>\nIt uses Handheld.PlayFullScreenMovie() -&gt;\u00a0 <a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/Handheld.PlayFullScreenMovie.html\" target=\"_blank\">http:\/\/docs.unity3d.com\/ScriptReference\/Handheld.PlayFullScreenMovie.html<\/a><\/p>\n<p>Read the notes from docs:<br \/>\n&#8211; You will have to create a folder named <code class=\"mono\">StreamingAssets<\/code> inside your Unity project (inside your Assets folder). Store your movies inside that folder<br \/>\n&#8211; Calling this function will pause Unity during movie playback. When playback finishes Unity will resume (its separate videoplayer)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trying to publish scene to mobiles with MovieTexture? Error will come up: (movie texture is not supported in mobiles) &#8220;error CS0246: The type or namespace name `MovieTexture&#8217; could not be found. Are you missing a using directive or an assembly reference?&#8221; Solution: Use this free [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3991,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[148,3],"tags":[197,154,196,195,772,773,740],"class_list":["post-3989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-help","category-unity3d","tag-android","tag-free","tag-ios","tag-mobile","tag-movietexture","tag-player","tag-video"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2015\/10\/movietexture_mobile_error_unity.jpg?fit=485%2C239&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-12l","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/3989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=3989"}],"version-history":[{"count":3,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/3989\/revisions"}],"predecessor-version":[{"id":4452,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/3989\/revisions\/4452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/3991"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=3989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=3989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=3989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}