I use sample code Corona provided to play video, as blow:
function posterFrame:tap( event )
msg.text = "Video Done" -- message will appear after the video finishes
media.playVideo( "5807635.wmv", false )
end
But it responses "Sorry! Can't play the video" (transfer from Chinese). I test it on ViewPad7(Android 2.2) and Acer ICONIA Tab A500(Android 3.0.1) and get the same dialog message. But the "5807635.wmv" can be played on my MacBook. And I retry .avi and .asf and the results are same message. So what's wrong ?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
Can't play wmv, avi, asf on Android
You can't play a WMV file on any kind of device (well, natively anyway):
You should really stick to the mp4 container with H264.
It is OK! I convert wmv file to mp4 file. But the file name can't be named all number. ex: 5807625.mp4. >"<
views:1737 update:2011/10/8 15:12:54
热门文章
GameCenter LeaderBoards and Achievements Enabled Through OpenFeint
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed
相关文章
GPS and Maps
Does Corona support iAds and Admob
Creating directories programatically in system.DocumentsDirectory?
Built for XCode Simulator Fails to Launch
Better dubugging, analystics and memory leak detection
Is there a setting that disables native alert from pausing/freezing my game?
Collision
I don't want to hurt anyone's feelings, but...
Distimo Monitor - How good?
ScrollView set vertival scroll position
Does Corona support iAds and Admob
Creating directories programatically in system.DocumentsDirectory?
Built for XCode Simulator Fails to Launch
Better dubugging, analystics and memory leak detection
Is there a setting that disables native alert from pausing/freezing my game?
Collision
I don't want to hurt anyone's feelings, but...
Distimo Monitor - How good?
ScrollView set vertival scroll position
corona forums © 2003-2011