media

How to use media queries correctly to reduce font size?

戏子无情 提交于 2019-12-11 06:47:29
问题 I'm trying to set my CSS so that font sizes decease when viewed on mobile devices. I've spent all day trying to figure this out, but am now stumped. I found media query code that I think should solve the issue, however it's not happening for me, font size remains standard size when viewing on mobile (Galaxy Nexus). html { font-size: 62.5%; } body { font-family:Arial,Helvetica,sans-serif; font-size: 1em; } @media (max-width: 300px) { html { font-size: 70%; } } @media (min-width: 500px) { html

AbstractMethodError onClientSessionEvent and “Missing permission to control media”

99封情书 提交于 2019-12-11 05:42:21
问题 I have problem with this code: @SuppressWarnings("deprecation") @TargetApi(Build.VERSION_CODES.KITKAT) public class NotificationRemoteControllerService extends NotificationService implements OnClientUpdateListenerExtended { private static final String TAG = "NRemoteContollerService"; public static boolean isMusicPlaying = false; MusicPlaybackState currenTplaybackState; // REMOTE CONTROLLER private int currentPlaybackState; private SimpleMusicMetadata simpleMusicMetadata; private

Xamarin forms: jamesmontemagno/MediaPlugin: Selected picture is rotating when added to UI in IOS app

扶醉桌前 提交于 2019-12-11 04:48:11
问题 I followed this blog for taking photos from the gallery and camera. But the selected picture is showing in right rotated form when it comes to the UI in IOS. Problem only occurs when using the camera and I have no issues with the gallery. This feature is working fine in android and UWP. Screenshot added below: Code of Camera: async void CameraClick() { try { await CrossMedia.Current.Initialize(); if (!CrossMedia.Current.IsCameraAvailable || !CrossMedia.Current.IsTakePhotoSupported) { await

JavaFX audio doesn't seem to be playing

删除回忆录丶 提交于 2019-12-11 04:35:39
问题 I am fairly new to JavaFX and recently wanted to play audio with an MP3 file rather than WAV. From what I can tell, I am doing things correctly and I don't get any errors, but I also don't hear any sound. I will post the parts of my code that matter below. If I'm missing something please let me know. Thanks. try { URL sound = getClass().getResource("/resources/origin.mp3"); Media hit = new Media(sound.toExternalForm()); musicPlayer = new MediaPlayer(hit); musicPlayer.setVolume(1.0); } catch

Media codec 4.1 Issue

廉价感情. 提交于 2019-12-11 03:22:21
问题 It works fine on most of the devices except nexus5, moto G as per my testing. on these devices app producing video with only two frames.and also getting the following error log [OMX.qcom.video.encoder.avc] storeMetaDataInBuffers (output) failed w/ err -2147483648 Could you please help me out to fix this issue. 回答1: from http://bigflake.com/mediacodec/#q12 Q12. Why am I seeing storeMetaDataInBuffers failures in the log? A12. They look like this (example from a Nexus 5): E OMXNodeInstance: OMX

WebView media content stops when the screen is locked ( activity's onStop is called)

瘦欲@ 提交于 2019-12-11 02:39:30
问题 I have an App that plays a video inside a WebView on my MainActivity. The problem I am having is that the video is pausing whenever I lock the screen (Activity's onStop is called, that is when the video in the WebView is paused). But this behavior only occurs on Apis >= Lollipop(5.0) . I searched everywhere for a solution, but I could not find anything. I just want the video to keep playing even when the user is on LockScreen. 回答1: If your WebView is pausing because of the onStop, you can

Dynamic Transcoding and streaming

∥☆過路亽.° 提交于 2019-12-11 02:36:49
问题 im trying to work out the best way to have my site dynamicly transcode and stream video files to users who are mostly on mobile devices, site is php/mysql based and running on a windows 2003 server which i have full access to, any ideas how best to do this - id rather not need to transcode videos on upload if possible 回答1: For your services consider something with some oomph: Inlet, Digital Rapids, or Rhozet. Some of these players offer some form of live-stream encoding but you'll generally

Java: How to use microphone input as input for the JavaFX media player?

谁说我不能喝 提交于 2019-12-11 00:43:18
问题 I want to play the microphone input in realtime using the JavaFX media player (to analyse its frequencies). The problem is, that the MediaPlayer only accepts Strings as source. I know how to write the microphone input into a byte array and into a file. Using the byte array as source for the MediaPlayer is (for me) not possible. I tried using a temporary file, but that causes the following error: Exception in thread "JavaFX Application Thread" MediaException: MEDIA_UNSUPPORTED : Empty

Yii framework 2.0 add media print to css link

↘锁芯ラ 提交于 2019-12-11 00:23:59
问题 Working with Yii framework 2.0 I include a css file with the code below inside assets/AppAsset.php . public $css = [ 'css/style.css', ]; When I inspect element on the web browser I see the following code in the header tag: <link href="/locahost/mywebsite/css/style.css" rel="stylesheet"> I would like to add the print.css to the web page with media='print' . How could I add the attribute media='print' into the css link within Yii framework 2.0? 回答1: There is a cssOptions attribute for the

Regex to match and validate internet media type?

六眼飞鱼酱① 提交于 2019-12-10 20:42:10
问题 I want to validate internet types input via my API. Can you help writing a regex to match? Example types below from http://en.wikipedia.org/wiki/Internet_media_type application/atom+xml application/EDI-X12 application/xml-dtd application/zip application/vnd.openxmlformats-officedocument.presentationml.presentation video/quicktime Must meet standard: type / media type name [+suffix] Thanks 回答1: This is really straightforward: \w+/[-+.\w]+ Demo: http://regex101.com/r/oH5bS7/1 And if you want to